Re: [jetty-user] NPE when starting jetty-8 if a system property is not a String

Jan Bartel <[email protected]> Mon, 9 Jan 2012 12:15:38 +1100
Newsgroups gmane.comp.java.jetty.support
Message-ID <CALg=Vpi8zFbiHjX+ascDmPMUh5FHqr-e0xxNNaeyFWCmRFn0bA@mail.gmail.com>
Raised: https://bugs.eclipse.org/bugs/show_bug.cgi?id=368114

Jan

On 3 January 2012 21:20, MILLON, YVES (YVES)
<[email protected]> wrote:
> 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
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email