You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by amshf <si...@yahoo.com> on 2014/05/06 06:32:55 UTC
WARN: Unable to register shutdown hook due to JVM state
I'm using Camel to route Activemq messages. Camel is boot with
org.apache.camel.Main class like this:
*problem:* when I send Ctrl+C to shutdown the camel, it logs this warning:
Why? and how to fix this?
--
View this message in context: http://camel.465427.n5.nabble.com/WARN-Unable-to-register-shutdown-hook-due-to-JVM-state-tp5750889.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: WARN: Unable to register shutdown hook due to JVM state
Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi
I guess your problem has nothing to do with the shutdown hook of Camel
itself but with another hook log4j tries to setup as well:
https://github.com/apache/logging-log4j2/blob/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java#L208
Maybe verify that the Camel / slf4j / log4j versions you make use of are
properly matching.
Babak
amshf wrote
> Nothing?!
>
> somebody in stackoverflow says it's a bug in Camel. Is it true?!
>
> here's the link:
> My Question in stackoverflow
> <http://stackoverflow.com/questions/23476715/apache-camel-unable-to-register-shutdown-hook-due-to-jvm-state>
--
View this message in context: http://camel.465427.n5.nabble.com/WARN-Unable-to-register-shutdown-hook-due-to-JVM-state-tp5750889p5751023.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: WARN: Unable to register shutdown hook due to JVM state
Posted by amshf <si...@yahoo.com>.
Nothing?!
somebody in stackoverflow says it's a bug in Camel. Is it true?!
here's the link: My Question in stackoverflow
<http://stackoverflow.com/questions/23476715/apache-camel-unable-to-register-shutdown-hook-due-to-jvm-state>
--
View this message in context: http://camel.465427.n5.nabble.com/WARN-Unable-to-register-shutdown-hook-due-to-JVM-state-tp5750889p5751008.html
Sent from the Camel - Users mailing list archive at Nabble.com.