[
https://issues.apache.org/jira/browse/TUSCANY-3660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ant elder updated TUSCANY-3660:
-------------------------------
Fix Version/s: Java-SCA-1.x
> IllegalStateException on shutdown in TuscanyListenerManager
> -----------------------------------------------------------
>
> Key: TUSCANY-3660
> URL: https://issues.apache.org/jira/browse/TUSCANY-3660
> Project: Tuscany
> Issue Type: Bug
> Components: SCA Java Runtime
> Affects Versions: Java-SCA-1.6
> Environment: JDK 1.6.0_18, Windows XP, Eclipse 3.6 Helios
> Reporter: Sebastian Millies
> Priority: Minor
> Fix For: Java-SCA-1.x
>
>
> The TuscanyListenerManager.stop() method will generate an
> IllegalStateException, because
> ApplicationShutdownHooks.runHooks() will already have set the shutdown hooks
> collection
> to null when removeShutdownHook() is called in the Tuscany shutdown thread.
> public synchronized void stop() throws AxisFault {
> super.stop();
> Runtime.getRuntime().removeShutdownHook(shutdownThread); // <-- here
> }
> Test case:
> SCADomain scaDomain = SCADomain.newInstance();
> System.out.println( "Domain " + scaDomain.getURI() + " started - Press
> enter to remove." );
> System.in.read();
> SCADomain.removeInstance( scaDomain );
> System.exit(0);
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira