Asankha, No problem, good to hear that the issue could be reproduced. I also think that there is a timing issue. The workaround that I found is to use a rpc style web service with a wsdl. I agree that this is a non-blocker for the 1.0 release.
Tijs -----Oorspronkelijk bericht----- Van: Asankha C. Perera [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 1 juni 2007 11:32 Aan: [email protected] Onderwerp: Re: [jira] Created: (SYNAPSE-103) WS-RM not returning response message Tijs Sorry for the delay in getting back on this.. Our QA folks were able to reproduce this issue today in Windows. Earlier we tried this quite a few times, but we were using Linux all along :-( My first guess is that this is related to some timing issue with Sandesha as the message exchanges (when used with TCPMon) are valid for both environments. Also, you seem to have somehow discovered a workaround with the WDSL being present.. I guess this causes some slight change in timing - making things work.. but this is just my guess.. I am considering this as a non-blocker for our 1.0 release at this time due to the issue being present only in Unix. asankha Tijs Rademakers wrote: Hi Chathura, I tried a few times to do sample 53 without the wsdl and I did not get an answer (stock quote) back in the client. I have written a new service that accepts an order and returns an invoice. Notice that for the faulty scenario the WS-RM exchange between Synapse and my service is as expected. Synapse just is not able to process a response back to the client. This is the output of TCPMon, splitted in two connections. First connection POST POST http://localhost:7070/orderapp/services/OrderRMServiceSupplier1 HTTP/1.1 SOAPAction: http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence Content-Type: text/xml; charset=UTF-8 Transfer-Encoding: chunked Host: 127.0.0.1:7070 Connection: Keep-Alive User-Agent: Synapse-HttpComponents-NIO 304 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsa:To>http: //localhost:7070/orderapp/services/OrderRMServiceSupplier1</wsa:To><wsa: MessageID>urn:uuid:D628F22C83CA1653E41180346226005</wsa:MessageID><wsa:A ction>http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</wsa:Actio n></soapenv:Header><soapenv:Body><wsrm:CreateSequence xmlns:wsrm=" http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:AcksTo><wsa:Address>http ://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsrm:AcksTo><w srm:Offer><wsrm:Identifier>urn:uuid:D628F22C83CA1653E41180346226006</wsr m:Identifier></wsrm:Offer></wsrm:CreateSequence></soapenv:Body></soapenv :Envelope > 0 POST http://localhost:7070/orderapp/services/OrderRMServiceSupplier1 HTTP/1.1 SOAPAction: http://supplier1.com/placeorder Content-Type: text/xml; charset=UTF-8 Transfer-Encoding: chunked Host: localhost:7070 Connection: Keep-Alive User-Agent: Synapse-HttpComponents-NIO 3e8 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsa:To>http: //localhost:7070/orderapp/services/OrderRMServiceSupplier1</wsa:To><wsa: MessageID>urn:uuid:E814166E2B91D51370158073523479103414027104</wsa:Messa geID><wsa:Action>http://supplier1.com/placeorder</wsa:Action><wsrm:Seque nce xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm" soapenv:mustUnderstand="1"><wsrm:Identifier>urn:uuid:F6DED4F485CAF127A81 180346226285</wsrm:Identifier><wsrm:MessageNumber>1</wsrm:MessageNumber> <wsrm:LastMessage /></wsrm:Sequence></soapenv:Header><soapenv:Body xmlns:axis2ns42=" http://atosorigin.com/nljug"><sup:OrderRequest xmlns:sup="http://supplier/xsd"> <sup:ordernumber>5235432</sup:ordernumber> <sup:client>dsfds</sup:client> <sup:supplier>Supplier1</sup:supplier> <sup:product>34324</sup:product> <sup:amount>5</sup:amount> </sup:OrderRequest></soapenv:Body></soapenv:Envelope> 0 Response HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Mon, 28 May 2007 09:57:05 GMT 326 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsa:MessageI D>urn:uuid:F6DED4F485CAF127A81180346226286</wsa:MessageID><wsa:Action>ht tp://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse</wsa:Actio n><wsa:RelatesTo>urn:uuid:D628F22C83CA1653E41180346226005</wsa:RelatesTo </soapenv:Header><soapenv:Body><wsrm:CreateSequenceResponse xmlns:wsrm=" http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:F6DE D4F485CAF127A81180346226285</wsrm:Identifier><wsrm:Accept><wsrm:AcksTo>< wsa:Address>http://localhost:7070/orderapp/services/OrderRMServiceSuppli er1</wsa:Address></wsrm:AcksTo></wsrm:Accept></wsrm:CreateSequenceRespon se></soapenv:Body></soapenv:Envelope > 0 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Mon, 28 May 2007 09:57:05 GMT 491 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsa:MessageI D>urn:uuid:F6DED4F485CAF127A81180346226369</wsa:MessageID><wsa:Action>ht tp://supplier1.com/placeorder</wsa:Action><wsa:RelatesTo>urn:uuid:E81416 6E2B91D51370158073523479103414027104</wsa:RelatesTo><wsrm:Sequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm" soapenv:mustUnderstand="1"><wsrm:Identifier>urn:uuid:D628F22C83CA1653E41 180346226006</wsrm:Identifier><wsrm:MessageNumber>1</wsrm:MessageNumber> <wsrm:LastMessage /></wsrm:Sequence><wsrm:SequenceAcknowledgement xmlns:wsrm=" http://schemas.xmlsoap.org/ws/2005/02/rm" soapenv:mustUnderstand="1"><wsrm:Identifier>urn:uuid:F6DED4F485CAF127A81 180346226285</wsrm:Identifier><wsrm:AcknowledgementRange Lower="1" Upper="1" /></wsrm:SequenceAcknowledgement></soapenv:Header><soapenv:Body><invoice xmlns=" http://atosorigin.com/nljug" invoiceId="524249129"><orderNumber>5235432</orderNumber><expectedDeliver yDate>2007-06-02T09:57:06.093Z</expectedDeliveryDate><price> 837.25</price></invoice></soapenv:Body></soapenv:Envelope> 0 Second connection POST POST http://localhost:7070/orderapp/services/OrderRMServiceSupplier1 HTTP/1.1 SOAPAction: http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence Content-Type: text/xml; charset=UTF-8 Transfer-Encoding: chunked Host: 127.0.0.1:7070 Connection: Keep-Alive User-Agent: Synapse-HttpComponents-NIO 39a <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsa:To>http: //localhost:7070/orderapp/services/OrderRMServiceSupplier1</wsa:To><wsa: MessageID>urn:uuid:D628F22C83CA1653E41180346226232</wsa:MessageID><wsa:A ction>http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence</wsa:Ac tion><wsrm:SequenceAcknowledgement xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm" soapenv:mustUnderstand="1"><wsrm:Identifier>urn:uuid:D628F22C83CA1653E41 180346226006</wsrm:Identifier><wsrm:AcknowledgementRange Lower="1" Upper="1" /></wsrm:SequenceAcknowledgement></soapenv:Header><soapenv:Body><wsrm:Te rminateSequence xmlns:wsrm=" http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:F6DE D4F485CAF127A81180346226285</wsrm:Identifier></wsrm:TerminateSequence></ soapenv:Body></soapenv:Envelope> 0 Response HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Mon, 28 May 2007 09:57:06 GMT 2b5 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsa:ReplyTo> <wsa:Address>http://localhost:7070/orderapp/services/OrderRMServiceSuppl ier1</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:F6DED4F485CAF127 A81180346226939</wsa:MessageID><wsa:Action>http://schemas.xmlsoap.org/ws /2005/02/rm/TerminateSequence</wsa:Action></soapenv:Header><soapenv:Body <wsrm:TerminateSequence xmlns:wsrm=" http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:D628 F22C83CA1653E41180346226006</wsrm:Identifier></wsrm:TerminateSequence></ soapenv:Body></soapenv:Envelope> 0 -----Oorspronkelijk bericht----- Van: Chathura Ekanayake [mailto:[EMAIL PROTECTED] Verzonden: maandag 28 mei 2007 9:13 Aan: [email protected] Onderwerp: Re: [jira] Created: (SYNAPSE-103) WS-RM not returning response message Hi Tijs, I tried to recreate the problem you have mentioned. But Synapse worked fine for both scenarios (i.e. with and without the wsdl) with sample 53. Are you using the ReliableStockQuoteService provided with Synase or have you written a new service? Could you send the output of the TCPMon for the faulty scenario as well. Thanks, Chathura On 5/27/07, Tijs Rademakers < [EMAIL PROTECTED]> wrote: Hi Asankha, Thanks for your quick response! I have tried the build on your website, but I am still getting the same error. The problem is that the TerminateSequence message is sent in a different connection (traced via TCPMon). Thanks, Tijs -----Oorspronkelijk bericht----- Van: Asankha C. Perera [mailto: [EMAIL PROTECTED] Verzonden: zondag 27 mei 2007 12:37 Aan: [email protected] Onderwerp: Re: [jira] Created: (SYNAPSE-103) WS-RM not returning response message Hi Tijs There were some issues with RM/Sandesha2 that was fixed in the last week.. could you try a new online build (deleting your sandesha2 snapshots from the local maven repo) or the build I placed here http://people.apache.org/~asankha/builds/SNAP/ and let me know? thanks asankha Tijs Rademakers (JIRA) wrote: WS-RM not returning response message ------------------------------------ Key: SYNAPSE-103 URL: https://issues.apache.org/jira/browse/SYNAPSE-103 Project: Synapse Issue Type: Bug Components: Core Affects Versions: 1.0-RC2-B2 Environment: Windows XP Professional Reporter: Tijs Rademakers I am experiencing a problem with the WS-RM support version 1.0. The response message is not retrieved by Synapse from the WS-RM conversation. The error message that I get is shown at the bottom of this description. This exception can be reproduced when you use sample 53 of Synapse. The ReliableStockQuoteService aar contains a wsdl file, when the wsdl file is deleted from the aar file, this problem occurs. It seems that when the processing of the response message in the web service takes more time the error occurs. I use a RawXMLINOutMessageReceiver and built the OMElement myself, then this problem also occurs. When I look in Tcpmon, the difference between using sample 53 as-is and without the wsdl is that the TerminateSequence message is sent in the same connection for sample 53 as-is and for the aar without the wsdl the TerminateSequence message is sent in a different connection. [Axis2 Task] ERROR InvokerWorker - org.apache.sandesha2.storage.SandeshaStorageException: Failed to load message due to exception org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException . org.apache.sandesha2.storage.SandeshaStorageException: Failed to load message due to exception org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException. at org.apache.sandesha2.storage.inmemory.InMemoryStorageManager.retrieveMes sageContext(InMemoryStorageManager.java:239) at org.apache.sandesha2.workers.InvokerWorker.run(InvokerWorker.java:57) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker .runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java :595) Caused by: org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:2 11) at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:315) at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:608 ) at org.apache.axiom.om.impl.llom.OMElementImpl.cloneOMElement (OMElementImpl .java:943) at org.apache.sandesha2.util.SandeshaUtil.cloneEnvelope(SandeshaUtil.java:9 84) at org.apache.sandesha2.storage.inmemory.InMemoryStorageManager.retrieveMes sageContext(InMemoryStorageManager.java:231) ... 4 more Caused by: javax.xml.stream.XMLStreamException at org.apache.axiom.om.impl.llom.OMStAXWrapper.updateLastNode(OMStAXWrapper .java:955) at org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:900) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1 25) ... 9 more [I/O reactor worker thread 3] ERROR ClientHandler - I/O Error : Pipe closed java.io.IOException: Pipe closed at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:190) at java.io.PipedInputStream.receive(PipedInputStream.java:156) at java.io.PipedOutputStream.write(PipedOutputStream.java:129) at java.nio.channels.Channels$WritableByteChannelImpl.write (Channels.java:2 67) at org.apache.axis2.transport.nhttp.ClientHandler.inputReady(ClientHandler. java:219) at org.apache.axis2.transport.nhttp.LoggingNHttpClientHandler.inputReady (Lo ggingNHttpClientHandler.java:103) at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(Defau ltNHttpClientConnection.java:110) at org.apache.axis2.transport.nhttp.PlainClientIOEventDispatch.inputReady (P lainClientIOEventDispatch.java:69) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.ja va:68) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent (Abstract IOReactor.java:160) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(Abstrac tIOReactor.java:145) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute (AbstractIORea ctor.java:127) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run (AbstractMultiworkerIOReactor.java:153) at java.lang.Thread.run(Thread.java :595) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
