[
https://issues.apache.org/jira/browse/LOG4J2-2581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16809518#comment-16809518
]
Guido Forthofer commented on LOG4J2-2581:
-----------------------------------------
log4j2.xml is the original, log4j2.-debug.xml I have exchanged
{{status="debug". Result is the same and output is not more.}}
> addShutdownHook throw IllegalStateException
> -------------------------------------------
>
> Key: LOG4J2-2581
> URL: https://issues.apache.org/jira/browse/LOG4J2-2581
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.11.2
> Reporter: Guido Forthofer
> Priority: Minor
> Attachments: log4j2-debug.xml, log4j2.xml
>
>
> When exiting I always get the following exception:
> {code:java}
> // Code-Platzhalter
> ERROR StatusLogger Cannot start ShutdownCallbackRegistry, already shutting
> down.
> ERROR StatusLogger Unable to create class
> org.apache.logging.log4j.core.impl.Log4jContextFactory specified in provider
> URL null
> java.lang.IllegalStateException: Shutdown in progress
> at java.lang.ApplicationShutdownHooks.add(Unknown Source)
> at java.lang.Runtime.addShutdownHook(Unknown Source)
> at
> org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.addShutdownHook(DefaultShutdownCallbackRegistry.java:156)
> at
> org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.start(DefaultShutdownCallbackRegistry.java:142)
> at
> org.apache.logging.log4j.core.impl.Log4jContextFactory.initializeShutdownCallbackRegistry(Log4jContextFactory.java:126)
> at
> org.apache.logging.log4j.core.impl.Log4jContextFactory.<init>(Log4jContextFactory.java:93)
> at
> org.apache.logging.log4j.core.impl.Log4jContextFactory.<init>(Log4jContextFactory.java:59)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:94)
> at
> org.apache.logging.log4j.core.osgi.Activator.stop(Activator.java:95)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)