axis-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r1027545 - /axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java
Date Tue, 26 Oct 2010 13:28:15 GMT
Author: scheu
Date: Tue Oct 26 13:28:15 2010
New Revision: 1027545

URL: http://svn.apache.org/viewvc?rev=1027545&view=rev
Log:
AXIS2-4862
Contributor:Rich Scheuerle
Summary:
Corrected a small logic flaw in the convertToFaultMessage method

Modified:
    axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java

Modified: axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java?rev=1027545&r1=1027544&r2=1027545&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java
(original)
+++ axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java
Tue Oct 26 13:28:15 2010
@@ -693,11 +693,15 @@ public class HandlerChainProcessor {
         // probably by way of a flag (isFault) in the MessageContext or Message
         if (log.isDebugEnabled()) {
             log.debug("start convertToFaultMessge with exception: " + e.getClass().getName());
+            log.debug(" checkMsg is : " + checkMsg);
         }
            
         try {
             // According to the 9.3.2.1, The message is converted into a fault only if it
is not already a Fault
-            Message messageFromHandler = mepCtx.getMessageContext().getMessage();
+            Message messageFromHandler = null; 
+            if (checkMsg) {
+                messageFromHandler = mepCtx.getMessageContext().getMessage();
+            } 
             if (messageFromHandler != null && messageFromHandler.isFault()) {
                 if (log.isDebugEnabled()) {
                     log.debug("The Message is already a SOAPFault.  The exception is not
converted into a Message");



Mime
View raw message