Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty-9.1.4 : NPE in Log.java

Hi,
 
Sometimes, on some hardware,  we got exceptions at startup due to NPE in the class "Log.java":
 
Caused by: java.lang.NullPointerException
     at org.eclipse.jetty.util.log.Log.getLogger(Log.java:288)
     at org.eclipse.jetty.util.log.Log.getLogger(Log.java:271)
     at
org.eclipse.jetty.websocket.jsr356.server.BasicServerEndpointConfigurator.<clinit>(BasicServerEndpointConfigurator.java:34)
     ... 54 more
 
Caused by: java.lang.NullPointerException
         at org.eclipse.jetty.util.log.Log.getLogger(Log.java:288)
         at org.eclipse.jetty.util.log.Log.getLogger(Log.java:271)
         at
org.eclipse.jetty.security.authentication.LoginAuthenticator.<clinit>(LoginAuthenticator.java:38)
         ... 13 more
 
It seems that the method "Log.initialized()" is not fully thread safe because the default logger is set outside of the synchronized block.
 
Regards,
Yves
 
 
 

Back to the top