Hello everybody,
I tried the same test described by Eric's scenario on linux today.
I had similar problems, here is the stacktrace:
2008-05-05 17:27:22,541 [10.137.148.70-lenny] [HttpClientWorker-17]
ERROR ClientWorker Fault creating response SOAP envelope
org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:70)
at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
at
org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:173)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.ctc.wstx.exc.WstxIOException: null
at
com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
at
com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
at
com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:629)
at
com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:324)
at org.apache.axiom.om.util.StAXUtils$1.run(StAXUtils.java:114)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:110)
at
org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:58)
... 6 more
Caused by: java.nio.channels.ClosedChannelException
at
sun.nio.ch.SourceChannelImpl.ensureOpen(SourceChannelImpl.java:136)
at sun.nio.ch.SourceChannelImpl.read(SourceChannelImpl.java:140)
at
sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:42)
at
sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:92)
at
sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:86)
at java.io.FilterInputStream.read(FilterInputStream.java:111)
at
org.apache.axiom.om.util.DetachableInputStream.read(DetachableInputStream.java:128)
at java.io.FilterInputStream.read(FilterInputStream.java:111)
at
java.io.PushbackInputStream.read(PushbackInputStream.java:161)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:365)
at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110)
at
com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
at
com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
at
com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
... 13 more
I don't know if this can be of any use for solving the problem, but the
Esb is installed on a linux box running kernel 2.6.18 and java
1.5.0_15, the service run on a 2.6.22 linux and java1.5.0_13.
On Mon, 2008-05-05 at 10:01 +0200, Hubert, Eric wrote:
> Hi Ruwan,
>
> it is a normal scenario and I can reproduce it at will with your
> snapshot version v5. Snapshot version v4 and any version before run
> without problems. Regarding the stack I had the same impression.
>
> Here is again a description with what I did:
>
> 1) I deployed a Hello World SOAP WebService to JBoss 4.2.2 GA
>
> 2) Using soapUI 2.0.2 I created a test request based on the WSDL
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ser="http://service.jamba.de/">
> <soapenv:Header/>
> <soapenv:Body>
> <ser:helloWorld/>
> </soapenv:Body>
> </soapenv:Envelope>
>
> Test responds looks like that:
>
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> <env:Header/>
> <env:Body>
> <ns2:helloWorldResponse xmlns:ns2="http://service.jamba.de/">
> <return>Hello World!</return>
> </ns2:helloWorldResponse>
> </env:Body>
> </env:Envelope>
>
> 3) I created a load test with strategy "thread", 1 start thread, 1 end
> thread and conducted a test for 60 seconds
> against the service directly --> no problem
>
> 4) I configured the service in synapse
> <syn:proxy name="HelloWorldService" startOnLoad="true"
> statistics="enable">
> <syn:target endpoint="HelloWorld">
> <syn:outSequence>
> <syn:send/>
> </syn:outSequence>
> </syn:target>
> </syn:proxy>
> <syn:endpoint name="HelloWorld">
> <syn:address uri="http://r11:10080/WSTest/HelloWorldService"/>
> </syn:endpoint>
>
> 5) In soapUI I changed the endpoint to the ESB address an rerun the
> same load test. After about 5 seconds (99 requests served, I receive
> the exception posted (always the same stack trace and always after the
> same time). 98-99 requests without error and then this exception.
>
> 6) I rerun the same test with WSO2 ESB 1.6 and your snapshot build v3
> and v4 and had no problem.
>
> What additional information do you need?
>
> I'll ask a colleague to conduct the same test on Linux today.
>
> Regards,
> Eric
>
>
>
>
> ______________________________________________________________________
> Von: [EMAIL PROTECTED] im Auftrag von Ruwan Linton
> Gesendet: Mo 05.05.2008 01:24
> An: [email protected]
> Betreff: Re: AW: [esb-java-dev] AsynchronousCloseException
>
>
> Hi Eric,
>
> We do not recommend to host ESB in windows for production, but it
> should
> run on Windows for the normal scenarios. If you can consistently
> reproduce this issue, could you please tell us the exact procedure to
> reproduce this issue?
>
> By looking at the exception stack trace I also think this is purely on
> the nio implementation level, and I cannot think of how this
> regression
> has been injected, because we have not changed the httpcore-nio
> dependency. Anyway it is good for us to know the issue, if there are
> any.
>
> So please tell us the exact procedure.
>
> Thanks,
> Ruwan
>
> Hubert, Eric wrote:
> > Hi Asankha,
> >
> > ok, most of the time I only tested on Linux, as this will be our
> production environment. Right now I'm at home and only have a few
> virtualized Linux-boxes on some windows machines available. That's why
> I tested straight on Windows, as I did not think much about the
> differences in the underlying nio implementation for such basic tests.
> >
> > I did not put the ESB in maintenance mode. I just sequentially sent
> messages via soapUI to the ESB and got that error, without changing
> something on the ESB (no maintenance mode, no graceful restart)... It
> was just ment as a warm-up test to check the environment, and I'm
> happy that I did this before. Otherwise I might have thought of a bug
> in the new graceful shutdown code. ;-)
> >
> > I re-run the exact same test against version 1.6 of WSO2 ESB (on the
> same machine, with the same configuration) - no problems. So this
> looks like a regression. I'm not sure whether I would be able to
> trigger the same problem under Linux.
> >
> > If you need some further information to reproduce the problem,
> please just ask. I'm willing to help.
> >
> > Regards,
> > Eric
> >
> >
> >
> > ________________________________
> >
> > Von: [EMAIL PROTECTED] im Auftrag von Asankha C. Perera
> > Gesendet: So 04.05.2008 20:14
> > An: [email protected]
> > Betreff: Re: [esb-java-dev] AsynchronousCloseException
> >
> >
> > Eric
> >
> >
> >
> >
> > Since your production environment is Linux, I would not
> recommend trying to isolate the above problem in Windows. One basic
> difference with the NIO platform is that we read using channels, and
> then need to switch into Java streams for the rest of the processing,
> and we use Pipe's in Unix, and Simulated (i.e. Buffered) pipes in
> Windows. Also, its good to stick to JDK 1.5.0_14 wherever possible.
> >
> > If you put the ESB into maintenance during the 'load test', it
> may have caused some problem to the client as new connections would
> have been refused by the ESB.. I am not sure I understand exactly how
> you did the test. I would try to reproduce this tomorrow, and thought
> of using the SimpleStockQuote service, the Java ApacheBench client and
> the ESB.. and putting the ESB into graceful shutdown? Is this what you
> tried as well?
> >
> > asankha
> >
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Esb-java-dev mailing list
> > [email protected]
> > http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
> >
>
>
> _______________________________________________
> Esb-java-dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
>
>
>
_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev