logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland <...@ids.de>
Subject Re: make maven dependencies "optional"
Date Wed, 11 Sep 2013 16:41:08 GMT
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



--
View this message in context: http://apache-logging.6191.n7.nabble.com/make-maven-dependencies-optional-tp40459p40651.html
Sent from the Log4j - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message