java.lang.BootstrapMethodError: java.lang.LinkageError

JDK Bug System | Rickard Backman | 5 months ago
  1. 0

    ACTION: build -- Passed. All files up to date REASON: Named class compiled on demand TIME: 0.0 seconds messages: command: build compiler.codecache.jmx.UsageThresholdExceededTest reason: Named class compiled on demand elapsed time (seconds): 0.0 ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.BootstrapMethodError: java.lang.LinkageError REASON: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseCodeCacheFlushing -XX:-MethodFlushing -XX:CompileCommand=compileonly,null::* -XX:+SegmentedCodeCache compiler.codecache.jmx.UsageThresholdExceededTest TIME: 2.265 seconds messages: command: main -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseCodeCacheFlushing -XX:-MethodFlushing -XX:CompileCommand=compileonly,null::* -XX:+SegmentedCodeCache compiler.codecache.jmx.UsageThresholdExceededTest reason: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseCodeCacheFlushing -XX:-MethodFlushing -XX:CompileCommand=compileonly,null::* -XX:+SegmentedCodeCache compiler.codecache.jmx.UsageThresholdExceededTest Mode: othervm [/othervm specified] elapsed time (seconds): 2.265 configuration: Boot Layer add exports: java.base/jdk.internal.misc ALL-UNNAMED boot class path (append): . STDOUT: CompileCommand: compileonly null.* STDERR: java.lang.BootstrapMethodError: java.lang.LinkageError at compiler.codecache.jmx.CodeCacheUtils.hitUsageThreshold(CodeCacheUtils.java:60) at compiler.codecache.jmx.UsageThresholdExceededTest.runTest(UsageThresholdExceededTest.java:74) at compiler.codecache.jmx.UsageThresholdExceededTest.main(UsageThresholdExceededTest.java:66) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:533) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) Caused by: java.lang.LinkageError at java.lang.invoke.MethodHandleNatives.linkMethodImpl(java.base@9-internal/MethodHandleNatives.java:386) at java.lang.invoke.MethodHandleNatives.linkMethod(java.base@9-internal/MethodHandleNatives.java:366) at java.util.concurrent.atomic.AtomicLong.compareAndSet(java.base@9-internal/AtomicLong.java:152) at java.util.Random.seedUniquifier(java.base@9-internal/Random.java:114) at java.util.Random.<init>(java.base@9-internal/Random.java:105) at java.util.concurrent.ThreadLocalRandom.<init>(java.base@9-internal/ThreadLocalRandom.java:150) at java.util.concurrent.ThreadLocalRandom.<clinit>(java.base@9-internal/ThreadLocalRandom.java:1106) at java.util.concurrent.ConcurrentHashMap.fullAddCount(java.base@9-internal/ConcurrentHashMap.java:2583) at java.util.concurrent.ConcurrentHashMap.addCount(java.base@9-internal/ConcurrentHashMap.java:2332) at java.util.concurrent.ConcurrentHashMap.replaceNode(java.base@9-internal/ConcurrentHashMap.java:1179) at java.util.concurrent.ConcurrentHashMap.remove(java.base@9-internal/ConcurrentHashMap.java:1108) at java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(java.base@9-internal/MethodType.java:1291) at java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(java.base@9-internal/MethodType.java:1250) at java.lang.invoke.MethodType.makeImpl(java.base@9-internal/MethodType.java:305) at java.lang.invoke.MethodHandleNatives.findMethodHandleType(java.base@9-internal/MethodHandleNatives.java:292) ... 9 more Caused by: java.lang.NullPointerException at java.util.concurrent.ThreadLocalRandom.localInit(java.base@9-internal/ThreadLocalRandom.java:164) at java.util.concurrent.ConcurrentHashMap.fullAddCount(java.base@9-internal/ConcurrentHashMap.java:2584) at java.util.concurrent.ConcurrentHashMap.addCount(java.base@9-internal/ConcurrentHashMap.java:2332) at java.util.concurrent.ConcurrentHashMap.putVal(java.base@9-internal/ConcurrentHashMap.java:1081) at java.util.concurrent.ConcurrentHashMap.putIfAbsent(java.base@9-internal/ConcurrentHashMap.java:1551) at java.lang.invoke.MethodType$ConcurrentWeakInternSet.add(java.base@9-internal/MethodType.java:1282) at java.lang.invoke.MethodType.makeImpl(java.base@9-internal/MethodType.java:314) at java.lang.invoke.MethodTypeForm.canonicalize(java.base@9-internal/MethodTypeForm.java:354) at java.lang.invoke.MethodTypeForm.findForm(java.base@9-internal/MethodTypeForm.java:316) at java.lang.invoke.MethodType.makeImpl(java.base@9-internal/MethodType.java:313) at java.lang.invoke.MethodType.insertParameterTypes(java.base@9-internal/MethodType.java:403) at java.lang.invoke.MethodHandleNatives.varHandleOperationLinkerMethod(java.base@9-internal/MethodHandleNatives.java:446) at java.lang.invoke.MethodHandleNatives.linkMethodImpl(java.base@9-internal/MethodHandleNatives.java:378) ... 23 more JavaTest Message: Test threw exception: java.lang.BootstrapMethodError: java.lang.LinkageError JavaTest Message: shutting down test

    JDK Bug System | 5 months ago | Rickard Backman
    java.lang.BootstrapMethodError: java.lang.LinkageError
  2. 0

    java/lang/String/concat/WithSecurityManager.java fails after JDK-8163878, on all platforms. #section:main ----------messages:(4/194)---------- command: main -Xverify:all WithSecurityManager reason: User specified action: run main/othervm -Xverify:all WithSecurityManager Mode: othervm [/othervm specified] elapsed time (seconds): 0.855 ----------configuration:(0/0)---------- ----------System.out:(0/0)---------- ----------System.err:(64/5072)---------- java.lang.BootstrapMethodError: java.lang.ExceptionInInitializerError: makeConcatWithConstants at WithSecurityManager$1.checkPermission(WithSecurityManager.java:57) at java.lang.SecurityManager.checkRead(java.base@9-ea/SecurityManager.java:887) at java.io.File.exists(java.base@9-ea/File.java:815) at jdk.internal.loader.URLClassPath$FileLoader.getResource(java.base@9-ea/URLClassPath.java:1039) at jdk.internal.loader.URLClassPath.getResource(java.base@9-ea/URLClassPath.java:216) at jdk.internal.loader.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:463) at jdk.internal.loader.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:460) at java.security.AccessController.doPrivileged(java.base@9-ea/Native Method) at jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(java.base@9-ea/BuiltinClassLoader.java:459) at jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(java.base@9-ea/BuiltinClassLoader.java:406) at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:364) at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:185) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:419) at WithSecurityManager.main(WithSecurityManager.java:61) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) Caused by: java.lang.ExceptionInInitializerError: makeConcatWithConstants ... 20 more JavaTest Message: Test threw exception: java.lang.BootstrapMethodError: java.lang.ExceptionInInitializerError: makeConcatWithConstants JavaTest Message: shutting down test java.lang.BootstrapMethodError: java.lang.ExceptionInInitializerError: makeConcatWithConstants at WithSecurityManager$1.checkPermission(WithSecurityManager.java:57) at java.lang.SecurityManager.checkRead(java.base@9-ea/SecurityManager.java:887) at java.io.File.exists(java.base@9-ea/File.java:815) at jdk.internal.loader.URLClassPath$FileLoader.getResource(java.base@9-ea/URLClassPath.java:1039) at jdk.internal.loader.URLClassPath.getResource(java.base@9-ea/URLClassPath.java:216) at jdk.internal.loader.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:463) at jdk.internal.loader.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:460) at java.security.AccessController.doPrivileged(java.base@9-ea/Native Method) at jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(java.base@9-ea/BuiltinClassLoader.java:459) at jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(java.base@9-ea/BuiltinClassLoader.java:406) at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:364) at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:185) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:419) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:118) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) Caused by: java.lang.ExceptionInInitializerError: makeConcatWithConstants ... 15 more Exception: java.lang.BootstrapMethodError thrown from the UncaughtExceptionHandler in thread "MainThread" Exception in thread "main" java.lang.BootstrapMethodError: java.lang.ExceptionInInitializerError: makeConcatWithConstants at WithSecurityManager$1.checkPermission(WithSecurityManager.java:57) at java.lang.SecurityManager.checkRead(java.base@9-ea/SecurityManager.java:887) at java.io.File.exists(java.base@9-ea/File.java:815) at jdk.internal.loader.URLClassPath$FileLoader.getResource(java.base@9-ea/URLClassPath.java:1039) at jdk.internal.loader.URLClassPath.getResource(java.base@9-ea/URLClassPath.java:216) at jdk.internal.loader.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:463) at jdk.internal.loader.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:460) at java.security.AccessController.doPrivileged(java.base@9-ea/Native Method) at jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(java.base@9-ea/BuiltinClassLoader.java:459) at jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(java.base@9-ea/BuiltinClassLoader.java:406) at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:364) at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:185) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:419) at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:81) Caused by: java.lang.ExceptionInInitializerError: makeConcatWithConstants ... 14 more

    JDK Bug System | 4 months ago | Amy Lu
    java.lang.BootstrapMethodError: java.lang.ExceptionInInitializerError: makeConcatWithConstants
  3. 0

    To reproduce this, run the following in JIGSAW mode (with JIGSAW_HOME set to a JDK 9 jigsaw build with javafx modules). $ gradle --info -PFULL_TEST=true -PUSE_ROBOT=true :systemTests:test --tests test.robot.javafx.embed.swing.RT30650Test test.robot.javafx.embed.swing.RT30650Test > test STANDARD_ERROR Exception in thread "JavaFX Application Thread" java.lang.BootstrapMethodError: java.lang.IllegalAccessError: class test.robot.javafx.embed.swing.RT30650GUI (in unnamed module @0x7f8ac96d) cannot access class com.sun.javafx.tk.TKPulseListener (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.tk to unnamed module @0x7f8ac96d at test.robot.javafx.embed.swing.RT30650GUI.lambda$start$2(RT30650GUI.java:98) at com.sun.javafx.application.PlatformImpl.lambda$runLater$5(javafx.graphics@9-internal/PlatformImpl.java:315) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(javafx.graphics@9-internal/PlatformImpl.java:314) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(javafx.graphics@9-internal/InvokeLaterDispatcher.java:96) at com.sun.glass.ui.gtk.GtkApplication._runLoop(javafx.graphics@9-internal/Native Method) at com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$5(javafx.graphics@9-internal/GtkApplication.java:139) at java.lang.Thread.run(java.base@9-internal/Thread.java:804) Caused by: java.lang.IllegalAccessError: class test.robot.javafx.embed.swing.RT30650GUI (in unnamed module @0x7f8ac96d) cannot access class com.sun.javafx.tk.TKPulseListener (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.tk to unnamed module @0x7f8ac96d ... 8 more Gradle Test Executor 47 finished executing tests. test.robot.javafx.embed.swing.RT30650Test > test FAILED java.lang.Exception: test timed out after 10000 milliseconds at jdk.internal.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190) at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:869) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1023) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1332) at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:232) at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:205) at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:148) at javafx.application.Application.launch(Application.java:252) at test.robot.javafx.embed.swing.RT30650GUI.test(RT30650GUI.java:65) at test.robot.javafx.embed.swing.RT30650Test.test(RT30650Test.java:39)

    JDK Bug System | 8 months ago | Kevin Rushforth
    java.lang.BootstrapMethodError: java.lang.IllegalAccessError: class test.robot.javafx.embed.swing.RT30650GUI (in unnamed module @0x7f8ac96d) cannot access class com.sun.javafx.tk.TKPulseListener (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.tk to unnamed module @0x7f8ac96d
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    3.1 release?

    Google Groups | 10 months ago | Michael Grafton
    java.lang.BootstrapMethodError: call site initialization exception
  6. 0

    It seems that unicode file names are destroyed when creating the Uber jar

    GitHub | 6 months ago | danieldietrich
    java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: javaslang/?

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.BootstrapMethodError

      java.lang.LinkageError

      at compiler.codecache.jmx.CodeCacheUtils.hitUsageThreshold()
    2. compiler.codecache.jmx
      UsageThresholdExceededTest.main
      1. compiler.codecache.jmx.CodeCacheUtils.hitUsageThreshold(CodeCacheUtils.java:60)
      2. compiler.codecache.jmx.UsageThresholdExceededTest.runTest(UsageThresholdExceededTest.java:74)
      3. compiler.codecache.jmx.UsageThresholdExceededTest.main(UsageThresholdExceededTest.java:66)
      3 frames