[ 
https://issues.apache.org/jira/browse/LOG4J2-893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Lachinger updated LOG4J2-893:
------------------------------------
    Attachment: breaklog4jul.zip

Attached is a basic project that can reproduce the error. just 'sbt run' it.

I think the issue is that in Logger, line 301, level is null, so the 
level.intLevel() in the return comparison fails.

> NullPointerException on filter when mapping JUL to Log4j2
> ---------------------------------------------------------
>
>                 Key: LOG4J2-893
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-893
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Mac OSX, Scala 2.10.4, Java(TM) SE Runtime Environment 
> (build 1.7.0_45-b18)
>            Reporter: Markus Lachinger
>         Attachments: breaklog4jul.zip
>
>
> I have a project in scala loading log4j2-core, api, jul, slf4j and jcl and 
> try to map the JUL to Log4J by using the following java parameter:
> -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
> I also use Twitter Server which uses JUL to log it's messages.
> When I start up the server with the JUL mapping for Log4J I get a 
> NullPointerException.
> The exception and code is here:
> https://gist.github.com/mmlac/2e2b38dc3fbd0e5b0da4



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to