From bf5312c60f4ffc0a3b83cd9c63831e96eccd147f Mon Sep 17 00:00:00 2001 From: mcombellack Date: Thu, 3 Jul 2008 14:50:33 +0000 Subject: 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 --- .../java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/sca') 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 implements CallableReference, Externali } } catch (Exception e) { // e.printStackTrace(); - throw new IOException(e.getMessage()); + throw new IOException(e.toString()); } } -- cgit v1.2.3