RMSampleService issue

Deepak Damara <deepak.damara-/[email protected]> Thu, 4 Dec 2008 21:13:11 +0530
Newsgroups gmane.comp.apache.webservices.fx.devel
Message-ID <OF64B9EEB2.E35F0170-ON65257515.00548617-65257515.00564FE9@tcs.com>
Hi,
I am new to both Sandesha and webservices l am trying to run sample from 
userGuide. I have put the RMSampleService.aar(Comes with binary 
distribution) to AXIS2_HOME/repository/services .Service is deployed with 
available operation showing sandesha engagement in browser.
                           I am using client as given in userguide through 
Eclipse.But server is not able to process the request.Following are the 
logs and other details.
If any other information required please let me know.
Please reply.Any help or direction is welcome.Thanks in advance.

Version- Axis2-1.4.1,,Sandesha2-1.3-

Tcpmon message trace
POST /axis2/services/RMSampleService HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence"
User-Agent: Axis2
Host: 127.0.0.1:8080
Transfer-Encoding: chunked

33a
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
         <wsa:To>http://localhost:8080/axis2/services/RMSampleService
</wsa:To>
         <wsa:ReplyTo>
            <wsa:Address>
http://172.31.25.131:8088/axis2/services/anonService2/</wsa:Address>
         </wsa:ReplyTo>
 <wsa:MessageID>urn:uuid:0243C749A2EED9839B1228402872048</wsa:MessageID>
         <wsa:Action>
http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</wsa:Action>
      </soapenv:Header>
      <soapenv:Body>
         <wsrm:CreateSequence xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm">
            <wsrm:AcksTo>
               <wsa:Address xmlns:wsa="
http://www.w3.org/2005/08/addressing">
http://172.31.25.131:8088/axis2/services/anonService2/</wsa:Address>
            </wsrm:AcksTo>
         </wsrm:CreateSequence>
      </soapenv:Body>
   </soapenv:Envelope>0

HTTP/1.1 202 Accepted
Date: Thu, 04 Dec 2008 15:01:44 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked

0


On Server side
</detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
2008-12-04 20:32:25,284 [HttpConnection-8088-21] INFO 
userguide.loggingmodule.LogHandler  - <?xml version='1.0' 
encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header xmlns:wsa="
http://www.w3.org/2005/08/addressing"><wsrm:SequenceFault xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm
"><wsrm:FaultCode>wsrm:CreateSequenceRefused</wsrm:FaultCode><wsrm:Detail>Could 
not send a CreateSequenceResponse message due to exception 
org.apache.axis2.AxisFault: Read timed out&#xd;
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)&#xd;
        at 
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)&#xd;
        at 
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)&#xd;
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)&#xd;
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)&#xd;
        at 
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)&#xd;
        at 
org.apache.sandesha2.msgprocessors.CreateSeqMsgProcessor.processInMessage(CreateSeqMsgProcessor.java:263)&#xd;
        at 
org.apache.sandesha2.msgreceivers.RMMessageReceiver.invokeBusinessLogic(RMMessageReceiver.java:92)&#xd;
        at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)&#xd;
        at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)&#xd;
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)&#xd;
        at 
org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:278)&#xd;
        at 
org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)&#xd;
        at 
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)&#xd;
        at 
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)&#xd;
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)&#xd;
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)&#xd;
        at java.lang.Thread.run(Thread.java:595)&#xd;
Caused by: java.net.SocketTimeoutException: Read timed out&#xd;
        at java.net.SocketInputStream.socketRead0(Native Method)&#xd;
        at 
java.net.SocketInputStream.read(SocketInputStream.java:129)&#xd;
        at 
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)&#xd;
        at 
java.io.BufferedInputStream.read(BufferedInputStream.java:235)&#xd;
        at 
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)&#xd;
        at 
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)&#xd;
        at 
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)&#xd;
        at 
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)&#xd;
        at 
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)&#xd;
        at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)&#xd;
        at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)&#xd;
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)&#xd;
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)&#xd;
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)&#xd;
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)&#xd;
        at 
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)&#xd;
        at 
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)&#xd;
        ... 16 more&#xd;
.</wsrm:Detail></wsrm:SequenceFault><wsa:To>
http://172.31.25.131:8088/axis2/services/anonService2/
</wsa:To><wsa:ReplyTo><wsa:Address>
http://www.w3.org/2005/08/addressing/none
</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:A134B86387576D40531228402945814</wsa:MessageID><wsa:Action>
http://www.w3.org/2005/08/addressing/fault
</wsa:Action><wsa:RelatesTo>urn:uuid:0243C749A2EED9839B1228402872048</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>Client</faultcode><faultstring></faultstring><detail>org.apache.axis2.AxisFault: 
Read timed out&#xd;
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)&#xd;
        at 
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)&#xd;
        at 
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)&#xd;
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)&#xd;
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)&#xd;
        at 
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)&#xd;
        at 
org.apache.sandesha2.msgprocessors.CreateSeqMsgProcessor.processInMessage(CreateSeqMsgProcessor.java:263)&#xd;
        at 
org.apache.sandesha2.msgreceivers.RMMessageReceiver.invokeBusinessLogic(RMMessageReceiver.java:92)&#xd;
        at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)&#xd;
        at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)&#xd;
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)&#xd;
        at 
org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:278)&#xd;
        at 
org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)&#xd;
        at 
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)&#xd;
        at 
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)&#xd;
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)&#xd;
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)&#xd;
        at java.lang.Thread.run(Thread.java:595)&#xd;
Caused by: java.net.SocketTimeoutException: Read timed out&#xd;
        at java.net.SocketInputStream.socketRead0(Native Method)&#xd;
        at 
java.net.SocketInputStream.read(SocketInputStream.java:129)&#xd;
        at 
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)&#xd;
        at 
java.io.BufferedInputStream.read(BufferedInputStream.java:235)&#xd;
        at 
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)&#xd;
        at 
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)&#xd;
        at 
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)&#xd;
        at 
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)&#xd;
        at 
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)&#xd;
        at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)&#xd;
        at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)&#xd;
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)&#xd;
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)&#xd;
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)&#xd;
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)&#xd;
        at 
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)&#xd;
        at 
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)&#xd;
        ... 16 more&#xd;
</detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
2008-12-04 20:32:25,284 [HttpConnection-8088-21] ERROR 
org.apache.sandesha2.util.FaultManager  - org.apache.axis2.AxisFault: 
2008-12-04 20:32:25,284 [HttpConnection-8088-19] WARN 
org.apache.axis2.addressing.AddressingFaultsHelper  - 
triggerActionNotSupportedFault: messageContext: [MessageContext: 
logID=urn:uuid:A134B86387576D40531228402945847] problemAction: 
http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse
2008-12-04 20:32:25,284 [HttpConnection-8088-19] ERROR 
org.apache.axis2.engine.AxisEngine  - The [action] cannot be processed at 
the receiver.
org.apache.axis2.AxisFault: The [action] cannot be processed at the 
receiver.
        at 
org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(AddressingFaultsHelper.java:373)
        at 
org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:336)
        at 
org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAction(AddressingValidationHandler.java:149)
        at 
org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(AddressingValidationHandler.java:55)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at 
org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:278)
        at 
org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
        at 
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
        at 
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

This is case for UserguideEchoClient,
        For UserguidePingClient , one response is coming for create 
sequence.Log is

POST /axis2/services/RMSampleService HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence"
User-Agent: Axis2
Host: 127.0.0.1:8080
Transfer-Encoding: chunked

2c6
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
         <wsa:To>http://localhost:8080/axis2/services/RMSampleService
</wsa:To>
 <wsa:MessageID>urn:uuid:E3B753491F96C24AFC1228405126714</wsa:MessageID>
         <wsa:Action>
http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</wsa:Action>
      </soapenv:Header>
      <soapenv:Body>
         <wsrm:CreateSequence xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm">
            <wsrm:AcksTo>
               <wsa:Address xmlns:wsa="
http://www.w3.org/2005/08/addressing">
http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
            </wsrm:AcksTo>
         </wsrm:CreateSequence>
      </soapenv:Body>
   </soapenv:Envelope>0

HTTP/1.1 200 OK
Date: Thu, 04 Dec 2008 15:38:50 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8

296
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
 <wsa:MessageID>urn:uuid:A134B86387576D40531228405130930</wsa:MessageID>
         <wsa:Action>
http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse
</wsa:Action>
 <wsa:RelatesTo>urn:uuid:E3B753491F96C24AFC1228405126714</wsa:RelatesTo>
      </soapenv:Header>
      <soapenv:Body>
         <wsrm:CreateSequenceResponse xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm">
 
<wsrm:Identifier>urn:uuid:A134B86387576D40531228405130882</wsrm:Identifier>
         </wsrm:CreateSequenceResponse>
      </soapenv:Body>
   </soapenv:Envelope>
0
POST /axis2/services/RMSampleService HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:wsrm:Ping"
User-Agent: Axis2
Host: 127.0.0.1:8080
Transfer-Encoding: chunked

339
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
         <wsa:To>http://localhost:8080/axis2/services/RMSampleService
</wsa:To>
         <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none
</wsa:Address>
         </wsa:ReplyTo>
 <wsa:MessageID>urn:uuid:E3B753491F96C24AFC1228405126554</wsa:MessageID>
         <wsa:Action>urn:wsrm:Ping</wsa:Action>
         <wsrm:Sequence xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm" soapenv:mustUnderstand="1">
 
<wsrm:Identifier>urn:uuid:A134B86387576D40531228405130882</wsrm:Identifier>
            <wsrm:MessageNumber>1</wsrm:MessageNumber>
         </wsrm:Sequence>
      </soapenv:Header>
      <soapenv:Body>
         <ns1:ping xmlns:ns1="http://tempuri.org/">
            <ns1:Text>ping1</ns1:Text>
         </ns1:ping>
      </soapenv:Body>
   </soapenv:Envelope>0

HTTP/1.1 200 OK
Date: Thu, 04 Dec 2008 15:38:57 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8

291
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
         <wsrm:SequenceAcknowledgement xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm" soapenv:mustUnderstand="1">
 
<wsrm:Identifier>urn:uuid:A134B86387576D40531228405130882</wsrm:Identifier>
            <wsrm:AcknowledgementRange Lower="1" Upper="3" />
         </wsrm:SequenceAcknowledgement>
 <wsa:MessageID>urn:uuid:A134B86387576D40531228405137611</wsa:MessageID>
         <wsa:Action>
http://schemas.xmlsoap.org/ws/2005/02/rm/SequenceAcknowledgement
</wsa:Action>
      </soapenv:Header>
      <soapenv:Body />
   </soapenv:Envelope>
0
POST /axis2/services/RMSampleService HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:wsrm:Ping"
User-Agent: Axis2
Host: 127.0.0.1:8080
Transfer-Encoding: chunked

339
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
         <wsa:To>http://localhost:8080/axis2/services/RMSampleService
</wsa:To>
         <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none
</wsa:Address>
         </wsa:ReplyTo>
 <wsa:MessageID>urn:uuid:E3B753491F96C24AFC1228405126859</wsa:MessageID>
         <wsa:Action>urn:wsrm:Ping</wsa:Action>
         <wsrm:Sequence xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm" soapenv:mustUnderstand="1">
 
<wsrm:Identifier>urn:uuid:A134B86387576D40531228405130882</wsrm:Identifier>
            <wsrm:MessageNumber>2</wsrm:MessageNumber>
         </wsrm:Sequence>
      </soapenv:Header>
      <soapenv:Body>
         <ns1:ping xmlns:ns1="http://tempuri.org/">
            <ns1:Text>ping2</ns1:Text>
         </ns1:ping>
      </soapenv:Body>
   </soapenv:Envelope>0

HTTP/1.1 200 OK
Date: Thu, 04 Dec 2008 15:38:57 GMT
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8

291
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
         <wsrm:SequenceAcknowledgement xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm" soapenv:mustUnderstand="1">
 
<wsrm:Identifier>urn:uuid:A134B86387576D40531228405130882</wsrm:Identifier>
            <wsrm:AcknowledgementRange Lower="1" Upper="3" />
         </wsrm:SequenceAcknowledgement>
 <wsa:MessageID>urn:uuid:A134B86387576D40531228405137613</wsa:MessageID>
         <wsa:Action>
http://schemas.xmlsoap.org/ws/2005/02/rm/SequenceAcknowledgement
</wsa:Action>
      </soapenv:Header>
      <soapenv:Body />
   </soapenv:Envelope>
0
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you