You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by du...@apache.org on 2002/05/07 18:02:09 UTC
cvs commit: xml-soap/java/src/org/apache/soap/util/net HTTPUtils.java
duftler 02/05/07 09:02:09
Modified: java/src/org/apache/soap/util/net HTTPUtils.java
Log:
The exception being thrown did not always contain a helpful message. This
issue was raised by a_jefferies@yahoo.co.uk (Andy Jefferies). For more
info, please see:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5537
Revision Changes Path
1.24 +7 -2 xml-soap/java/src/org/apache/soap/util/net/HTTPUtils.java
Index: HTTPUtils.java
===================================================================
RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/net/HTTPUtils.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- HTTPUtils.java 21 Aug 2001 19:22:35 -0000 1.23
+++ HTTPUtils.java 7 May 2002 16:02:09 -0000 1.24
@@ -203,8 +203,13 @@
inStream = s.getInputStream ();
}
catch (Exception e) {
- throw new IllegalArgumentException("Error opening socket: " +
- e.getMessage ());
+ Throwable t = e;
+
+ if (t instanceof InvocationTargetException) {
+ t = ((InvocationTargetException)t).getTargetException();
+ }
+
+ throw new IllegalArgumentException("Error opening socket: " + t);
}
/* Compute the Request URI */