Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006279 [Resin] minor always 08-15-19 01:21 08-15-19 13:18
Reporter nam View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.62
Summary 0006279: resin fails to start with javaagent on JDK11
Description (rep by M. Shimomura)

resin fails to start with a javaagent on JDK11. It works fine with JDK8. It appears to be a problem with all agents: https://discuss.newrelic.com/t/java-11-application-using-resin-4-0-58-unable-to-start-using-4-9-0-jar-files/64299 [^]

For some reason, the LogManager is null: https://github.com/openjdk/jdk11u/blob/737d8437886ad97c6ed21a25b9911c10b3886f61/src/java.logging/share/classes/java/util/logging/Logger.java#L654 [^]

http://search.maven.org/remotecontent?filepath=org/jolokia/jolokia-jvm/1.6.2/jolokia-jvm-1.6.2-agent.jar [^]

resin.properties:
    jvm_args : -javaagent:../jolokia-jvm-1.6.2-agent.jar

$ bin/resin.sh console
java.lang.ExceptionInInitializerError
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:538)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:205)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:156)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:117)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1606)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1548)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1529)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:234)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.vfs.FilePath.<clinit>(FilePath.java:56)
    at com.caucho.vfs.Vfs.<clinit>(Vfs.java:414)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:672)
Caused by: java.lang.NullPointerException
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:654)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.loader.Loader.<clinit>(Loader.java:54)
    ... 18 more
java.lang.NoClassDefFoundError: Could not initialize class com.caucho.loader.JarLoader
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:538)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:205)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:156)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:117)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1606)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1548)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1529)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:234)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.vfs.FilePath.<clinit>(FilePath.java:56)
    at com.caucho.vfs.Vfs.<clinit>(Vfs.java:414)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:672)
java.lang.NoClassDefFoundError: Could not initialize class com.caucho.loader.JarLoader
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:538)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:205)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:156)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:117)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1606)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1548)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1529)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:234)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.vfs.FilePath.<clinit>(FilePath.java:56)
    at com.caucho.vfs.Vfs.<clinit>(Vfs.java:414)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:672)
java.lang.NoClassDefFoundError: Could not initialize class com.caucho.loader.JarLoader
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:538)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:205)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:156)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:117)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1606)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1548)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1529)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:234)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.vfs.FilePath.<clinit>(FilePath.java:56)
    at com.caucho.vfs.Vfs.<clinit>(Vfs.java:414)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:672)
java.lang.NoClassDefFoundError: Could not initialize class com.caucho.loader.JarLoader
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:538)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:205)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:156)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:117)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1606)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1548)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1529)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:234)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.vfs.FilePath.<clinit>(FilePath.java:56)
    at com.caucho.vfs.Vfs.<clinit>(Vfs.java:414)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:672)
java.lang.NoClassDefFoundError: Could not initialize class com.caucho.loader.JarLoader
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:538)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:205)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:156)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:117)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1606)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1548)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1529)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:234)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.vfs.FilePath.<clinit>(FilePath.java:56)
    at com.caucho.vfs.Vfs.<clinit>(Vfs.java:414)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:672)
java.lang.NoClassDefFoundError: Could not initialize class com.caucho.loader.JarLoader
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:538)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:205)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:156)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:117)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1606)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1548)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1529)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:234)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.vfs.FilePath.<clinit>(FilePath.java:56)
    at com.caucho.vfs.Vfs.<clinit>(Vfs.java:414)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:672)
java.lang.NoClassDefFoundError: Could not initialize class com.caucho.loader.JarLoader
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:538)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:205)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:156)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:117)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1606)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1548)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1529)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:234)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.vfs.FilePath.<clinit>(FilePath.java:56)
    at com.caucho.vfs.Vfs.<clinit>(Vfs.java:414)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:672)
java.lang.NoClassDefFoundError: Could not initialize class com.caucho.loader.JarLoader
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:538)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:205)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:156)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:117)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1606)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1548)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1529)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:234)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.vfs.FilePath.<clinit>(FilePath.java:56)
    at com.caucho.vfs.Vfs.<clinit>(Vfs.java:414)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:672)
java.lang.NoClassDefFoundError: Could not initialize class com.caucho.loader.JarLoader
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:538)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:205)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:156)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:117)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1606)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1548)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1529)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:234)
    at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223)
    at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
    at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
    at com.caucho.vfs.FilePath.<clinit>(FilePath.java:56)
    at com.caucho.vfs.Vfs.<clinit>(Vfs.java:414)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:672)
Unexpected error (113) returned by AddToSystemClassLoaderSearch
Unable to add ../jolokia-1.6.2/agents/jolokia-jvm.jar to system class path - the system class loader does not define the appendToClassPathForInstrumentation method or the method failed
FATAL ERROR in native method: processing of -javaagent failed
Additional Information
Attached Files

- Relationships

- Notes
(0006914)
ferg
08-15-19 13:18

LogManager is null because it hasn't been initialized at that point.

The fix avoids initializing any logger from appendToClassPathForInstrumentation
 

- Issue History
Date Modified Username Field Change
08-15-19 01:21 nam New Issue
08-15-19 01:55 nam Description Updated
08-15-19 02:00 nam Description Updated
08-15-19 13:18 ferg Note Added: 0006914
08-15-19 13:18 ferg Assigned To  => ferg
08-15-19 13:18 ferg Status new => closed
08-15-19 13:18 ferg Resolution open => fixed
08-15-19 13:18 ferg Fixed in Version  => 4.0.63


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker