You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2011/03/04 23:02:16 UTC
svn commit: r1078166 -
/uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/ActiveMQSupport.java
Author: cwiklik
Date: Fri Mar 4 22:02:15 2011
New Revision: 1078166
URL: http://svn.apache.org/viewvc?rev=1078166&view=rev
Log:
UIMA-2069 catch BindException in addition to IOException. Both can be thrown
Modified:
uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/ActiveMQSupport.java
Modified: uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/ActiveMQSupport.java
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/ActiveMQSupport.java?rev=1078166&r1=1078165&r2=1078166&view=diff
==============================================================================
--- uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/ActiveMQSupport.java (original)
+++ uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/ActiveMQSupport.java Fri Mar 4 22:02:15 2011
@@ -167,6 +167,8 @@ public class ActiveMQSupport extends Tes
String uri = type+"://localhost:" + basePort;
transportConnector = aBroker.addConnector(uri);
found = true;
+ } catch ( BindException e) {
+ basePort++;
} catch ( IOException e) {
if ( e.getCause() != null && e.getCause() instanceof BindException ) {
basePort++;