Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-716

NullPointerException when binding message parts to SOAP header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.3
    • 1.3.8, 1.4
    • Axis2 Integration
    • None
    • ODE1.3.3, jdk6, tomcat-5.5.28

    Description

      When sending a message to a modified hello_world example, where a SOAP header element is mapped to a message part, I get the following exception:

      DEBUG - GeronimoLog.debug(66) | The system is checking for the operation using the following WSAAction:
      DEBUG - GeronimoLog.debug(66) | Checking for Operation using SOAP message body's first child's local name : hello
      DEBUG - GeronimoLog.debug(66) | Found operation org.apache.axis2.description.InOutAxisOperation@441371
      DEBUG - GeronimoLog.debug(66) | Received request message for hello_world_header_wsdl.

      {http://www.example.org/bpel/examples/wsdl}

      hello
      DEBUG - GeronimoLog.debug(66) | Starting transaction.
      DEBUG - GeronimoLog.debug(66) | Routed: svcQname

      {http://www.example.org/bpel/examples/wsdl}

      HelloService --> [BpelProcess[

      {http://www.example.org/bpel/examples}

      HelloWorldHeaderWSDL-4]]
      DEBUG - GeronimoLog.debug(66) | ODE routed to operation Operation: name=hello
      style=REQUEST_RESPONSE,1
      Input: name=TestIn
      Message: name=

      {http://www.example.org/bpel/examples/wsdl}

      HelloMessage
      Part: name=TestPart
      typeName=

      {http://www.w3.org/2001/XMLSchema}

      string
      Part: name=conversationId
      elementName=

      {http://www.example.org/cid}

      conversationId
      Output: name=TestOut
      Message: name=

      {http://www.example.org/bpel/examples/wsdl}

      HelloMessage
      Part: name=TestPart
      typeName=

      {http://www.w3.org/2001/XMLSchema}

      string
      Part: name=conversationId
      elementName=

      {http://www.example.org/cid}

      conversationId from service

      {http://www.example.org/bpel/examples/wsdl}

      HelloService
      DEBUG - GeronimoLog.debug(66) | SET MEX property isTwoWay = true
      ERROR - GeronimoLog.error(108) | Exception occured while invoking ODE
      java.lang.NullPointerException
      at org.apache.ode.axis2.util.SoapMessageConverter.findHeaderPartName(SoapMessageConverter.java:457)
      at org.apache.ode.axis2.util.SoapMessageConverter.extractSoapHeaderParts(SoapMessageConverter.java:419)
      at org.apache.ode.axis2.util.SoapMessageConverter.parseSoapRequest(SoapMessageConverter.java:323)
      at org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:121)
      at org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:69)
      at org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:52)
      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.processHTTPPostRequest(HTTPTransportUtils.java:275)
      at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:619)
      DEBUG - GeronimoLog.debug(66) | Releasing mex hqejbhcnphr4sm2l43gdta
      I

      Attachments

        1. HelloWorldHeaderWSDL.zip
          3 kB
          Gary Brown

        Activity

          People

            sathwik Sathwik
            objectiser Gary Brown
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: