java.lang.IllegalStateException: Cannot add new shutdown h ook as this is not started. Current state: STOPPED

Stack Overflow | fxviking | 9 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

    log4j2 shutdownHook="disable" not working

    Stack Overflow | 9 months ago | fxviking
    java.lang.IllegalStateException: Cannot add new shutdown h ook as this is not started. Current state: STOPPED
  2. 0

    [jira] [Created] (HIVE-13322) LLAP: ZK registry throws at shutdown due to slf4j trying to initialize a log4j logger

    hive-dev | 1 year ago | Sergey Shelukhin (JIRA)
    java.lang.IllegalStateException: Cannot add new shutdown hook as this is not started. Current state: STOPPED
  3. 0

    Elasticsearch + Log4j2 + Spring shutdown problems

    Stack Overflow | 1 year ago | Dennis Ich
    java.lang.IllegalStateException: Cannot add new shutdown hook as this is not started. Current state: STOPPED
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    log4j2 - JVM input arguments lookup (jvmrunargs) does not work

    Stack Overflow | 5 months ago | Joseph Gagnon
    java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory@1decca33] unable to create manager for [${jvmrunargs:log_dir}/log.txt] with data [org.apache.logging.log4j.core.appender.FileManager$FactoryData@24cee99e]
  6. 0

    [LOG4J2-1222] Initializing Logger during JVM shutdown fails with FATAL error - ASF JIRA

    apache.org | 3 months ago
    java.lang.IllegalStateException: Cannot add shutdown hook as is not started. Current state: STOPPED
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Cannot add new shutdown h ook as this is not started. Current state: STOPPED

    at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.addShutdownCallback()
  2. Apache Log4j Core
    Log4jContextFactory.getContext
    1. org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.addShutdownCallback(DefaultShutdownCallbackRegistry.java:113)
    2. org.apache.logging.log4j.core.impl.Log4jContextFactory.addShutdownCallback(Log4jContextFactory.java:271)
    3. org.apache.logging.log4j.core.LoggerContext.setUpShutdownHook(LoggerContext.java:256)
    4. org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:216)
    5. org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:146)
    6. org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41)
    6 frames
  3. Apache Log4j API
    AbstractLoggerAdapter.getContext
    1. org.apache.logging.log4j.LogManager.getContext(LogManager.java:185)
    2. org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:103)
    2 frames
  4. Apache Log4j SLF4J Binding
    Log4jLoggerFactory.getContext
    1. org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
    1 frame
  5. Apache Log4j API
    AbstractLoggerAdapter.getLogger
    1. org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42)
    1 frame
  6. Apache Log4j SLF4J Binding
    Log4jLoggerFactory.getLogger
    1. org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
    1 frame
  7. SLF4J API Module
    LoggerFactory.getLogger
    1. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
    1 frame
  8. com.worldline.frm
    CustomQueueRoutePolicy.onStop
    1. com.worldline.frm.dataloader.policy.CustomQueueRoutePolicy.onStop(CustomQueueRoutePolicy.java:90)
    1 frame
  9. Camel :: Core
    RouteService.doStop
    1. org.apache.camel.impl.RouteService.doStop(RouteService.java:249)
    1 frame