Author: mcombellack
Date: Thu Jul  3 07:50:33 2008
New Revision: 673696

URL: http://svn.apache.org/viewvc?rev=673696&view=rev
Log:
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

Modified:
    
tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java

Modified: 
tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java?rev=673696&r1=673695&r2=673696&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java
 (original)
+++ 
tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java
 Thu Jul  3 07:50:33 2008
@@ -368,7 +368,7 @@
             }
         } catch (Exception e) {
             // e.printStackTrace();
-            throw new IOException(e.getMessage());
+            throw new IOException(e.toString());
         }
     }
 


Reply via email to