[
https://issues.apache.org/jira/browse/LOG4J2-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13764482#comment-13764482
]
Roland Weiglhofer commented on LOG4J2-389:
------------------------------------------
After I made log4j-core-osgi-reduced lightweight, I get following exception:
Exception in thread "Log4j2-Test" java.lang.NullPointerException
at
org.apache.logging.log4j.core.pattern.PatternParser.<init>(PatternParser.java:120)
at
org.apache.logging.log4j.core.pattern.PatternParser.<init>(PatternParser.java:102)
at
org.apache.logging.log4j.core.layout.PatternLayout.createPatternParser(PatternLayout.java:183)
at
org.apache.logging.log4j.core.layout.PatternLayout.<init>(PatternLayout.java:115)
at
org.apache.logging.log4j.core.layout.PatternLayout.createLayout(PatternLayout.java:219)
at
org.apache.logging.log4j.core.config.DefaultConfiguration.<init>(DefaultConfiguration.java:51)
at
org.apache.logging.log4j.core.LoggerContext.<init>(LoggerContext.java:63)
at
org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(ClassLoaderContextSelector.java:217)
at
org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:126)
at
org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:81)
at
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:83)
at
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:34)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:200)
at
org.apache.log4j.LogManager$PrivateManager.getContext(LogManager.java:215)
at org.apache.log4j.LogManager.getLogger(LogManager.java:77)
at log4j2test.Log4j2testActivator.run(Log4j2testActivator.java:84)
at java.lang.Thread.run(Thread.java:662)
manager.collectPlugins(); fails after calling it a second time.
What I have missed?
Thanks & Regards
Roland
> lightweight version without database and http stuff
> ---------------------------------------------------
>
> Key: LOG4J2-389
> URL: https://issues.apache.org/jira/browse/LOG4J2-389
> Project: Log4j 2
> Issue Type: Improvement
> Components: API, Core
> Affects Versions: 2.0-beta9
> Environment: Maven
> Reporter: Roland Weiglhofer
> Labels: Maven, dependencies, optional
>
> Required is a lightweight version without database and http stuff, so I do
> not need to install libraries, which I do not need. All the (transitiv)
> log4j2-dependencies together are much bigger than my own application. This is
> a realy big drawback of log4j2! log4j-core-osgi-reduced depends on log4j-core
> and thus, on all transitiv dependencies, although they are declared as
> "optional".
> Thanks & Regards
> Roland
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]