You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2011/11/29 22:57:34 UTC

svn commit: r1208098 - in /cxf/trunk/rt: databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java

Author: dkulp
Date: Tue Nov 29 21:57:33 2011
New Revision: 1208098

URL: http://svn.apache.org/viewvc?rev=1208098&view=rev
Log:
[CXF-3934] Remove the fillInStackTrace calls that is causing stack
traces to be wiped out and become irrelevant.

Modified:
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java?rev=1208098&r1=1208097&r2=1208098&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java (original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java Tue Nov 29 21:57:33 2011
@@ -252,7 +252,7 @@ public final class JAXBEncoderDecoder {
                 writeObject(marshaller, source, mObj);
             }
         } catch (Fault ex) {
-            throw (Fault)ex.fillInStackTrace();
+            throw ex;
         } catch (Exception ex) {
             if (ex instanceof javax.xml.bind.MarshalException) {
                 javax.xml.bind.MarshalException marshalEx = (javax.xml.bind.MarshalException)ex;
@@ -815,7 +815,6 @@ public final class JAXBEncoderDecoder {
         } catch (PrivilegedActionException e) {
             Exception ex = e.getException();
             if (ex instanceof Fault) {
-                ex.fillInStackTrace();
                 throw (Fault)ex;
             }
             if (ex instanceof javax.xml.bind.UnmarshalException) {
@@ -1000,7 +999,6 @@ public final class JAXBEncoderDecoder {
             }
             return ret;
         } catch (Fault ex) {
-            ex.fillInStackTrace();
             throw ex;
         } catch (Exception ex) {
             if (ex instanceof javax.xml.bind.UnmarshalException) {

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java?rev=1208098&r1=1208097&r2=1208098&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java (original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java Tue Nov 29 21:57:33 2011
@@ -115,7 +115,7 @@ public class JaxWsClientProxy extends or
                 try {
                     return method.invoke(this, params);
                 } catch (InvocationTargetException e) {
-                    throw e.fillInStackTrace().getCause();
+                    throw e.getCause();
                 }
             }
 
@@ -134,11 +134,11 @@ public class JaxWsClientProxy extends or
                 result = invokeSync(method, oi, params);
             }
         } catch (WebServiceException wex) {
-            throw wex.fillInStackTrace();
+            throw wex;
         } catch (Exception ex) {
             for (Class<?> excls : method.getExceptionTypes()) {
                 if (excls.isInstance(ex)) {
-                    throw ex.fillInStackTrace();
+                    throw ex;
                 }
             }
             if (ex instanceof Fault && ex.getCause() instanceof IOException) {