Checked exceptions are not copied across classloaders
-----------------------------------------------------
Key: TUSCANY-3489
URL: https://issues.apache.org/jira/browse/TUSCANY-3489
Project: Tuscany
Issue Type: Bug
Components: Java SCA Data Binding Runtime
Affects Versions: Java-SCA-2.0-M3
Reporter: Brent Daniel
The recent update to MediatorImpl to handle cross-classloader copies does not
seem to handle checked exceptions.
Not sure what the correct fix is here, but adding the following to
MediatorImpl.copyFault() resolves the issue:
Index: src/main/java/org/apache/tuscany/sca/databinding/impl/MediatorImpl.java
===================================================================
--- src/main/java/org/apache/tuscany/sca/databinding/impl/MediatorImpl.java
(revision 919517)
+++ src/main/java/org/apache/tuscany/sca/databinding/impl/MediatorImpl.java
(working copy)
@@ -587,6 +587,9 @@
targetFaultType.setPhysical(targetOperation.getFaultTypes().get(i).getPhysical());
faultInfo = copy(faultInfo, faultType, targetFaultType);
fault = faultExceptionMapper.wrapFaultInfo(exType,
ex.getMessage(), faultInfo, ex.getCause(), operation);
+ DataType targetType = targetOperation.getFaultTypes().get(i);
+
+ fault = copy(fault, exType,targetType);
return fault;
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.