summaryrefslogtreecommitdiffstats
path: root/branches
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-09-29 00:42:28 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-09-29 00:42:28 +0000
commit97a837b8d76a6790e44b8b102fd1dc05748c8aae (patch)
tree175972c74ad4c6c8cd48464910f61f53cd47732e /branches
parentcf0ce1992f614c8413e4dd9b2ecf6143467442dd (diff)
Pass the wrapper exception into FaultException
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@699929 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches')
-rw-r--r--branches/sca-equinox/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvoker.java7
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) {
}