WAS 7.0 NullPointerException when no soap header - Websphere

This is a discussion on WAS 7.0 NullPointerException when no soap header - Websphere ; I have an explicit SOAP header in my WSDL. Without soap header or nothing in soap header element, when sending a web service request to WAS 7.0.0.3 (Linux version), WAS throws NullpointerException. Does anyone know why it's happening? Below shows ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: WAS 7.0 NullPointerException when no soap header

  1. WAS 7.0 NullPointerException when no soap header

    I have an explicit SOAP header in my WSDL. Without soap header or nothing in soap header element, when sending a web service request to WAS 7.0.0.3 (Linux version), WAS throws NullpointerException. Does anyone know why it's happening? Below shows error I got:

    FFDC Exceptionrg.apache.axis2.AxisFault SourceId:com.ibm.ws.websvcs.transport.http.WASAxis 2Servlet.doPost ProbeId:516 Reporter:com.ibm.ws.websvcs.transport.http.WASAxis 2Servlet@59185918
    org.apache.axis2.AxisFault: java.lang.NullPointerException
    at org.apache.axis2.AxisFault.makeFault(AxisFault.jav a:430)
    at org.apache.axis2.jaxws.server.JAXWSMessageReceiver .receive(JAXWSMessageReceiver.java:218)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEng ine.java:182)
    at org.apache.axis2.transport.http.HTTPTransportUtils .processHTTPPostRequest(HTTPTransportUtils.java:27 5)
    at com.ibm.ws.websvcs.transport.http.WASAxis2Servlet. doPost(WASAxis2Servlet.java:1330)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:738)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1443)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:790)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:443)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl .handleRequest(ServletWrapperImpl.java:175)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleReques t(WebApp.java:3610)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequ est(WebGroup.java:274)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:926)
    at com.ibm.ws.webcontainer.WSWebContainer.handleReque st(WSWebContainer.java:1557)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:173)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:455)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:384)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.ready(HttpInboundLink.java:272)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.sendToDiscriminators(NewConnectionIniti alReadCallback.java:214)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.complete(NewConnectionInitialReadCallba ck.java:113)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java:557)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java:607)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java:984)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java:1069)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1527)
    Caused by: javax.xml.ws.WebServiceException: java.lang.NullPointerException
    at org.apache.axis2.jaxws.ExceptionFactory.createWebS erviceException(ExceptionFactory.java:175)
    at org.apache.axis2.jaxws.ExceptionFactory.makeWebSer viceException(ExceptionFactory.java:70)
    at org.apache.axis2.jaxws.ExceptionFactory.makeWebSer viceException(ExceptionFactory.java:128)
    at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitB areMethodMarshaller.demarshalRequest(DocLitBareMet hodMarshaller.java:195)
    at org.apache.axis2.jaxws.server.dispatcher.JavaBeanD ispatcher.createRequestParameters(JavaBeanDispatch er.java:273)
    at org.apache.axis2.jaxws.server.dispatcher.JavaBeanD ispatcher.invoke(JavaBeanDispatcher.java:80)
    at org.apache.axis2.jaxws.server.EndpointController.i nvoke(EndpointController.java:108)
    at org.apache.axis2.jaxws.server.JAXWSMessageReceiver .receive(JAXWSMessageReceiver.java:159)
    ... 24 more
    Caused by: java.lang.NullPointerException
    at org.apache.axis2.jaxws.marshaller.impl.alt.MethodM arshallerUtils.getPDElements(MethodMarshallerUtils .java:334)
    at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitB areMethodMarshaller.demarshalRequest(DocLitBareMet hodMarshaller.java:183)
    ... 28 more

  2. Re: WAS 7.0 NullPointerException when no soap header

    TheEightScreen,

    It's tough to diagnose this kind of issues with just a stack trace. Please open a PMR with IBM support [1]

    thanks,
    dims

    [1] http://www.ibm.com/developerworks/we...ort.html#step6

+ Reply to Thread