NOJIRA another attempt to fix the ci targets
diff --git a/uddi-tck/src/test/java/org/apache/juddi/v3/tck/JUDDI_091_RMISubscriptionListenerIntegrationTest.java b/uddi-tck/src/test/java/org/apache/juddi/v3/tck/JUDDI_091_RMISubscriptionListenerIntegrationTest.java
index 36d108c..8b80e73 100644
--- a/uddi-tck/src/test/java/org/apache/juddi/v3/tck/JUDDI_091_RMISubscriptionListenerIntegrationTest.java
+++ b/uddi-tck/src/test/java/org/apache/juddi/v3/tck/JUDDI_091_RMISubscriptionListenerIntegrationTest.java
@@ -60,7 +60,8 @@
@AfterClass
public static void stopManager() throws ConfigurationException {
if (!TckPublisher.isEnabled()) return;
- manager.stop();
+ if (manager!=null)
+ manager.stop();
//shutting down the TCK SubscriptionListener
//re
}
@@ -75,7 +76,9 @@
randomPort = 19800 + new Random().nextInt(99);
System.out.println("RMI Random port=" + randomPort);
//bring up the RMISubscriptionListener
- URI rmiEndPoint = new URI("rmi://localhost:" + randomPort + "/tck/rmisubscriptionlistener");
+ //saw this once before
+ // internal error: ObjID already in use
+ URI rmiEndPoint = new URI("rmi://localhost:" + randomPort + "/tck/rmisubscriptionlistener" + new Random().nextInt() );
registry = LocateRegistry.createRegistry(rmiEndPoint.getPort());
String path = rmiEndPoint.getPath();
hostname = InetAddress.getLocalHost().getHostName();
@@ -91,7 +94,7 @@
} catch (Exception e2) {
e2.printStackTrace();
- Assert.fail();
+ Assert.fail(e2.getMessage());
}
manager = new UDDIClient();