You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2011/01/14 15:57:50 UTC

svn commit: r1059032 - /tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java

Author: slaws
Date: Fri Jan 14 14:57:50 2011
New Revision: 1059032

URL: http://svn.apache.org/viewvc?rev=1059032&view=rev
Log:
TUSCANY-3783 - throw system exceptions rather than pushing them into the response path. 

Modified:
    tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java

Modified: tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java?rev=1059032&r1=1059031&r2=1059032&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java Fri Jan 14 14:57:50 2011
@@ -178,10 +178,7 @@ public class RuntimeInvoker implements I
                 // temporary fix to swallow the dummy exception that's
                 // thrown back to get past the response chain processing. 
                 if (!(ex instanceof AsyncResponseException)){
-                  // send the exception in through the 
-                  // async response processing path
-                  msg.setFaultBody(ex);
-                  invokeAsyncResponse(msg);
+                  throw new ServiceRuntimeException(ex);
                 }
             }
         } finally {