You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Guido Forthofer (JIRA)" <ji...@apache.org> on 2019/04/03 06:23:00 UTC
[jira] [Created] (LOG4J2-2581) addShutdownHook throw
IllegalStateException
Guido Forthofer created LOG4J2-2581:
---------------------------------------
Summary: 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
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)