synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruwan Linton (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SYNAPSE-275) Aggregate mediator: Exception thrown when aggregating messages with specifying a complete condition
Date Fri, 16 May 2008 09:08:57 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ruwan Linton updated SYNAPSE-275:
---------------------------------

    Priority: Blocker  (was: Major)

This is blocking the use of the iterate mediator

> Aggregate mediator: Exception thrown when aggregating messages with specifying a complete
condition 
> ----------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-275
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-275
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: NIGHTLY
>         Environment: ubuntu, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Ruwan Linton
>            Priority: Blocker
>             Fix For: 1.2
>
>
> Following exception can be seen in the synapse console when aggregating messages if <completeCondition><messageCount
max=""> element is specified in the configuration.
> 2008-04-23 12:52:09,467 [127.0.0.1-testb] [HttpClientWorker-8] 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:232)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:411)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:264)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>         at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:138)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:221)
>         at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:158)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>         at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.completeAggregate(AggregateMediator.java:273)
>         at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.mediate(AggregateMediator.java:217)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:164)
>         at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:299)
>         at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:130)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>         at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:206)
>         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-23 12:52:09,496 [127.0.0.1-testb] [HttpClientWorker-8] ERROR HttpCoreNIOSender
IO Error sending response message
> org.apache.axis2.AxisFault
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>         at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:72)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:421)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:264)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>         at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:138)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:221)
>         at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:158)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>         at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.completeAggregate(AggregateMediator.java:273)
>         at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.mediate(AggregateMediator.java:217)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:164)
>         at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:299)
>         at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:130)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>         at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:206)
>         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:146)
>         at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:451)
>         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-23 12:52:09,498 [127.0.0.1-testb] [HttpClientWorker-8] 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:545)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:425)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:264)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>         at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:138)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:221)
>         at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:158)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>         at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.completeAggregate(AggregateMediator.java:273)
>         at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.mediate(AggregateMediator.java:217)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:164)
>         at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:299)
>         at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:130)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>         at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:206)
>         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:430)
>         at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:72)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:421)
>         ... 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:146)
>         at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:451)
>         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-23 12:52:09,516 [127.0.0.1-testb] [HttpClientWorker-8]  WARN FaultHandler Fault
handler - setting ERROR_MESSAGE : Unexpected error sending message back
> 2008-04-23 12:52:09,516 [127.0.0.1-testb] [HttpClientWorker-8]  WARN FaultHandler Fault
handler - setting ERROR_DETAIL : org.apache.synapse.SynapseException: Unexpected error sending
message back
>         at org.apache.synapse.core.axis2.Axis2Sender.handleException(Axis2Sender.java:147)
>         at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:141)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:221)
>         at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:158)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>         at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.completeAggregate(AggregateMediator.java:273)
>         at org.apache.synapse.mediators.eip.aggregator.AggregateMediator.mediate(AggregateMediator.java:217)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:164)
>         at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:299)
>         at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:130)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>         at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:206)
>         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: IO Error sending response message
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.handleException(HttpCoreNIOSender.java:545)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:425)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:264)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>         at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:138)
>         ... 16 more
> Caused by: org.apache.axis2.AxisFault
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>         at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:72)
>         at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:421)
>         ... 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:146)
>         at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:451)
>         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
> Steps to reproduce:
> =================
> 1. Edit the sample 400 configuration as given below by adding a completeCondition element.
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>     <proxy name="SplitAggregateProxy">
>         <target>
>             <inSequence>
>                 <iterate expression="//m0:getQuote/m0:request" preservePayload="true"
>                          attachPath="//m0:getQuote"
>                          xmlns:m0="http://services.samples/xsd">
>                     <target>
>                         <sequence>
>                             <send>
>                                 <endpoint>
>                                     <address
>                                         uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
>                                 </endpoint>
>                             </send>
>                         </sequence>
>                     </target>
>                 </iterate>
>             </inSequence>
>             <outSequence>
>                 <aggregate>
>            <completeCondition>
>           <messageCount  max="3"/>
>            </completeCondition>?
>                     <onComplete expression="//m0:getQuoteResponse"
>                                 xmlns:m0="http://services.samples/xsd">
>                         <send/>
>                     </onComplete>
>                     <invalidate>
>                         <log level="full"/>
>                         <drop/>
>                     </invalidate>
>                 </aggregate>
>             </outSequence>
>         </target>
>     </proxy>
> </definitions>
> 2. save the configuration and start synapse (synapse -sample 400)
> 3. Start axis2Server
> 4. Invoke StockQuoteClient as follows.
> ant stockquote -Daddurl=http://localhost:8080/soap/SplitAggregateProxy -Ditr=4
> 5. Run the client again (You will not get the above exception 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