From 97a837b8d76a6790e44b8b102fd1dc05748c8aae Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 29 Sep 2008 00:42:28 +0000 Subject: Pass the wrapper exception into FaultException git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@699929 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvoker.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'branches') diff --git a/branches/sca-equinox/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvoker.java b/branches/sca-equinox/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvoker.java index 483c240814..26b1c9e5d6 100644 --- a/branches/sca-equinox/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvoker.java +++ b/branches/sca-equinox/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvoker.java @@ -26,7 +26,6 @@ import javax.xml.stream.XMLStreamException; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.impl.llom.util.AXIOMUtil; -import org.apache.axis2.AxisFault; import org.apache.tuscany.sca.binding.corba.provider.exceptions.RequestConfigurationException; import org.apache.tuscany.sca.binding.corba.provider.reference.DynaCorbaRequest; import org.apache.tuscany.sca.binding.corba.provider.reference.DynaCorbaResponse; @@ -68,10 +67,8 @@ public class CorbaSCAInvoker implements Invoker { } catch (WrappedSCAException e) { try { OMElement exceptionOM = AXIOMUtil.stringToOM(e.getFault()); - AxisFault axisFault = new AxisFault(""); - axisFault.setDetail(exceptionOM); - FaultException f = new FaultException(axisFault.getMessage(), axisFault.getDetail(), axisFault); - f.setFaultName(axisFault.getDetail().getQName()); + FaultException f = new FaultException(e.getMessage(), exceptionOM, e); + f.setFaultName(exceptionOM.getQName()); msg.setFaultBody(f); } catch (XMLStreamException e1) { } -- cgit v1.2.3