ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcunn...@apache.org
Subject svn commit: r827872 - /webservices/scout/trunk/src/main/java/org/apache/ws/scout/transport/LocalTransport.java
Date Wed, 21 Oct 2009 02:50:09 GMT
Author: tcunning
Date: Wed Oct 21 02:50:08 2009
New Revision: 827872

URL: http://svn.apache.org/viewvc?rev=827872&view=rev
Log:
SCOUT-96
Handle InvocationTargetException.

Modified:
    webservices/scout/trunk/src/main/java/org/apache/ws/scout/transport/LocalTransport.java

Modified: webservices/scout/trunk/src/main/java/org/apache/ws/scout/transport/LocalTransport.java
URL: http://svn.apache.org/viewvc/webservices/scout/trunk/src/main/java/org/apache/ws/scout/transport/LocalTransport.java?rev=827872&r1=827871&r2=827872&view=diff
==============================================================================
--- webservices/scout/trunk/src/main/java/org/apache/ws/scout/transport/LocalTransport.java
(original)
+++ webservices/scout/trunk/src/main/java/org/apache/ws/scout/transport/LocalTransport.java
Wed Oct 21 02:50:08 2009
@@ -15,6 +15,7 @@
  */
 package org.apache.ws.scout.transport;
 
+import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.net.URI;
 
@@ -31,7 +32,7 @@
 /**
  * Local Message transport class.
  * 
- * <p>This transpor calls jUDDI directly.</p>
+ * <p>This transport calls jUDDI directly.</p>
  * 
  * @author Kurt Stam (kurt.stam@redhat.com)
  */
@@ -61,8 +62,9 @@
     	Method method = c.getMethod(methodName, Element.class);
     	Node node = (Node) method.invoke(requestHandler, request);
     	response = (Element) node.getFirstChild();
-    }
-    catch (Exception ex) {
+    } catch (InvocationTargetException ite) {
+      throw new TransportException(new Exception(ite.getTargetException().getMessage()));
+    } catch (Exception ex) {
       throw new TransportException(ex);
     }
     if (log.isDebugEnabled()) {



---------------------------------------------------------------------
To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org


Mime
View raw message