[jbosstools-commits] JBoss Tools SVN: r24110 - trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Aug 12 12:21:06 EDT 2010
Author: bfitzpat
Date: 2010-08-12 12:21:05 -0400 (Thu, 12 Aug 2010)
New Revision: 24110
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView2.java
Log:
OPEN - issue JBIDE-6793: [tester] SOAPExceptionImpl thrown when user types in invalid SOAP message
https://jira.jboss.org/browse/JBIDE-6793
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView2.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView2.java 2010-08-12 16:19:18 UTC (rev 24109)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView2.java 2010-08-12 16:21:05 UTC (rev 24110)
@@ -1324,10 +1324,30 @@
monitor.worked(10);
return status;
} catch (Exception e) {
+
+ // try and drill down to find the root cause
+ Throwable innerE = e.getCause();
+
+ // if we can't find it, just go with th exception
+ if (innerE == null) {
+ WSTestStatus status = new WSTestStatus(IStatus.OK,
+ JBossWSUIPlugin.PLUGIN_ID,
+ JBossWSUIMessages.JAXRSWSTestView_Exception_Status + e.getLocalizedMessage());
+ status.setResultsText(e.toString());
+ JBossWSUIPlugin.log(e);
+ return status;
+ }
+
+ // continue to drill down until we find the innermost one
+ while (innerE.getCause() != null) {
+ innerE = innerE.getCause();
+ }
+
+ // Now report that
WSTestStatus status = new WSTestStatus(IStatus.OK,
JBossWSUIPlugin.PLUGIN_ID,
- JBossWSUIMessages.JAXRSWSTestView_Exception_Status + e.getLocalizedMessage());
- status.setResultsText(e.toString());
+ JBossWSUIMessages.JAXRSWSTestView_Exception_Status + innerE.getLocalizedMessage());
+ status.setResultsText(innerE.toString());
JBossWSUIPlugin.log(e);
return status;
}
More information about the jbosstools-commits
mailing list