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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by fxviking
, 1 year ago
Cannot add new shutdown h ook as this is not started. Current state: STOPPED
via apache.org by Unknown author, 9 months ago
Cannot add new shutdown hook as this is not started. Current state: STOPPED
via hive-dev by Sergey Shelukhin (JIRA), 1 year ago
via Stack Overflow by Dennis Ich
, 1 year ago
Cannot add new shutdown hook as this is not started. Current state: STOPPED
via GitHub by peterdnight
, 2 years ago
Cannot add new shutdown hook as this is not started. Current state: STOPPED
via GitHub by lennartkoopmann
, 1 year ago
Cannot add new shutdown hook as this is not started. Current state: STOPPED
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(DefaultShutdownCallbackRegistry.java:113)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.addShutdownCallback(Log4jContextFactory.java:271)
at org.apache.logging.log4j.core.LoggerContext.setUpShutdownHook(LoggerContext.java:256)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:216)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:146)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:185)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
at com.worldline.frm.dataloader.policy.CustomQueueRoutePolicy.onStop(CustomQueueRoutePolicy.java:90)

Users with the same issue

8 times, 1 year ago
66 times, 3 weeks ago
73 times, 2 months ago
16 times, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.