axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Afkham Azeez" <afk...@gmail.com>
Subject Re: [axis2] NPE on OMElement.build
Date Sun, 27 Jan 2008 17:24:04 GMT
Can you set an Exception break point for NullPointerException, run your code
in debug mode, and find out where exactly the NPE is occurring?

Azeez

On Sun, Jan 27, 2008 at 9:31 PM, Michele Mazzucco <
Michele.Mazzucco@ncl.ac.uk> 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.invokeBusinessLogi
> c(RawXMLINOutMessageReceiver.java:108)
>        at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusine
> 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.processHTTPPostReques
> 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.invokeBusinessLogi
> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thanks
Afkham Azeez

http://azeez78.blogspot.com
http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760

Mime
View raw message