Skip to main content

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

Are you using jetty-logging.properties as well?

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts


On Mon, Apr 28, 2014 at 2:37 AM, MILLON, YVES (YVES) <yves.millon@xxxxxxxxxxxxxxxxxx> wrote:
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
 
 
 

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top