Serializing large data set (i.e. 72 Mb of XML) from the server, the XML 
streaming stops.
----------------------------------------------------------------------------------------

         Key: WSCOMMONS-34
         URL: http://issues.apache.org/jira/browse/WSCOMMONS-34
     Project: WS-Commons
        Type: Bug

  Components: AXIOM  
 Environment: Windows XP, JBOSS4.03 SP1
    Reporter: Lakshmi Chaparala


 PROBLEM:  When an extremely large data set (i.e. 72 Mb of XML) is  attempted 
to be serialized and sent from the server using the OMSourcedElementImpl with 
an OMDataSource, the XML streaming stops  fairly early on with a 
XMLStreamException shown below (note that the stack trace can only be seen if 
you modify the StreamingOMSerializer to print it out):

17:03:03,562 INFO  [STDOUT]javax.xml.stream.XMLStreamException

 17:03:03,562 INFO  [STDOUT]     
atcom.ctc.wstx.sw.BaseNsStreamWriter.doWriteStartTag(BaseNsStreamWriter.java:495)

17:03:03,562 INFO  [STDOUT]     at 
com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartOrEmpty(SimpleNsStreamWriter.java:247)
17:03:03,562 INFO  [STDOUT]     at 
com.ctc.wstx.sw.BaseNsStreamWriter.writeStartElement(BaseNsStreamWriter.java:273)

17:03:03,562 INFO  [STDOUT]     at 
org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeStartElement(MTOMXMLStreamWriter.java:87)

17:03:03,578 INFO  [STDOUT]     at 
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElement(StreamingOMSerializer.java:129)

17:03:03,578 INFO  [STDOUT]     at 
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializ 
eNode(StreamingOMSerializer.java:79)

 17:03:03,578 INFO  [STDOUT]     at 
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:60)

 17:03:03,578 INFO  [STDOUT]     at 
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:315)

 17:03:03,578 INFO  [STDOUT]     at 
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:786)

 17:03:03,593 INFO  [STDOUT]     at 
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809)

17:03:03,593 INFO  [STDOUT]     at 
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:780)

 17:03:03,593 INFO  [STDOUT]     at 
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize 
SOAPEnvelopeImpl.java:171)

17:03:03,593 INFO  [STDOUT]     at 
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809)

17:03:03,609 INFO  [STDOUT]     at 
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:381)

17:03:03,609 INFO  [STDOUT]     at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:256)

17:03:03,609 INFO  [STDOUT]     at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke

 (CommonsHTTPTransportSender.java:210) 17:03:03,609 INFO  [STDOUT]     at 
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)


CORRECTION:  In the server axis2.xml file, set the enableMTOM  parameter to 
true.  This allows the entire data set to be serialized to the client. Server 
memory spikes, but comes back down.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to