[ 
https://issues.apache.org/jira/browse/LOG4J2-2581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16808839#comment-16808839
 ] 

Matt Sicker commented on LOG4J2-2581:
-------------------------------------

Can you post your config file as well as the debug output by setting 
{{status="debug"}} on the config?

> 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
>
> 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)

Reply via email to