[ 
https://issues.apache.org/jira/browse/TUSCANY-3277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842632#action_12842632
 ] 

Simon Nash commented on TUSCANY-3277:
-------------------------------------

This problem occurs because the code in DefaultRMIHost in the host-rmi module 
doesn't do RMI unexports for the exported service objects and registry object 
when unregisterService() is called.  Because these objects are still exported 
from an RMI perspective, the RMI runtime prevents the JVM from exiting.

I have updated the launcher for currency-converter-rmi under r920280 to include 
a System.exit() call so that there's no hang on exit when running this launcher 
on Tuscany SCA 1.6.  This is a workaround for the problem, not a fix.

> Node with RMI services doesn't shut down cleanly
> ------------------------------------------------
>
>                 Key: TUSCANY-3277
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3277
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Travel Sample
>    Affects Versions: Java-SCA-1.5.1
>         Environment: Windows Vista
>            Reporter: Simon Nash
>             Fix For: Java-SCA-Next
>
>
> In the travel sample, the launchers/currency-converter-rmi module doesn't 
> shut down the node cleanly.  The other launchers/currency-converter-xxx 
> modules all shut down cleanly.  To reproduce the problem, do the fo0llowing:
> 1. Set the TUSCANY environment variable to point to an installation of the 
> Tuscany binary distribution.
> 2. Change directory to launchers/currency-converter-rmi.
> 3. Enter the "ant run" command.  The quick test runs OK.
> 4. Press enter.  The node hangs during shutdown.
> The output produced is as follows:
> F:\book\samp19\travelsample\launchers\currency-converter-rmi>ant run
> Buildfile: build.xml
> run:
>      [java] 16-Sep-2009 08:36:07 org.apache.tuscany.sca.node.impl.NodeImpl 
> <init>
>      [java] INFO: Creating node: currency-converter-rmi.composite
>      [java] 16-Sep-2009 08:36:08 org.apache.tuscany.sca.node.impl.NodeImpl 
> configureNode
>      [java] INFO: Loading contribution: 
> file:/F:/book/samp19/travelsample/launchers/currency-converter-rmi/../../contributions/currency/target/classes/
>      [java] 16-Sep-2009 08:36:08 org.apache.tuscany.sca.node.impl.NodeImpl 
> configureNode
>      [java] INFO: Loading contribution: 
> file:/F:/book/samp19/travelsample/launchers/currency-converter-rmi/../../contributions/currency-rmi/target/classes/
>      [java] 16-Sep-2009 08:36:08 org.apache.tuscany.sca.node.impl.NodeImpl 
> start
>      [java] INFO: Starting node: currency-converter-rmi.composite
>      [java] Quick currency converter test
>      [java] USD -> GBP = 0.5
>      [java] 100 USD = 50.0GBP
>      [java] Node started - Press enter to shutdown.
>      [java] 16-Sep-2009 08:36:10 org.apache.tuscany.sca.node.impl.NodeImpl 
> stop
>      [java] INFO: Stopping node: currency-converter-rmi.composite

-- 
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