summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authormcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2008-07-03 14:50:33 +0000
committermcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2008-07-03 14:50:33 +0000
commitbf5312c60f4ffc0a3b83cd9c63831e96eccd147f (patch)
treef787027847c9271983266cb0c37c79cdd6871599 /java
parenta3d3932664c54ea7fe90c9fd34b465b2227c8604 (diff)
We should call e.toString() rather than e.getMessage() since some exceptions, such as NullPointerException, do not have a Messgae so return null. This then causes a NullPointerException to be thrown since you cannot pass null into the constructor of IOException. This then hides the original cause of the Exception
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@673696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java
index c558f8be69..621045e7d0 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java
@@ -368,7 +368,7 @@ public class CallableReferenceImpl<B> implements CallableReference<B>, Externali
}
} catch (Exception e) {
// e.printStackTrace();
- throw new IOException(e.getMessage());
+ throw new IOException(e.toString());
}
}