[ 
https://issues.apache.org/jira/browse/AXIS2-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664529#action_12664529
 ] 

Hiranya Jayathilaka commented on AXIS2-4212:
--------------------------------------------

The above exception is thrown when removeShutdownHook method is called on a 
runtime which is already in the process of shutting down. As a simple fix the 
call to the removeShutdownHook method can be surrounded in a try-catch block. 
The exception can be either ignored or logged as a warning. This does not alter 
the usual functionality.

I'll submit a patch soon.

> ListenerManager Shutdown Hook Attempts to Unregister Itself
> -----------------------------------------------------------
>
>                 Key: AXIS2-4212
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4212
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5, nightly
>         Environment: Any
>            Reporter: Hiranya Jayathilaka
>             Fix For: 1.5, nightly
>
>
> The ListenerManagerShutdownThread calls listenerManager.stop( ) and the stop( 
> ) method in turns attempts to unregister the shutdown hook causing an 
> IllegalStateException to be thrown.
> Exception in thread "Thread-2" java.lang.IllegalStateException: Shutdown in 
> progress
>       at java.lang.Shutdown.remove(Shutdown.java:104)
>       at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
>       at 
> org.apache.axis2.engine.ListenerManager.stop(ListenerManager.java:155)
>       at 
> org.apache.axis2.engine.ListenerManager$ListenerManagerShutdownThread.run(ListenerManager.java:258)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to