You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ve...@apache.org on 2008/11/02 23:39:09 UTC

svn commit: r709971 - /webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/endpoint/AxisTestEndpoint.java

Author: veithen
Date: Sun Nov  2 14:39:09 2008
New Revision: 709971

URL: http://svn.apache.org/viewvc?rev=709971&view=rev
Log:
Ignore URISyntaxExceptions in AxisTestEndpoint. This avoids a test failure in the VFS transport if the working directory contains spaces.

Modified:
    webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/endpoint/AxisTestEndpoint.java

Modified: webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/endpoint/AxisTestEndpoint.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/endpoint/AxisTestEndpoint.java?rev=709971&r1=709970&r2=709971&view=diff
==============================================================================
--- webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/endpoint/AxisTestEndpoint.java (original)
+++ webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/endpoint/AxisTestEndpoint.java Sun Nov  2 14:39:09 2008
@@ -22,6 +22,7 @@
 import java.io.OutputStream;
 import java.io.PrintWriter;
 import java.net.URI;
+import java.net.URISyntaxException;
 import java.util.Iterator;
 import java.util.List;
 import java.util.UUID;
@@ -61,7 +62,12 @@
             transportErrorSource = null;
         }
         
-        String path = new URI(channel.getEndpointReference().getAddress()).getPath();
+        String path;
+        try {
+            path = new URI(channel.getEndpointReference().getAddress()).getPath();
+        } catch (URISyntaxException ex) {
+            path = null;
+        }
         String serviceName;
         if (path != null && path.startsWith(Channel.CONTEXT_PATH + "/")) {
             serviceName = path.substring(Channel.CONTEXT_PATH.length()+1);