Mantis - Resin
Viewing Issue Advanced Details
6293 major always 10-31-19 03:33 11-20-19 16:39
nam  
ferg  
high  
closed 4.0.63  
fixed  
none    
none 4.0.64  
0006293: resin still fails to start with javaagent on JDK11
(rep by jang)

Supposed to be fixed in http://bugs.caucho.com/view.php?id=6279, [^] but it is still failing:

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.DynamicClassLoader.log(DynamicClassLoader.java:2527)
        at com.caucho.loader.DynamicClassLoader.addLoader(DynamicClassLoader.java:401)
        at com.caucho.loader.DynamicClassLoader.addLoader(DynamicClassLoader.java:373)
        at com.caucho.loader.Loader.init(Loader.java:109)
        at com.caucho.loader.JarListLoader.init(JarListLoader.java:121)
        at com.caucho.loader.JarLoader.init(JarLoader.java:66)
        at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:540)
        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:1607)
        at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
        at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1549)
        at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1530)
        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.loader.JarListLoader.<clinit>(JarListLoader.java:54)
        at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:539)
        at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:673)
java.lang.ExceptionInInitializerError
        at com.caucho.vfs.JarPath.getJar(JarPath.java:227)
        at com.caucho.vfs.JarPath.getCertificates(JarPath.java:141)
        at com.caucho.loader.JarListLoader.addJar(JarListLoader.java:156)
        at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:543)
        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:1607)
        at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
        at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1549)
        at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1530)
        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.loader.JarListLoader.<clinit>(JarListLoader.java:54)
        at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:539)
        at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:673)
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.vfs.Jar.<clinit>(Jar.java:66)
        ... 21 more
java.lang.NoClassDefFoundError: Could not initialize class com.caucho.vfs.Jar
        at com.caucho.vfs.JarPath.getJar(JarPath.java:227)
        at com.caucho.vfs.JarPath.getCertificates(JarPath.java:141)
        at com.caucho.loader.JarListLoader.addJar(JarListLoader.java:156)
        at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:543)
        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:1607)
        at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
        at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1549)
        at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1530)
        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.loader.JarListLoader.<clinit>(JarListLoader.java:54)
        at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:539)
        at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:673)

Notes
(0006919)
ferg   
11-05-19 13:12   
additional dynamic log required in JarListLoader and SimpleLoader
(0006920)
nam   
11-07-19 12:34   
It is still failing with the same error:

java.lang.ExceptionInInitializerError
    at com.caucho.vfs.JarPath.getJar(JarPath.java:227)
    at com.caucho.vfs.JarPath.getCertificates(JarPath.java:141)
    at com.caucho.loader.JarListLoader.addJar(JarListLoader.java:156)
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:543)
    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:1607)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:253)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1549)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1530)
    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.loader.DynamicClassLoader.log(DynamicClassLoader.java:2527)
    at com.caucho.loader.DynamicClassLoader.addLoader(DynamicClassLoader.java:401)
    at com.caucho.loader.DynamicClassLoader.addLoader(DynamicClassLoader.java:373)
    at com.caucho.loader.Loader.init(Loader.java:109)
    at com.caucho.loader.JarListLoader.init(JarListLoader.java:121)
    at com.caucho.loader.JarLoader.init(JarLoader.java:66)
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:540)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:673)
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.vfs.Jar.<clinit>(Jar.java:66)
    ... 26 more
(0006921)
nam   
11-07-19 12:39   
I think I built an outdated snapshot.
(0006922)
nam   
11-07-19 13:44   
Confirmed the issue still exists:

java version "11.0.4" 2019-07-16 LTS
(0006923)
vntnlzls   
11-12-19 18:13   
Scouter APM does not work with JDK 10 or later on Resin 4.x

This is true for Scouter APM as well as other APM solutions.
(0006924)
nam   
11-20-19 13:31   
Resin can now start with the latest svn checkin. However, there looks to be a harmless exception logged at startup:

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.DynamicClassLoader.log(DynamicClassLoader.java:2527)
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:531)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:210)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:157)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:118)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1607)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:258)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1549)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1530)
    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.loader.DynamicClassLoader.log(DynamicClassLoader.java:2527)
    at com.caucho.loader.DynamicClassLoader.addLoader(DynamicClassLoader.java:401)
    at com.caucho.loader.DynamicClassLoader.addLoader(DynamicClassLoader.java:373)
    at com.caucho.loader.Loader.init(Loader.java:109)
    at com.caucho.loader.JarListLoader.init(JarListLoader.java:121)
    at com.caucho.loader.JarLoader.init(JarLoader.java:66)
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:540)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:673)
(0006925)
nam   
11-20-19 15:37   
Confirmed fixed with svn commit r10761.
(0006926)
nam   
11-20-19 15:41   
My mistake. There is still a NullPointerException:

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.DynamicClassLoader.log(DynamicClassLoader.java:2536)
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:540)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:210)
    at com.caucho.loader.SystemClassLoader.initClasspath(SystemClassLoader.java:157)
    at com.caucho.loader.SystemClassLoader.init(SystemClassLoader.java:118)
    at com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.java:1616)
    at com.caucho.loader.SystemClassLoader.loadClassImpl(SystemClassLoader.java:258)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1558)
    at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1539)
    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.loader.DynamicClassLoader.log(DynamicClassLoader.java:2536)
    at com.caucho.loader.DynamicClassLoader.logFinest(DynamicClassLoader.java:434)
    at com.caucho.loader.DynamicClassLoader.addLoader(DynamicClassLoader.java:428)
    at com.caucho.loader.DynamicClassLoader.addLoader(DynamicClassLoader.java:373)
    at com.caucho.loader.Loader.init(Loader.java:109)
    at com.caucho.loader.JarListLoader.init(JarListLoader.java:121)
    at com.caucho.loader.JarLoader.init(JarLoader.java:66)
    at com.caucho.loader.DynamicClassLoader.addRoot(DynamicClassLoader.java:549)
    at com.caucho.loader.DynamicClassLoader.appendToClassPathForInstrumentation(DynamicClassLoader.java:682)
I> No access restrictor found, access to any MBean is allowed
I> Cannot join multicast group on NIF utun0: Can't assign requested address
I> Cannot join multicast group on NIF awdl0: Can't assign requested address
I> Cannot join multicast group on NIF en5: Can't assign requested address
I> Cannot join multicast group on NIF utun0: Can't assign requested address
I> Cannot join multicast group on NIF awdl0: Can't assign requested address
I> Cannot join multicast group on NIF en5: Can't assign requested address
Jolokia: Agent started with URL http://127.0.0.1:8778/jolokia/ [^]
Resin-4.0.s191107 (built Thu, 07 Nov 2019 08:50:01 GMT)
Copyright(c) 1998-2018 Caucho Technology. All rights reserved.

  Using Resin(R) Open Source under the GNU Public License (GPL).

  See http://www.caucho.com [^] for information on Resin Professional,
  including caching, clustering, JNI acceleration, and OpenSSL integration.

[19-11-20 15:41:02.121] {main} Using Resin(R) Open Source under the GNU Public License (GPL).
                       
                         See http://www.caucho.com [^] for information on Resin Professional,
                         including caching, clustering, JNI acceleration, and OpenSSL integration.
                       
(0006927)
nam   
11-20-19 16:39   
svn commit 10762 fixes this for good.