users@glassfish.java.net

Re: Corrupted XML (SOAP responses) under load

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Jun 2009 02:38:46 PDT

Hello,


We got similar problems on load tests with very simple web services.
One difference may be that we use XFire as a base for them.

ex. of exceptions:
[httpSSLWorkerThread-38080-2][11:12:38:INFO ][org.codehaus.xfire.handler.DefaultFaultHandler :39 ]: Fault occurred!
com.sun.xml.stream.XMLStreamException2: ParseError at [row,col]:[1,3]
Message: The markup in the document preceding the root element must be well-formed.
[#|2009-06-05T11:12:40.221+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-38080-1;|
[httpSSLWorkerThread-38080-1][11:12:40:INFO ][org.codehaus.xfire.handler.DefaultFaultHandler :39 ]: Fault occurred!
org.codehaus.xfire.fault.XFireFault: Not enough message parts were received for the operation.
[#|2009-06-05T11:11:26.701+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-38080-1;|[httpSSLWorkerThread-38080-1][11:11:26:ERROR][org.codehaus.xfire.handler.DefaultFaultHandler :35 ]: Fault occurred!
java.lang.IllegalStateException: Current state CHARACTERS is not among the states START_ELEMENT, END_ELEMENT, UNKNOWN_EVENT_TYPE , 13 valid for getNamespaceCount().

For the moment, we are looking at possible problems with the XML parsers used by GlassFish.
By default, it is sjsxp.
We also made some tests using woodstox and we got better results but still not perfect and no workarounds.

Maybe a small test with woodstox can make a difference for you ad help you qualify further your problem ?


Bye
[Message sent by forum member 'vkoniecz' (vkoniecz)]

http://forums.java.net/jive/thread.jspa?messageID=351796