ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r683353 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/MessageImpl.java
Date Wed, 06 Aug 2008 18:22:07 GMT
Author: scheu
Date: Wed Aug  6 11:22:06 2008
New Revision: 683353

URL: http://svn.apache.org/viewvc?rev=683353&view=rev
Log:
AXIS2-3965
Contributor: Sandy Kao (IBM)
Close the parser/builder during conversion of OM -> SAAJ

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/MessageImpl.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/MessageImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/MessageImpl.java?rev=683353&r1=683352&r2=683353&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/MessageImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/MessageImpl.java
Wed Aug  6 11:22:06 2008
@@ -194,6 +194,12 @@
             ByteArrayOutputStream outStream = new ByteArrayOutputStream();
             element.serialize(outStream);
             
+            // In some cases (usually inbound) the builder will not be closed after
+            // serialization.  In that case it should be closed manually.
+            if (element.getBuilder() != null && !element.getBuilder().isCompleted())
{
+                element.close(false);
+            }
+            
             byte[] bytes = outStream.toByteArray();
             
             if (log.isDebugEnabled()) {



Mime
View raw message