summaryrefslogtreecommitdiffstats
path: root/branches
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-01-07 18:27:48 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-01-07 18:27:48 +0000
commitcce88ac3a45204d75b3d9f378f7266547ba13f2c (patch)
treea812c3c968d2b8b9f63ef8b5ea1667002077621d /branches
parentf99c9b7dd82c668ee736806ad9edbd56a101aa74 (diff)
Commit temporary work arounds for TUSCANY-2593
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@732416 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches')
-rw-r--r--branches/sca-java-1.x/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSFaultExceptionMapper.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/branches/sca-java-1.x/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSFaultExceptionMapper.java b/branches/sca-java-1.x/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSFaultExceptionMapper.java
index 75a0aa8131..5b7485e3c2 100644
--- a/branches/sca-java-1.x/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSFaultExceptionMapper.java
+++ b/branches/sca-java-1.x/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSFaultExceptionMapper.java
@@ -126,8 +126,13 @@ public class JAXWSFaultExceptionMapper implements FaultExceptionMapper {
ex = ctor.newInstance(message, faultInfo, cause);
} catch (NoSuchMethodException e1) {
try {
- ctor = exceptionClass.getConstructor(String.class, faultInfo.getClass());
- ex = ctor.newInstance(message, faultInfo);
+ if (faultInfo != null) {
+ ctor = exceptionClass.getConstructor(String.class, faultInfo.getClass());
+ ex = ctor.newInstance(message, faultInfo);
+ } else {
+ ctor = exceptionClass.getConstructor(String.class);
+ ex = ctor.newInstance(message);
+ }
} catch (NoSuchMethodException e2) {
try {
ctor = exceptionClass.getConstructor(String.class, Throwable.class);