notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r2007 - trunk/main/metro/station/src/main/dpml/station/console
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r2007 - trunk/main/metro/station/src/main/dpml/station/console
- Date: Wed, 8 Aug 2007 10:14:57 +0200
Author: mcconnell
Date: 2007-08-08 10:14:57 +0200 (Wed, 08 Aug 2007)
New Revision: 2007
Modified:
trunk/main/metro/station/src/main/dpml/station/console/Main.java
Log:
Trap and ignore java.rmi.NoSuchObjectException during the station termination
phase.
Modified: trunk/main/metro/station/src/main/dpml/station/console/Main.java
===================================================================
--- trunk/main/metro/station/src/main/dpml/station/console/Main.java
2007-05-06 17:25:21 UTC (rev 2006)
+++ trunk/main/metro/station/src/main/dpml/station/console/Main.java
2007-08-08 08:14:57 UTC (rev 2007)
@@ -44,6 +44,7 @@
import java.net.MalformedURLException;
import java.rmi.RemoteException;
import java.rmi.NotBoundException;
+import java.rmi.NoSuchObjectException;
import java.rmi.ConnectException;
import java.rmi.server.UnicastRemoteObject;
import java.rmi.registry.Registry;
@@ -676,6 +677,10 @@
{
UnicastRemoteObject.unexportObject( m_station, false );
}
+ catch( NoSuchObjectException e )
+ {
+ // ignore
+ }
catch( Throwable e )
{
if( getLogger().isWarnEnabled() )
@@ -689,6 +694,10 @@
{
UnicastRemoteObject.unexportObject( m_plan, false );
}
+ catch( NoSuchObjectException e )
+ {
+ // ignore
+ }
catch( Throwable e )
{
if( getLogger().isWarnEnabled() )
- r2007 - trunk/main/metro/station/src/main/dpml/station/console, mcconnell at BerliOS, 08/08/2007
Archive powered by MHonArc 2.6.24.