You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2006/10/05 23:58:00 UTC
svn commit: r453402 -
/incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java
Author: mriou
Date: Thu Oct 5 14:58:00 2006
New Revision: 453402
URL: http://svn.apache.org/viewvc?view=rev&rev=453402
Log:
Trying to extract more meaningful messages.
Modified:
incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java
Modified: incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java?view=diff&rev=453402&r1=453401&r2=453402
==============================================================================
--- incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java (original)
+++ incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentWebService.java Thu Oct 5 14:58:00 2006
@@ -190,7 +190,10 @@
sendResponse(factory, messageContext, "getProcessPackageResponse", response);
} else unknown = true;
} catch (Throwable t) {
- throw new AxisFault("Invocation of operation " + operation + " failed!", t);
+ // Trying to extract a meaningful message
+ Throwable source = t;
+ while (source.getCause() != null && source.getCause() != source) source = source.getCause();
+ throw new AxisFault("Invocation of operation " + operation + " failed: " + source.toString(), t);
}
if (unknown) throw new AxisFault("Unknown operation: '"
+ messageContext.getAxisOperation().getName() + "'");