You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by sc...@apache.org on 2008/04/22 22:38:32 UTC

svn commit: r650643 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java

Author: scheu
Date: Tue Apr 22 13:38:23 2008
New Revision: 650643

URL: http://svn.apache.org/viewvc?rev=650643&view=rev
Log:
Quick Fix to add debug trace in the constructor of MTOMXMLStreamWriter.
This will help identify problems during support (i.e. what are the settings of OMOutputFormat when
the writer is created).

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java?rev=650643&r1=650642&r2=650643&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java Tue Apr 22 13:38:23 2008
@@ -36,6 +36,7 @@
 import org.apache.axiom.om.OMNode;
 import org.apache.axiom.om.OMOutputFormat;
 import org.apache.axiom.om.OMText;
+import org.apache.axiom.om.util.CommonUtils;
 import org.apache.axiom.om.util.StAXUtils;
 import org.apache.axiom.soap.SOAP11Constants;
 import org.apache.axiom.soap.SOAP12Constants;
@@ -80,6 +81,11 @@
      */
     public MTOMXMLStreamWriter(OutputStream outStream, OMOutputFormat format)
             throws XMLStreamException, FactoryConfigurationError {
+        if (log.isDebugEnabled()) {
+            log.debug("OutputStream =" + outStream.getClass());
+            log.debug("OMFormat = " + format.toString());
+            log.debug("Call Stack =" + CommonUtils.callStackToString());
+        }
         this.format = format;
         this.outStream = outStream;