synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiranya Jayathilaka (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SYNAPSE-270) Synapse sample 400: Splitting and aggregating messages - Client times out when running the sample
Date Fri, 18 Apr 2008 09:44:21 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590369#action_12590369
] 

Hiranya Jayathilaka commented on SYNAPSE-270:
---------------------------------------------

I tried this sample with Synapse version 1.1.1. It seems fine in the client side. I got the
following output.

hiranya@hiranya-laptop:/opt/synapse-1.1.1/samples/axis2Client$ ant stockquote -Daddurl=http://localhost:8080/soap/SplitAggregateProxy
-Ditr=4
Buildfile: build.xml

init:

compile:

stockquote:
     [java] Standard :: Stock price = $152.6116332363752

BUILD SUCCESSFUL
Total time: 3 seconds

But in the Synapse console there was a whole bunch of stack traces. The top part of the trace
is as follows.

2008-04-18 14:57:16,754 [127.0.1.1-hiranya-laptop] [HttpClientWorker-2] ERROR ServerHandler
Unexpected HTTP protocol error : Transfer-encoding header already present
org.apache.http.ProtocolException: Transfer-encoding header already present
        at org.apache.http.protocol.ResponseContent.process(ResponseContent.java:67)
        at org.apache.http.protocol.BasicHttpProcessor.process(BasicHttpProcessor.java:304)
        at org.apache.synapse.transport.nhttp.ServerHandler.commitResponse(ServerHandler.java:233)
        at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:360)
        at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:225)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:104)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:197)
        at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:97)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.completeAggregate(AggregateMediator.java:264)
        at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.mediate(AggregateMediator.java:208)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:140)
        at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:285)
        at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:125)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:193)
        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)
2008-04-18 14:57:16,759 [127.0.1.1-hiranya-laptop] [HttpClientWorker-2] ERROR HttpCoreNIOSender
IO Error sending response message
org.apache.axis2.AxisFault
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
        at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:72)
        at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:370)
        at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:225)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:104)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:197)
        at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:97)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.completeAggregate(AggregateMediator.java:264)
        at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.mediate(AggregateMediator.java:208)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:140)
        at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:285)
        at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:125)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:193)
        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.sw.BaseStreamWriter.flush(BaseStreamWriter.java:313)
        at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:118)
        at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:401)
        at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:66)
        ... 20 more
Caused by: java.nio.channels.ClosedChannelException
        at sun.nio.ch.SinkChannelImpl.ensureOpen(SinkChannelImpl.java:136)
        at sun.nio.ch.SinkChannelImpl.write(SinkChannelImpl.java:140)
        at java.nio.channels.Channels.write(Channels.java:60)
        at java.nio.channels.Channels.access$000(Channels.java:47)
        at java.nio.channels.Channels$1.write(Channels.java:134)
        at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)
        at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
        at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311)
        ... 23 more
2008-04-18 14:57:16,761 [127.0.1.1-hiranya-laptop] [HttpClientWorker-2] ERROR Axis2Sender
Unexpected error sending message back
org.apache.axis2.AxisFault: IO Error sending response message
        at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.handleException(HttpCoreNIOSender.java:485)
        at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:374)
        at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:225)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:104)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:197)
        at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:97)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.completeAggregate(AggregateMediator.java:264)
        at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.mediate(AggregateMediator.java:208)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:140)
        at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:285)
        at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:125)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:193)
        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: org.apache.axis2.AxisFault
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
        at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:72)
        at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:370)
        ... 19 more
Caused by: com.ctc.wstx.exc.WstxIOException: null
        at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:313)
        at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:118)
        at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:401)
        at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:66)
        ... 20 more
Caused by: java.nio.channels.ClosedChannelException
        at sun.nio.ch.SinkChannelImpl.ensureOpen(SinkChannelImpl.java:136)
        at sun.nio.ch.SinkChannelImpl.write(SinkChannelImpl.java:140)
        at java.nio.channels.Channels.write(Channels.java:60)
        at java.nio.channels.Channels.access$000(Channels.java:47)
        at java.nio.channels.Channels$1.write(Channels.java:134)
        at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)
        at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
        at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311)
        ... 23 more


> Synapse sample 400: Splitting and aggregating messages - Client times out when running
the sample 
> --------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-270
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-270
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: NIGHTLY
>         Environment: ubuntu, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Ruwan Linton
>             Fix For: 1.2
>
>
> Sample client times out when running sample 400 as instructed in the sample guide.
>   [java] java.net.SocketTimeoutException: Read timed out
>      [java]     at java.net.SocketInputStream.socketRead0(Native Method)
>      [java]     at java.net.SocketInputStream.read(SocketInputStream.java:129)
>      [java]     at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
>      [java]     at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
>      [java]     at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
>      [java]     at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
>      [java]     at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
>      [java]     at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
>      [java]     at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
>      [java]     at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
>      [java]     at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
>      [java]     at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
>      [java]     at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>      [java]     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> Steps to reproduce:
> ================
> 1. Start Synapse with the sample configuration 400
> 2. Start axis2 server
> 3. Run client as follows
> ant stockquote -Daddurl=http://localhost:8080/soap/SplitAggregateProxy -Ditr=4
> This issue will not occur if you run the client again after timing out. However, you
should observe the issue in the first time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message