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 Philippe Camus <Ph...@imail.org> on 2008/12/08 22:36:08 UTC
NullPointerException with Weblogic 10.0.1
Hi all,
I have deployed an Axis1.4.1 web service on weblogic 10.0.1 (Platform 10.2). The same web service running on Axis embedded HTTP server works fine, but in weblogic I get the following error:
[ERROR]
org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.ihc.MoxieLabService.MoxieLabServiceHttpBindingQSServiceMessageReceiverInOut.invokeBusinessLogic(MoxieLabServiceHttpBindingQSServiceMess
ageReceiverInOut.java:101)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: java.lang.NullPointerException
at org.ihc.MoxieLabService.MoxieLabServiceHttpBindingQSServiceMessageReceiverInOut.toEnvelope(MoxieLabServiceHttpBindingQSServiceMessageReceiv
erInOut.java:195)
at org.ihc.MoxieLabService.MoxieLabServiceHttpBindingQSServiceMessageReceiverInOut.invokeBusinessLogic(MoxieLabServiceHttpBindingQSServiceMess
ageReceiverInOut.java:54)
... 19 more
The line it refers to (195) in the toEnvelope method is:
emptyEnvelope.getBody().addChild(param.getOMElement(org.ihc.MoxieLabService.GetLabDataByIdResponse.MY_QNAME,factory));
I have a weblogic.xml:
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
Otherwise axis2 is copied in the auto-deploy directory. Any idea how I should proceed to debug this? Thanks!
Best regards,
Philippe