Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8152164

DirectiveStressTest.java fails with NoClassDefFoundError

XMLWordPrintable

      The test compiler/compilercontrol/parser/DirectiveStressTest.java fails due to a class not being found. Here is the detailed error message:

      ----------messages:(3/193)----------
      command: driver compiler.compilercontrol.parser.DirectiveStressTest
      reason: User specified action: run driver compiler.compilercontrol.parser.DirectiveStressTest
      elapsed time (seconds): 0.834
      ----------System.out:(2/168)----------
      For random generator using seed: -2159048774273918945
      To re-run test with same seed value please add "-Djdk.test.lib.random.seed=-2159048774273918945" to command line.
      ----------System.err:(22/1546)----------
      java.lang.NoClassDefFoundError: compiler/compilercontrol/share/scenario/Scenario$Compiler
      at compiler.compilercontrol.parser.HugeDirectiveUtil.createMatchObject(HugeDirectiveUtil.java:83)
      at compiler.compilercontrol.parser.HugeDirectiveUtil.createHugeFile(HugeDirectiveUtil.java:62)
      at compiler.compilercontrol.parser.DirectiveStressTest.hugeFileTest(DirectiveStressTest.java:81)
      at compiler.compilercontrol.parser.DirectiveStressTest.main(DirectiveStressTest.java:56)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(Thread.java:804)
      Caused by: java.lang.ClassNotFoundException: compiler.compilercontrol.share.scenario.Scenario$Compiler
      at java.net.URLClassLoader.findClass(URLClassLoader.java:385)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:262)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 10 more

      JavaTest Message: Test threw exception: java.lang.NoClassDefFoundError: compiler/compilercontrol/share/scenario/Scenario$Compiler
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.NoClassDefFoundError: compiler/compilercontrol/share/scenario/Scenario$Compiler

            neliasso Nils Eliasson (Inactive)
            zmajo Zoltan Majo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: