java.lang.IllegalStateException: Cannot add new shutdown hook as this is not started. Current state: STOPPED 2016-09-14T20:41:24.116823+00:00 app[web.1]: at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.addShutdownCallback(DefaultShutdownCallbackRegistry.java:113) 2016-09-14T20:41:24.116825+00:00 app[web.1]: at org.apache.logging.log4j.core.impl.Log4jContextFactory.addShutdownCallback(Log4jContextFactory.java:273) 2016-09-14T20:41:24.116828+00:00 app[web.1]: at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:216) 2016-09-14T20:41:24.116829+00:00 app[web.1]: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:145) 2016-09-14T20:41:24.116830+00:00 app[web.1]: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41) 2016-09-14T20:41:24.116831+00:00 app[web.1]: at org.apache.logging.log4j.LogManager.getContext(LogManager.java:182) 2016-09-14T20:41:24.116831+00:00 app[web.1]: at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:103) 2016-09-14T20:41:24.116832+00:00 app[web.1]: at org.apache.logging.log4j.jcl.LogAdapter.getContext(LogAdapter.java:39) 2016-09-14T20:41:24.116833+00:00 app[web.1]: at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42) 2016-09-14T20:41:24.116834+00:00 app[web.1]: at org.apache.logging.log4j.jcl.LogFactoryImpl.getInstance(LogFactoryImpl.java:40)

GitHub | Reedyuk | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 205#247146936

    GitHub | 5 months ago | Reedyuk
    java.lang.IllegalStateException: Cannot add new shutdown hook as this is not started. Current state: STOPPED 2016-09-14T20:41:24.116823+00:00 app[web.1]: at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.addShutdownCallback(DefaultShutdownCallbackRegistry.java:113) 2016-09-14T20:41:24.116825+00:00 app[web.1]: at org.apache.logging.log4j.core.impl.Log4jContextFactory.addShutdownCallback(Log4jContextFactory.java:273) 2016-09-14T20:41:24.116828+00:00 app[web.1]: at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:216) 2016-09-14T20:41:24.116829+00:00 app[web.1]: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:145) 2016-09-14T20:41:24.116830+00:00 app[web.1]: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41) 2016-09-14T20:41:24.116831+00:00 app[web.1]: at org.apache.logging.log4j.LogManager.getContext(LogManager.java:182) 2016-09-14T20:41:24.116831+00:00 app[web.1]: at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:103) 2016-09-14T20:41:24.116832+00:00 app[web.1]: at org.apache.logging.log4j.jcl.LogAdapter.getContext(LogAdapter.java:39) 2016-09-14T20:41:24.116833+00:00 app[web.1]: at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42) 2016-09-14T20:41:24.116834+00:00 app[web.1]: at org.apache.logging.log4j.jcl.LogFactoryImpl.getInstance(LogFactoryImpl.java:40)
  2. 0

    TomEE Users - Any tutorial out there for configuring CXF and Spring with Tomcat

    nabble.com | 1 year ago
    java.lang.IllegalStateException: ApplicationEventMulticaster not > initialized - call 'refresh' before multicasting events via the context: > Root WebApplicationContext: startup date [Tue Apr 23 16:48:56 CDT 2013]; > root of context hierarchy at > > org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:347) > at > > org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334) at > > org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1049) > at > > org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010) at > > org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:558) > at > > org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143) at > > org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927) > at > > org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573)

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cannot add new shutdown hook as this is not started. Current state: STOPPED 2016-09-14T20:41:24.116823+00:00 app[web.1]: at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.addShutdownCallback(DefaultShutdownCallbackRegistry.java:113) 2016-09-14T20:41:24.116825+00:00 app[web.1]: at org.apache.logging.log4j.core.impl.Log4jContextFactory.addShutdownCallback(Log4jContextFactory.java:273) 2016-09-14T20:41:24.116828+00:00 app[web.1]: at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:216) 2016-09-14T20:41:24.116829+00:00 app[web.1]: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:145) 2016-09-14T20:41:24.116830+00:00 app[web.1]: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41) 2016-09-14T20:41:24.116831+00:00 app[web.1]: at org.apache.logging.log4j.LogManager.getContext(LogManager.java:182) 2016-09-14T20:41:24.116831+00:00 app[web.1]: at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:103) 2016-09-14T20:41:24.116832+00:00 app[web.1]: at org.apache.logging.log4j.jcl.LogAdapter.getContext(LogAdapter.java:39) 2016-09-14T20:41:24.116833+00:00 app[web.1]: at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42) 2016-09-14T20:41:24.116834+00:00 app[web.1]: at org.apache.logging.log4j.jcl.LogFactoryImpl.getInstance(LogFactoryImpl.java:40)

      at org.apache.catalina.core.StandardContext.stopInternal()
    2. Glassfish Core
      LifecycleBase.stop
      1. org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
      2. org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
      2 frames