users@jax-rpc.java.net

Re: JAX-WS 2.0 EA2: Thread safety Error

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Fri, 15 Jul 2005 15:44:31 -0700

It looks like the way we are using XMLStreamWriter from the factory is
causing this issue. I will let you know once the fix is part of a weekly
build.

Thanks,
Jitu

Fung, Kevin [IT] wrote:

>The trace has more to do with concurrency than the number of requests. When the test driver uses only one thread, the trace was never observed, even after 1 million requests. When the test driver uses more than one threads, the trace can always be reproduced. For example, when the test driver used 10 threads and each thread executed 1000 requests, the trace was observed a couple of times within the total 10000 requests. It seems to indicate there is a thread safety issue.
>
>Kevin
>
>-----Original Message-----
>From: Jitendra Kotamraju [mailto:Jitendra.Kotamraju_at_Sun.COM]
>Sent: Wednesday, July 13, 2005 6:51 PM
>To: users_at_jax-rpc.dev.java.net
>Subject: Re: JAX-WS 2.0 EA2: Thread safety Error
>
>
>Fung, Kevin [IT] wrote:
>
>
>
>>The attached stack trace is generated when there is more than 1 concurrent soap requests. The trace happens about 5 times in 20000 - 50000 requests.
>>
>>
>>
>Thanks for pointing this. It needs more investigation as the most of the
>server runtime classes are stateless.
>
>Does it happen with less number of requests using multiple concurrent
>soap requests ? We need to investigate if it is a thread safety issue or
>load issue.
>
>Jitu
>
>
>
>>Load test environment:
>>OS: Windows 2000 SP3
>>JVM: 1.5.0_03-b07
>>Tomcat: 5.5.9 (Connector properties in server.xml modified with maxKeepAliveRequests="-1" to support persistent HTTP connections for the test)
>>JAX-WS 2: JAX-WS 2.0 EA2
>>
>>unexpected XML reader state. expected: END_DOCUMENT but found: UNKNOWN
>> at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyReaderState(XMLStreamReaderUtil.java:154)
>> at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:145)
>> at com.sun.xml.ws.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:52)
>> at com.sun.xml.ws.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:160)
>> at com.sun.xml.ws.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:123)
>> at com.sun.xml.ws.server.Tie.handle(Tie.java:52)
>> at com.sun.xml.ws.transport.http.servlet.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:342)
>> at com.sun.xml.ws.transport.http.servlet.JAXRPCServlet.doPost(JAXRPCServlet.java:87)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> at java.lang.Thread.run(Thread.java:595)
>>
>>Kevin Fung
>>Sr. Architect
>>GCAT Engineering
>>Citigroup, Inc.
>>kevin.fung_at_citigroup.com
>>908-563-0546
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>