On 27 Jan 2008, at 17:24, Upul Godage wrote:

May be there weren't any payload (any content in the SOAP Body) in the request message.

It's not possible. On the sender side I have

if (payload == null) {
        log and throw exception
}

send request


Before the request hits the target WS there's a handler which "plays" with the SOAP header (so the SOAP header is not null). Since on the sender side I was using the AUTO_RELEASE_CONNECTION property, is it possible that the connection is closed *before* the SOAP body is sent?


Michele

  You can check with the tcp monitor. Just a guess.

Upul


On Jan 27, 2008 9:31 PM, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
Hi all,

I'm getting the following NPE

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:wsa="http://www.w3.org/2005/08/
addressing"><soapenv:Header><wsa:To>http://giga25.ncl.ac.uk:8081/
axis2/services/StreamRoutingService</
wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/
none</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:
8FD04872177CD5B0B51201449279062</wsa:MessageID><wsa:Action>http://
www.w3.org/2005/08/addressing/soap/fault</
wsa:Action><wsa:RelatesTo>urn:uuid:AA63B875CD706216A51201449279307</
wsa:RelatesTo></
soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server< /f
aultcode><faultstring>unknown</
faultstring><detail><Exception>org.apache.axis2.AxisFault
       at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
       at org.apache.axis2.AxisFault.makeFault(AxisFault.java:406)
       at
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLo gi
c(RawXMLINOutMessageReceiver.java:108)
       at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusi ne
ssLogic(AbstractInOutSyncMessageReceiver.java:42)
       at org.apache.axis2.receivers.AbstractMessageReceiver.receive
(AbstractMessageReceiver.java:96)
at org.apache.axis2.engine.AxisEngine.receive (AxisEngine.java:145)
       at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequ es
t(HTTPTransportUtils.java:275)
       at org.apache.axis2.transport.http.AxisServlet.doPost
(AxisServlet.java:120)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
       at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java: 664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run
(ThreadPool.java:684)
       at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at ncl.qosp.test.functional.services.Service1.test (Service1.java:24)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLo gi
c(RawXMLINOutMessageReceiver.java:97)
       ... 21 more
</Exception></detail></soapenv:Fault></soapenv:Body></ soapenv:Envelope>


where line 24 the target method is highlighted below.


   public OMElement test(OMElement payload) {
        payload.build(); // <--------------------- line 24

        final long spinLockLenght = ServiceSupport.getSpinLockLength
(payload);
        ServiceSupport.spinLock(spinLockLenght);

        return ServiceSupport.getResult(Service1.class.getSimpleName
());
    }


How's that possible?


Michele

---------------------------------------------------------------------
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]

Reply via email to