diff options
Diffstat (limited to 'branches/sca-equinox/modules')
-rw-r--r-- | branches/sca-equinox/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvoker.java | 7 |
1 files changed, 2 insertions, 5 deletions
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) { } |