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

Stack Overflow | fxviking | 3 months ago
  1. 0

    log4j2 shutdownHook="disable" not working

    Stack Overflow | 3 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 | 8 months 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 | 7 months 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

    Unable to register shutdown hook because JVM is shutting down

    GitHub | 10 months ago | lennartkoopmann
    java.lang.IllegalStateException: Cannot add new shutdown hook as this is not started. Current state: STOPPED
  6. 0

    Log4J: FATAL exception on shutdown hook, can't figure out why

    Stack Overflow | 1 year ago | user2223059
    java.lang.IllegalStateException: Cannot add new shutdown hook as this 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