[jetty-user] NPE when starting jetty-8 if a system property is not a String
"MILLON, YVES (YVES)" <[email protected]> Tue, 3 Jan 2012 11:20:11 +0100
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <F184F6801A984A469C6F52D36065CB9B21E86E5EB5@FRMRSSXCHMBSA2.dc-m.alcatel-lucent.com> |
Hi,
I am currently trying to migrate from jetty-6 (jetty-6.1.26) to jetty-8 (jett-8.1.0.RC0) and jetty is embedded in a OSGi framework and started programmatically.
I got a NPE in the static part of the Log class if some system properties set by some other parts of our platform are not strings.
The NPE occurs at "org.eclipse.jetty.util.log.Log.java" line 105, when setting a property with a null value:
- __props.setProperty(key,System.getProperty(key))
As a work-around, I remove these properties before starting jetty, and then set them again, but it is not secured in a multi-threaded environment.
Could you fix the issue?
Thanks for advance,
-Yves
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email