You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Grange, John" <Jo...@uk.thalesgroup.com> on 2008/09/08 15:11:21 UTC

NPE when invoking axis2 service

Hi,

I've set up an axis2 service (version 1.4.1) and all appears to be assembled
fine, but, unfortunately, whenever I try to run the service (using soapUI
2.0.2) I get the following exception:

08-Sep-2008 14:05:16 org.apache.axis2.transport.http.AxisServlet doPost
SEVERE: null
java.lang.NullPointerException
        at
org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:12
2)
        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(HT
TPTransportUtils.java:275)
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128
)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:595)

I did see a post that a fix had been put in for this, but when I tried a
build against snapshots, the Axis2 servlet class couldn't be found :-(

Anybody got any ideas?

_______________________________________________________
John Grange
Senior Software Engineer
Thales Land & Joint Systems

Wookey Hole Road			Tel:  +44(0)1749 682589
Wells					Fax:  +44(0)1749 682339
Somerset BA5 1AA
UK
_______________________________________________________



Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
is confidential. It may also be legally privileged. It is intended only for
the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. We may monitor all
e-mail communications through our networks. If you have received this e-mail
in error, please inform us immediately on +44 (0) 1749 672081 and delete it
and all copies from your system. We accept no responsibility for changes to
any e-mail which occur after it has been sent.  Attachments to this e-mail
may contain software viruses which could damage your system.  We therefore
recommend you virus-check all attachments before opening. A business of
Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
868273

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: NPE when invoking axis2 service

Posted by Deepal jayasinghe <de...@gmail.com>.
Hi Grange
Could you please send us the HTTP headers of your request , I think
there has to be some problem with that.

-Deepal
> Hi,
>
> I've set up an axis2 service (version 1.4.1) and all appears to be assembled
> fine, but, unfortunately, whenever I try to run the service (using soapUI
> 2.0.2) I get the following exception:
>
> 08-Sep-2008 14:05:16 org.apache.axis2.transport.http.AxisServlet doPost
> SEVERE: null
> java.lang.NullPointerException
>         at
> org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:12
> 2)
>         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(HT
> TPTransportUtils.java:275)
>         at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:290)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:206)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:233)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128
> )
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
> )
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :109)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
> 11Protocol.java:583)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>         at java.lang.Thread.run(Thread.java:595)
>
> I did see a post that a fix had been put in for this, but when I tried a
> build against snapshots, the Axis2 servlet class couldn't be found :-(
>
> Anybody got any ideas?
>
> _______________________________________________________
> John Grange
> Senior Software Engineer
> Thales Land & Joint Systems
>
> Wookey Hole Road			Tel:  +44(0)1749 682589
> Wells					Fax:  +44(0)1749 682339
> Somerset BA5 1AA
> UK
> _______________________________________________________
>
>
>
> Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
> is confidential. It may also be legally privileged. It is intended only for
> the stated addressee(s) and access to it by any other person is
> unauthorised. If you are not an addressee, you must not disclose, copy,
> circulate or in any other way use or rely on the information contained in
> this e-mail. Such unauthorised use may be unlawful. We may monitor all
> e-mail communications through our networks. If you have received this e-mail
> in error, please inform us immediately on +44 (0) 1749 672081 and delete it
> and all copies from your system. We accept no responsibility for changes to
> any e-mail which occur after it has been sent.  Attachments to this e-mail
> may contain software viruses which could damage your system.  We therefore
> recommend you virus-check all attachments before opening. A business of
> Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
> Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
> 868273
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org