Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Derby JDBC driver to 10.16.1.2 - Fixes CVE-2022-46337 #45600

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

punkratz312
Copy link

is ./mvnw -Dquickly. enough to test?

#45386 (comment)

[INFO] Quarkus - Integration Tests - Mutiny native JCTools support SUCCESS [  0.126 s]
[INFO] Quarkus - Documentation ............................ SUCCESS [  1.644 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11:39 min
[INFO] Finished at: 2025-01-15T00:21:05+01:00
[INFO] ------------------------------------------------------------------------
[INFO] 14905 goals, 11092 executed, 3813 from cache, saving at least 9m 24s
➜  quarkus git:(derby-jdbc) ./mvnw -Dquickly

@quarkus-bot quarkus-bot bot added area/dependencies Pull requests that update a dependency file area/jdbc Issues related to the JDBC extensions labels Jan 14, 2025
@punkratz312 punkratz312 marked this pull request as ready for review January 14, 2025 23:26
@gastaldi
Copy link
Contributor

-Dquickly skips the tests, so no

This comment has been minimized.

@punkratz312
Copy link
Author

@gastaldi, which modules do I need to run to ensure everything is covered? Just the core and integration tests? Is there anything else? Also, regarding CI/CD runs to check mergeability, these should ideally execute those modules before merging, correct?

The release notes indicate the change is non-breaking and requires no adjustments, so we only need to verify the pipeline status. Last time, there was an issue loading a dependency, but let's see how it goes this time.

@punkratz312 punkratz312 force-pushed the Update-Derby-JDBC-driver branch from ad28cd5 to 91f4c0b Compare January 15, 2025 19:06
@punkratz312
Copy link
Author

WIP:


[INFO] Results:
[INFO] 
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- jar:3.4.1:jar (default-jar) @ test-codestart ---
[INFO] Building jar: /Users/vincent.potucek/IdeaProjects/quarkus/integration-tests/devtools/target/quarkus-codestart-test/spring-web-9f27cfbb-6f2a-4526-8598-051511442459/real-data/java/target/test-codestart-1.0.0-codestart.jar
[INFO] 
[INFO] --- quarkus:999-SNAPSHOT:build (default) @ test-codestart ---
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 1866ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.545 s
[INFO] Finished at: 2025-01-15T20:32:26+01:00
[INFO] ------------------------------------------------------------------------
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.51 s -- in io.quarkus.devtools.codestarts.quarkus.CustomSpringWebCodestartBuildIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   ReactiveMessagingCodestartIT.buildAMQP:50 [Run project return status should be zero] 
expected: 0
 but was: 1
[ERROR]   ReactiveMessagingCodestartIT.buildKafka:44 [Run project return status should be zero] 
expected: 0
 but was: 1
[ERROR]   ReactiveMessagingCodestartIT.testAMQPContent:36 [Snapshot is not matching (use -Dsnap to update it automatically): ReactiveMessagingCodestartIT/testAMQPContent/src_main_java_ilove_quark_us_MyMessagingApplication.java] 
Path:
  target/quarkus-codestart-test/quarkus-messaging-amqp-f550af46-7548-409a-ad29-26b3456e7d9d/mocked-data/java/src/main/java/ilove/quark/us/MyMessagingApplication.java
and path:
  /Users/vincent.potucek/IdeaProjects/quarkus/integration-tests/devtools/target/test-classes/__snapshots__/ReactiveMessagingCodestartIT/testAMQPContent/src_main_java_ilove_quark_us_MyMessagingApplication.java
do not have same content:

Changed content at line 3:
expecting:
  ["import io.quarkus.runtime.StartupEvent;",
   "import org.eclipse.microprofile.reactive.messaging.*;"]
but was:
  ["import java.util.stream.Stream;"]

Missing content at line 9:
  ["import java.util.stream.Stream;"]

Extra content at line 11:
  ["import io.quarkus.runtime.StartupEvent;",
   ""]

[ERROR]   ReactiveMessagingCodestartIT.testKafkaContent:29 [Snapshot is not matching (use -Dsnap to update it automatically): ReactiveMessagingCodestartIT/testKafkaContent/src_main_java_ilove_quark_us_MyMessagingApplication.java] 
Path:
  target/quarkus-codestart-test/quarkus-messaging-kafka-cdaf47a3-b5b2-40de-ab12-3ef3f99d0842/mocked-data/java/src/main/java/ilove/quark/us/MyMessagingApplication.java
and path:
  /Users/vincent.potucek/IdeaProjects/quarkus/integration-tests/devtools/target/test-classes/__snapshots__/ReactiveMessagingCodestartIT/testKafkaContent/src_main_java_ilove_quark_us_MyMessagingApplication.java
do not have same content:

Changed content at line 3:
expecting:
  ["import io.quarkus.runtime.StartupEvent;",
   "import org.eclipse.microprofile.reactive.messaging.*;"]
but was:
  ["import java.util.stream.Stream;"]

Missing content at line 9:
  ["import java.util.stream.Stream;"]

Extra content at line 11:
  ["import io.quarkus.runtime.StartupEvent;",
   ""]

[INFO] 
[ERROR] Tests run: 42, Failures: 4, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- failsafe:3.5.2:verify (default) @ quarkus-integration-test-devtools ---
[INFO] ------------------------------------------------------------------------

@punkratz312
Copy link
Author

main branch:

[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ resteasy-reactive ---
[INFO] Loaded from the build cache, saving 0.206s
[INFO] 
[INFO] --- surefire:3.5.2:test (default-test) @ resteasy-reactive ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests
[ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.129 s <<< FAILURE! -- in org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests
[ERROR] org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.shouldNotSendToClosedSink -- Time elapsed: 0.089 s <<< ERROR!
java.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
        at org.mockito.internal.configuration.plugins.PluginLoader$1.invoke(PluginLoader.java:85)
        at jdk.proxy2/jdk.proxy2.$Proxy9.isTypeMockable(Unknown Source)
        at org.mockito.internal.util.MockUtil.typeMockabilityOf(MockUtil.java:78)
        at org.mockito.internal.util.MockCreationValidator.validateType(MockCreationValidator.java:22)
        at org.mockito.internal.creation.MockSettingsImpl.validatedSettings(MockSettingsImpl.java:275)
        at org.mockito.internal.creation.MockSettingsImpl.build(MockSettingsImpl.java:236)
        at org.mockito.internal.MockitoCore.mock(MockitoCore.java:82)
        at org.mockito.Mockito.mock(Mockito.java:2185)
        at org.mockito.Mockito.mock(Mockito.java:2100)
        at org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.getMockContext(SseServerBroadcasterTests.java:77)
        at org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.shouldNotSendToClosedSink(SseServerBroadcasterTests.java:40)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
Caused by: java.lang.IllegalStateException: Internal problem occurred, please report it. Mockito is unable to load the default implementation of class that is a part of Mockito distribution. Failed to load interface org.mockito.plugins.MockMaker
        at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.create(DefaultMockitoPlugins.java:105)
        at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.getDefaultPlugin(DefaultMockitoPlugins.java:79)
        at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:75)
        at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:49)
        at org.mockito.internal.configuration.plugins.PluginRegistry.<init>(PluginRegistry.java:29)
        at org.mockito.internal.configuration.plugins.Plugins.<clinit>(Plugins.java:26)
        at org.mockito.internal.MockitoCore.<clinit>(MockitoCore.java:71)
        at org.mockito.Mockito.<clinit>(Mockito.java:1764)
        ... 5 more
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:501)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:485)
        at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.create(DefaultMockitoPlugins.java:103)
        ... 12 more
Caused by: org.mockito.exceptions.base.MockitoInitializationException: 
Could not initialize inline Byte Buddy mock maker.

It appears as if your JDK does not supply a working agent attachment mechanism.
Java               : 23
JVM vendor name    : GraalVM Community
JVM vendor version : 23.0.1+11-jvmci-b01
JVM name           : OpenJDK 64-Bit Server VM
JVM version        : 23.0.1+11-jvmci-b01
JVM info           : mixed mode, sharing
OS name            : Mac OS X
OS version         : 13.7.2

        at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.<init>(InlineDelegateByteBuddyMockMaker.java:252)
        at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.<init>(InlineByteBuddyMockMaker.java:23)
        at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
        ... 15 more
Caused by: java.lang.IllegalStateException: Failed to resolve the class file version of the current VM: Unknown Java version: 0
        at net.bytebuddy.ClassFileVersion$VersionLocator$Unresolved.resolve(ClassFileVersion.java:667)
        at net.bytebuddy.ClassFileVersion.ofThisVm(ClassFileVersion.java:349)
        at org.mockito.internal.PremainAttachAccess.getInstrumentation(PremainAttachAccess.java:42)
        at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.<clinit>(InlineDelegateByteBuddyMockMaker.java:136)
        ... 17 more

[ERROR] org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.shouldExecuteOnClose -- Time elapsed: 0.003 s <<< ERROR!
java.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
        at org.mockito.internal.configuration.plugins.PluginLoader$1.invoke(PluginLoader.java:85)
        at jdk.proxy2/jdk.proxy2.$Proxy9.isTypeMockable(Unknown Source)
        at org.mockito.internal.util.MockUtil.typeMockabilityOf(MockUtil.java:78)
        at org.mockito.internal.util.MockCreationValidator.validateType(MockCreationValidator.java:22)
        at org.mockito.internal.creation.MockSettingsImpl.validatedSettings(MockSettingsImpl.java:275)
        at org.mockito.internal.creation.MockSettingsImpl.build(MockSettingsImpl.java:236)
        at org.mockito.internal.MockitoCore.mock(MockitoCore.java:82)
        at org.mockito.Mockito.mock(Mockito.java:2185)
        at org.mockito.Mockito.mock(Mockito.java:2100)
        at org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.getMockContext(SseServerBroadcasterTests.java:77)
        at org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.shouldExecuteOnClose(SseServerBroadcasterTests.java:59)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
Caused by: java.lang.IllegalStateException: Internal problem occurred, please report it. Mockito is unable to load the default implementation of class that is a part of Mockito distribution. Failed to load interface org.mockito.plugins.MockMaker
        at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.create(DefaultMockitoPlugins.java:105)
        at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.getDefaultPlugin(DefaultMockitoPlugins.java:79)
        at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:75)
        at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:49)
        at org.mockito.internal.configuration.plugins.PluginRegistry.<init>(PluginRegistry.java:29)
        at org.mockito.internal.configuration.plugins.Plugins.<clinit>(Plugins.java:26)
        at org.mockito.internal.MockitoCore.<clinit>(MockitoCore.java:71)
        at org.mockito.Mockito.<clinit>(Mockito.java:1764)
        at org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.getMockContext(SseServerBroadcasterTests.java:77)
        at org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.shouldNotSendToClosedSink(SseServerBroadcasterTests.java:40)
        ... 3 more
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:501)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:485)
        at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.create(DefaultMockitoPlugins.java:103)
        ... 12 more
Caused by: org.mockito.exceptions.base.MockitoInitializationException: 
Could not initialize inline Byte Buddy mock maker.

It appears as if your JDK does not supply a working agent attachment mechanism.
Java               : 23
JVM vendor name    : GraalVM Community
JVM vendor version : 23.0.1+11-jvmci-b01
JVM name           : OpenJDK 64-Bit Server VM
JVM version        : 23.0.1+11-jvmci-b01
JVM info           : mixed mode, sharing
OS name            : Mac OS X
OS version         : 13.7.2

        at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.<init>(InlineDelegateByteBuddyMockMaker.java:252)
        at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.<init>(InlineByteBuddyMockMaker.java:23)
        at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
        ... 15 more
Caused by: java.lang.IllegalStateException: Failed to resolve the class file version of the current VM: Unknown Java version: 0
        at net.bytebuddy.ClassFileVersion$VersionLocator$Unresolved.resolve(ClassFileVersion.java:667)
        at net.bytebuddy.ClassFileVersion.ofThisVm(ClassFileVersion.java:349)
        at org.mockito.internal.PremainAttachAccess.getInstrumentation(PremainAttachAccess.java:42)
        at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.<clinit>(InlineDelegateByteBuddyMockMaker.java:136)
        ... 17 more

[ERROR] org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.shouldCloseRegisteredSinksWhenClosingBroadcaster -- Time elapsed: 0.002 s <<< ERROR!
java.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
        at org.mockito.internal.configuration.plugins.PluginLoader$1.invoke(PluginLoader.java:85)
        at jdk.proxy2/jdk.proxy2.$Proxy9.isTypeMockable(Unknown Source)
        at org.mockito.internal.util.MockUtil.typeMockabilityOf(MockUtil.java:78)
        at org.mockito.internal.util.MockCreationValidator.validateType(MockCreationValidator.java:22)
        at org.mockito.internal.creation.MockSettingsImpl.validatedSettings(MockSettingsImpl.java:275)
        at org.mockito.internal.creation.MockSettingsImpl.build(MockSettingsImpl.java:236)
        at org.mockito.internal.MockitoCore.mock(MockitoCore.java:82)
        at org.mockito.Mockito.mock(Mockito.java:2185)
        at org.mockito.Mockito.mock(Mockito.java:2100)
        at org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.getMockContext(SseServerBroadcasterTests.java:77)
        at org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.shouldCloseRegisteredSinksWhenClosingBroadcaster(SseServerBroadcasterTests.java:26)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
Caused by: java.lang.IllegalStateException: Internal problem occurred, please report it. Mockito is unable to load the default implementation of class that is a part of Mockito distribution. Failed to load interface org.mockito.plugins.MockMaker
        at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.create(DefaultMockitoPlugins.java:105)
        at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.getDefaultPlugin(DefaultMockitoPlugins.java:79)
        at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:75)
        at org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:49)
        at org.mockito.internal.configuration.plugins.PluginRegistry.<init>(PluginRegistry.java:29)
        at org.mockito.internal.configuration.plugins.Plugins.<clinit>(Plugins.java:26)
        at org.mockito.internal.MockitoCore.<clinit>(MockitoCore.java:71)
        at org.mockito.Mockito.<clinit>(Mockito.java:1764)
        at org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.getMockContext(SseServerBroadcasterTests.java:77)
        at org.jboss.resteasy.reactive.server.jaxrs.SseServerBroadcasterTests.shouldNotSendToClosedSink(SseServerBroadcasterTests.java:40)
        ... 3 more
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:501)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:485)
        at org.mockito.internal.configuration.plugins.DefaultMockitoPlugins.create(DefaultMockitoPlugins.java:103)
        ... 12 more
Caused by: org.mockito.exceptions.base.MockitoInitializationException: 
Could not initialize inline Byte Buddy mock maker.

It appears as if your JDK does not supply a working agent attachment mechanism.
Java               : 23
JVM vendor name    : GraalVM Community
JVM vendor version : 23.0.1+11-jvmci-b01
JVM name           : OpenJDK 64-Bit Server VM
JVM version        : 23.0.1+11-jvmci-b01
JVM info           : mixed mode, sharing
OS name            : Mac OS X
OS version         : 13.7.2

        at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.<init>(InlineDelegateByteBuddyMockMaker.java:252)
        at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.<init>(InlineByteBuddyMockMaker.java:23)
        at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
        ... 15 more
Caused by: java.lang.IllegalStateException: Failed to resolve the class file version of the current VM: Unknown Java version: 0
        at net.bytebuddy.ClassFileVersion$VersionLocator$Unresolved.resolve(ClassFileVersion.java:667)
        at net.bytebuddy.ClassFileVersion.ofThisVm(ClassFileVersion.java:349)
        at org.mockito.internal.PremainAttachAccess.getInstrumentation(PremainAttachAccess.java:42)
        at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.<clinit>(InlineDelegateByteBuddyMockMaker.java:136)
        ... 17 more

[INFO] Running org.jboss.resteasy.reactive.server.handlers.FormBodyHandlerTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s -- in org.jboss.resteasy.reactive.server.handlers.FormBodyHandlerTest
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   SseServerBroadcasterTests.shouldCloseRegisteredSinksWhenClosingBroadcaster:26->getMockContext:77 » IllegalState Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
[ERROR]   SseServerBroadcasterTests.shouldExecuteOnClose:59->getMockContext:77 » IllegalState Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
[ERROR]   SseServerBroadcasterTests.shouldNotSendToClosedSink:40->getMockContext:77 » IllegalState Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
[INFO] 
[ERROR] Tests run: 4, Failures: 0, Errors: 3, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Quarkus - Project pom 999-SNAPSHOT:
[INFO] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file area/jdbc Issues related to the JDBC extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants