|
Hi, I am testing our company’s web services intermediary
(called Network Director) for the RM capability using Sandesha’s sample implementation of RM client and RM
provider. When I run the Sandesha’s AsyncPingClient ‘Against the Sandehsa’s RMSampleService
(deployed on Tomcat), I see the correct http ok response when using TCPmon Between client and the server. However, when using the
Network Director in the middle, I get the an NPE from Sandesha. I captured the message in the tcpmon that is being sent from
Networkdirector to the Sandesha’s sample service and sent it using curl
and Got the same NPE (see attched message): <?xml version="1.0"
encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://sc hemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" x mlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Faul t><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.Null PointerException</faultstring><detail><ns1:stackTrace
xmlns:ns1="http://xml.apac he.org/axis/">java.lang.NullPointerException at
org.apache.sandesha.server.msgprocessors.AcknowledgementProcessor.sen dAcknowledgement(AcknowledgementProcessor.java:97) at
org.apache.sandesha.server.msgprocessors.CompositeProcessor.processMe ssage(CompositeProcessor.java:105) at
org.apache.sandesha.ws.rm.providers.RMProvider.processMessage(RMProvi der.java:120) at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java: 323) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg y.java:32) at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453 ) at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:69 9) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas e.java:327) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:237) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:157) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:214) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at
org.apache.catalina.core.StandardContextValve.invokeInternal(Standard ContextValve.java:198) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:152) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:137) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :799) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ssConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :577) at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) Am also attaching the message that works and if I change the
sequence Identifier in the asyncTest.xml with the one in asyncTest_work.xml,
the asyncTest.xml message also works! I can’t explain why
Sandesha is throwing NPE as it generated the CreateSequenceResponse correctly
and the message being sent is using the sequence ID returned by Sandesha. I think
it is a bug in Sandesha. Have you seen anything like this before? Also, the source and the binary version I am using don’t
seem to match. How can I get the latest binary version that is not released yet
that may have the fix for this problem? Thanks very much for your reply! This problem is currently a
road blocker for us. Sadhana |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <soapenv:Header> <wsa:MessageID soapenv:mustUnderstand="1">uuid:ea047850-4cd8-11db-aaba-b243a9b40e3c</wsa:MessageID> <wsa:Action soapenv:mustUnderstand="1">http://sfbt047:8090/bt/services/RMSampleService/RMSampleService/pingRequest</wsa:Action> <wsa:ReplyTo> <wsa:Address>http://localhost:7005/Router/dispatch/callback</wsa:Address> </wsa:ReplyTo> <BlueTitanNS1:Sequence xmlns:BlueTitanNS1="http://schemas.xmlsoap.org/ws/2005/02/rm"> <BlueTitanNS1:Identifier>uuid:ec87c7d0-4cd8-11db-94e7-9f373712a0d3</BlueTitanNS1:Identifier> <BlueTitanNS1:MessageNumber>1</BlueTitanNS1:MessageNumber> </BlueTitanNS1:Sequence> <wsa:To>http://sfbt047:8092/bt/services/RMSampleService</wsa:To> </soapenv:Header> <soapenv:Body> <ns1:ping soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://samples.sandesha.apache.org"> <arg1 xsi:type="xsd:string">Ping Message Number One</arg1> </ns1:ping> </soapenv:Body></soapenv:Envelope>
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <soapenv:Header> <wsa:MessageID soapenv:mustUnderstand="1">uuid:3a82e7a0-4a9d-11db-b11b-b32f8f5fbf5b</wsa:MessageID> <wsa:To soapenv:mustUnderstand="1">http://sfbt047:8092/bt/services/RMSampleService</wsa:To> <wsa:Action soapenv:mustUnderstand="1">http://sfbt047:8090/bt/services/RMSampleService/RMSampleService/pingRequest</wsa:Action> <wsa:From soapenv:mustUnderstand="1"> <wsa:Address>http://192.168.3.7:9090/axis/services/RMService</wsa:Address> </wsa:From> <wsa:ReplyTo soapenv:mustUnderstand="1"> <wsa:Address>http://sfbt047:9070/axis/services/RMService</wsa:Address> </wsa:ReplyTo> <wsrm:Sequence soapenv:mustUnderstand="1" xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"> <wsrm:Identifier>uuid:3b9f0600-4a9d-11db-8845-e099863eefb8</wsrm:Identifier> <wsrm:MessageNumber>1</wsrm:MessageNumber> </wsrm:Sequence> </soapenv:Header> <soapenv:Body> <ns1:ping soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://samples.sandesha.apache.org"> <arg1 xsi:type="xsd:string">Ping Message Number One</arg1> </ns1:ping> </soapenv:Body> </soapenv:Envelope>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
