eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 722 forks source link

jdk23 ClassNotFoundException #19779

Open pshipton opened 4 months ago

pshipton commented 4 months ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_linux_Nightly_testList_0/1 - ub16x64j98 jdk_foreign_1 java/foreign/SafeFunctionAccessTest.java#interpreted

02:43:06  command: testng -Djdk.internal.foreign.DowncallLinker.USE_SPEC=false --enable-native-access=ALL-UNNAMED SafeFunctionAccessTest
02:43:06  reason: User specified action: run testng/othervm -Djdk.internal.foreign.DowncallLinker.USE_SPEC=false --enable-native-access=ALL-UNNAMED SafeFunctionAccessTest 

23:02:49  java.lang.NoClassDefFoundError: org.testng.IMethodSelector
23:02:49    at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:607)
23:02:49    at org.testng.SuiteRunner.init(SuiteRunner.java:178)
23:02:49    at org.testng.SuiteRunner.<init>(SuiteRunner.java:112)
23:02:49    at org.testng.TestNG.createSuiteRunner(TestNG.java:1306)
23:02:49    at org.testng.TestNG.createSuiteRunners(TestNG.java:1282)
23:02:49    at org.testng.TestNG.runSuitesLocally(TestNG.java:1131)
23:02:49    at org.testng.TestNG.runSuites(TestNG.java:1069)
23:02:49    at org.testng.TestNG.run(TestNG.java:1037)
23:02:49    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
23:02:49    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
23:02:49    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
23:02:49    at java.base/java.lang.reflect.Method.invoke(Method.java:586)
23:02:49    at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
23:02:49    at java.base/java.lang.Thread.run(Thread.java:1587)
23:02:49  Caused by: java.lang.ClassNotFoundException: org.testng.IMethodSelector
23:02:49    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
23:02:49    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
23:02:49    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1099)
23:02:49    ... 14 more

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_linux_Nightly_testList_0/2/ - cent7-x64-5 jdk_lang_0 java/lang/invoke/VarHandles/VarHandleTestExact.java

23:02:49  command: testng -Xverify:all -Djdk.internal.foreign.SHOULD_ADAPT_HANDLES=false -Djava.lang.invoke.VarHandle.VAR_HANDLE_GUARDS=true -Djava.lang.invoke.VarHandle.VAR_HANDLE_IDENTITY_ADAPT=true VarHandleTestExact
23:02:49  java.lang.NoClassDefFoundError: org.testng.IMethodSelector
23:02:49    at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:607)
23:02:49    at org.testng.SuiteRunner.init(SuiteRunner.java:178)
23:02:49    at org.testng.SuiteRunner.<init>(SuiteRunner.java:112)
23:02:49    at org.testng.TestNG.createSuiteRunner(TestNG.java:1306)
23:02:49    at org.testng.TestNG.createSuiteRunners(TestNG.java:1282)
23:02:49    at org.testng.TestNG.runSuitesLocally(TestNG.java:1131)
23:02:49    at org.testng.TestNG.runSuites(TestNG.java:1069)
23:02:49    at org.testng.TestNG.run(TestNG.java:1037)
23:02:49    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
23:02:49    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
23:02:49    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
23:02:49    at java.base/java.lang.reflect.Method.invoke(Method.java:586)
23:02:49    at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
23:02:49    at java.base/java.lang.Thread.run(Thread.java:1587)
23:02:49  Caused by: java.lang.ClassNotFoundException: org.testng.IMethodSelector
23:02:49    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
23:02:49    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
23:02:49    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1099)
23:02:49    ... 14 more
pshipton commented 4 months ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_linux_Nightly_testList_1/8 jdk_util_0 08:52:07 Failed test cases: 08:52:07 TEST: java/util/Calendar/BuddhistCalendarTest.java 08:52:07 TEST: java/util/Calendar/bug4401223.java 08:52:07 TEST: java/util/Calendar/bug4409072.java 08:52:07 TEST: java/util/Calendar/CalendarLeapYearAddTest.java 08:52:07 TEST: java/util/Calendar/CalendarRegression.java 08:52:07 TEST: java/util/concurrent/Future/DefaultMethods.java

08:02:33  org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to execute tests
08:02:33    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:153)
08:02:33    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
08:02:33    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
08:02:33    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
08:02:33    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
08:02:33    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
08:02:33    at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
08:02:33    at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
08:02:33    at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
08:02:33    at com.sun.javatest.regtest.agent.JUnitRunner.runWithJUnitPlatform(JUnitRunner.java:142)
08:02:33    at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:95)
08:02:33    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
08:02:33    at java.base/java.lang.reflect.Method.invoke(Method.java:586)
08:02:33    at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
08:02:33    at java.base/java.lang.Thread.run(Thread.java:1587)
08:02:33  Caused by: java.lang.NoClassDefFoundError: org.junit.platform.engine.support.hierarchical.NodeUtils$1
08:02:33    at org.junit.platform.engine.support.hierarchical.NodeUtils.<clinit>(NodeUtils.java:30)
08:02:33    at org.junit.platform.engine.support.hierarchical.NodeTreeWalker.getExclusiveResources(NodeTreeWalker.java:95)
08:02:33    at org.junit.platform.engine.support.hierarchical.NodeTreeWalker.walk(NodeTreeWalker.java:44)
08:02:33    at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:52)
08:02:33    at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
08:02:33    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
08:02:33    ... 14 more
08:02:33  Caused by: java.lang.ClassNotFoundException: org.junit.platform.engine.support.hierarchical.NodeUtils$1
08:02:33    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
08:02:33    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
08:02:33    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1099)
08:02:33    ... 20 more
tajila commented 3 months ago

@pshipton @JasonFengJ9 Do we see any more failures like these. The failures seem test infra related as there is no correlation with a specific test.

pshipton commented 3 months ago

I"ll move it out and consider it not a real issue unless we see it in internal builds.

JasonFengJ9 commented 3 months ago

No, it wasn't seen in internal builds.

pshipton commented 3 months ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_linux_Nightly_testList_0/38 jdk_util_1 java/util/jar/Attributes/NullAndEmptyKeysAndValues.java

02:40:08  test NullAndEmptyKeysAndValues.testSectionNameNull(): success
02:40:08  STDERR:
02:40:08  java.lang.NoClassDefFoundError: org.testng.internal.DynamicGraph$1
02:40:08    at org.testng.internal.DynamicGraph.setStatus(DynamicGraph.java:97)
02:40:08    at org.testng.internal.DynamicGraph.setStatus(DynamicGraph.java:91)
02:40:08    at org.testng.TestRunner.privateRun(TestRunner.java:765)
02:40:08    at org.testng.TestRunner.run(TestRunner.java:585)
02:40:08    at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
02:40:08    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
02:40:08    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
02:40:08    at org.testng.SuiteRunner.run(SuiteRunner.java:286)
02:40:08    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
02:40:08    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
02:40:08    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
02:40:08    at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
02:40:08    at org.testng.TestNG.runSuites(TestNG.java:1069)
02:40:08    at org.testng.TestNG.run(TestNG.java:1037)
02:40:08    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
02:40:08    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
02:40:08    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
02:40:08    at java.base/java.lang.reflect.Method.invoke(Method.java:586)
02:40:08    at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
02:40:08    at java.base/java.lang.Thread.run(Thread.java:1587)
02:40:08  Caused by: java.lang.ClassNotFoundException: org.testng.internal.DynamicGraph$1
02:40:08    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
02:40:08    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
02:40:08    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1099)
02:40:08    ... 20 more
02:40:08  
02:40:08  JavaTest Message: Test threw exception: java.lang.NoClassDefFoundError: org.testng.internal.DynamicGraph$1
02:40:08  JavaTest Message: shutting down test
02:40:08  
02:40:08  STATUS:Failed.`main' threw exception: java.lang.NoClassDefFoundError: org.testng.internal.DynamicGraph$1
pshipton commented 3 months ago

Perhaps related to https://github.com/eclipse-openj9/openj9/issues/19373#issuecomment-2299565694 which was seen in an internal build.

pshipton commented 1 month ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_linux_Nightly_testList_0/62/ jdk_lang_0 java/lang/runtime/ObjectMethodsTest.java

00:03:56  Error: Unable to initialize main class com.sun.javatest.regtest.agent.MainWrapper
00:03:56  Caused by: java.lang.NoClassDefFoundError: com.sun.javatest.regtest.agent.MainWrapper$MainThreadGroup
pshipton commented 1 month ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_linux_Nightly_testList_1/72 jdk_util_0 java/util/jar/JarFile/mrjar/MultiReleaseJarProperties.java

01:47:36  java.lang.NoClassDefFoundError: org.testng.CommandLineArgs
01:47:36    at org.testng.TestNG.<init>(TestNG.java:773)
01:47:36    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:92)
01:47:36    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
01:47:36    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
01:47:36    at java.base/java.lang.reflect.Method.invoke(Method.java:586)
01:47:36    at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
01:47:36    at java.base/java.lang.Thread.run(Thread.java:1587)
01:47:36  Caused by: java.lang.ClassNotFoundException: org.testng.CommandLineArgs
01:47:36    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
01:47:36    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
01:47:36    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1101)
01:47:36    ... 7 more
pshipton commented 1 month ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_linux_Nightly_testList_0/75 java/util/zip/DeflaterDictionaryTests.java

09:24:53  java.lang.NoClassDefFoundError: org.testng.thread.IExecutorFactory
09:24:53    at org.testng.TestNG.init(TestNG.java:220)
09:24:53    at org.testng.TestNG.<init>(TestNG.java:213)
09:24:53    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:92)
09:24:53    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
09:24:53    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
09:24:53    at java.base/java.lang.reflect.Method.invoke(Method.java:586)
09:24:53    at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
09:24:53    at java.base/java.lang.Thread.run(Thread.java:1587)
09:24:53  Caused by: java.lang.ClassNotFoundException: org.testng.thread.IExecutorFactory
09:24:53    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
09:24:53    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
09:24:53    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1101)
09:24:53    ... 8 more
pshipton commented 1 month ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_linux_Nightly_testList_0/76 jdk_lang_0 jdk/modules/scenarios/container/ContainerTest.java

04:45:51  java.lang.NoClassDefFoundError: org.testng.internal.Systematiser$3
04:45:51    at org.testng.internal.Systematiser.getComparator(Systematiser.java:65)
04:45:51    at org.testng.TestNG.createSuiteRunner(TestNG.java:1306)
04:45:51    at org.testng.TestNG.createSuiteRunners(TestNG.java:1282)
04:45:51    at org.testng.TestNG.runSuitesLocally(TestNG.java:1131)
04:45:51    at org.testng.TestNG.runSuites(TestNG.java:1069)
04:45:51    at org.testng.TestNG.run(TestNG.java:1037)
04:45:51    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
04:45:51    at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
04:45:51    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
04:45:51    at java.base/java.lang.reflect.Method.invoke(Method.java:586)
04:45:51    at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
04:45:51    at java.base/java.lang.Thread.run(Thread.java:1587)
04:45:51  Caused by: java.lang.ClassNotFoundException: org.testng.internal.Systematiser$3
04:45:51    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
04:45:51    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
04:45:51    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1101)
04:45:51    ... 12 more
pshipton commented 1 month ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_mac_Nightly_testList_2/50 jdk_foreign_0 java/foreign/largestub/TestLargeStub.java

03:05:48  Exception in thread "main" java.lang.NoClassDefFoundError: com.sun.javatest.regtest.agent.StringArray
03:05:48    at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:58)
03:05:48  Caused by: java.lang.ClassNotFoundException: com.sun.javatest.regtest.agent.StringArray
03:05:48    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
03:05:48    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
03:05:48    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1099)
03:05:48    ... 1 more
pshipton commented 1 month ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_extended.functional_x86-64_mac_Nightly_testList_0/51 threadMXBeanTimedParkTest_3

07:37:02  FAILED: testTimedParkTest
07:37:02  java.lang.NoClassDefFoundError: org.testng.internal.MethodInvocationHelper
07:37:02    at org.testng.internal.Invoker.invokeMethod(Invoker.java:580)
07:37:02    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:716)
07:37:02    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:988)
07:37:02    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
07:37:02    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
07:37:02    at org.testng.TestRunner.privateRun(TestRunner.java:648)
07:37:02    at org.testng.TestRunner.run(TestRunner.java:505)
07:37:02    at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
07:37:02    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
07:37:02    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
07:37:02    at org.testng.SuiteRunner.run(SuiteRunner.java:364)
07:37:02    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
07:37:02    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
07:37:02    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
07:37:02    at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
07:37:02    at org.testng.TestNG.runSuites(TestNG.java:1049)
07:37:02    at org.testng.TestNG.run(TestNG.java:1017)
07:37:02    at org.testng.TestNG.privateMain(TestNG.java:1354)
07:37:02    at org.testng.TestNG.main(TestNG.java:1323)
07:37:02  Caused by: java.lang.ClassNotFoundException: org.testng.internal.MethodInvocationHelper
07:37:02    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:827)
07:37:02    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
07:37:02    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1099)
07:37:02    ... 19 more
pshipton commented 3 weeks ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_mac_Nightly_testList_1/54 java/util/Map/EntrySetIterator.java Caused by: java.lang.ClassNotFoundException: org.testng.internal.MethodInvocationHelper java/util/Objects/CheckLongIndex.java NoClassDefFoundError: org/testng/internal/MethodInvocationHelper java/util/prefs/PrefsSpiTest.java NoClassDefFoundError: org/testng/internal/MethodInvocationHelper

pshipton commented 3 weeks ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_linux_Nightly_testList_1/83 java/util/concurrent/tck/JSR166TestCase.java#security-manager Caused by: java.lang.ClassNotFoundException: junit.framework.TestResult

pshipton commented 1 week ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.openjdk_x86-64_linux_Nightly_testList_1/94/ jdk_lang_1 java/lang/invoke/8147078/Test8147078.java Caused by: java.lang.ClassNotFoundException: org.testng.IMethodInstance

pshipton commented 1 week ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_extended.functional_x86-64_mac_Nightly_testList_1/66 Caused by: java.lang.ClassNotFoundException: org.testng.reporters.jq.TimesPanel