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

NPE in org.apache.ode.jbi.msgmap.ServiceMixMapper.isRecognized method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.3.5
    • None
    • JBI Integration
    • None
    • Ubuntu 11.04 64bit, Oracle JDK 1.6 64bit, Servicemix 4.3.0

    Description

      It seems that BaseXmlMapper.parse(NormalizedMessage.getContent()) returns null and throws NPE while recognizing message in ServiceMixMapper.java:91 . If you enable debug, it throws NPE on ServiceMixMapper.java:276 while executing org.apache.ode.jbi.msgmap.ServiceMixMapper.prettyPrint on Element msg which proves that parse() method returns null.

      Debug and traces ....

      09:44:43,865 | DEBUG | pool-10-thread-7 | NMR | 83 - org.apache.servicemix.nmr.core - 1.4.0 | Channel org.apache.servicemix.nmr.core.ChannelImpl@1c5146e delivering exchange: [
      id: fa406462-df61-45ea-8030-242abe5113cf
      mep: InOut
      status: Error
      role: Provider
      target: PropertyMatchingReference[{ENDPOINT_NAME=esdp-wsPort, SERVICE_NAME=

      {http://ws.esdp.ericsson.com}

      EsdpWsService}]
      operation:

      {http://ws.esdp.ericsson.com}

      subscriberMsisdnChange
      properties: [
      javax.jbi.servicedesc.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.EndpointImpl@35c7be
      org.apache.servicemix.senderEndpoint =

      {http://ws.esdp.ericsson.com}

      EsdpWsService:esdp-wsPort
      javax.jbi.messaging.MessageExchange = org.apache.servicemix.jbi.runtime.impl.InOutImpl@873b5a
      javax.jbi.messaging.sendSync = <null>
      javax.jbi.InterfaceName = <null>
      javax.jbi.transaction.jta = <null>
      javax.jbi.ServiceEndpoint = org.apache.servicemix.jbi.runtime.impl.ServiceEndpointImpl@499823
      org.apache.servicemix.correlationId = fa406462-df61-45ea-8030-242abe5113cf
      javax.jbi.ServiceName =

      {http://ws.esdp.ericsson.com}

      EsdpWsService
      ]
      error: [
      java.lang.NullPointerException
      at org.apache.ode.utils.DOMUtils.prettyPrint(DOMUtils.java:127)
      at org.apache.ode.jbi.msgmap.ServiceMixMapper.prettyPrint(ServiceMixMapper.java:276)
      at org.apache.ode.jbi.msgmap.ServiceMixMapper.isRecognized(ServiceMixMapper.java:63)
      at org.apache.ode.jbi.OdeContext.findMapper(OdeContext.java:257)
      at org.apache.ode.jbi.OdeService.invokeOde(OdeService.java:272)
      at org.apache.ode.jbi.OdeService.onJbiMessageExchange(OdeService.java:161)
      at org.apache.ode.jbi.JbiMessageExchangeEventRouter.onJbiMessageExchange(JbiMessageExchangeEventRouter.java:67)
      at org.apache.ode.jbi.Receiver$1.run(Receiver.java:179)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      ]
      ]

      09:50:15,977 | ERROR | pool-10-thread-2 | OdeService | 212 - org.apache.ode.ode-jbi-bundle - 1.3.5 | Error invoking ODE.
      java.lang.NullPointerException
      at org.apache.ode.jbi.msgmap.ServiceMixMapper.isRecognized(ServiceMixMapper.java:91)[212:org.apache.ode.ode-jbi-bundle:1.3.5]
      at org.apache.ode.jbi.OdeContext.findMapper(OdeContext.java:257)[212:org.apache.ode.ode-jbi-bundle:1.3.5]
      at org.apache.ode.jbi.OdeService.invokeOde(OdeService.java:272)[212:org.apache.ode.ode-jbi-bundle:1.3.5]
      at org.apache.ode.jbi.OdeService.onJbiMessageExchange(OdeService.java:161)[212:org.apache.ode.ode-jbi-bundle:1.3.5]
      at org.apache.ode.jbi.JbiMessageExchangeEventRouter.onJbiMessageExchange(JbiMessageExchangeEventRouter.java:67)[212:org.apache.ode.ode-jbi-bundle:1.3.5]
      at org.apache.ode.jbi.Receiver$1.run(Receiver.java:179)[212:org.apache.ode.ode-jbi-bundle:1.3.5]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_27]
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_27]
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_27]
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_27]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_27]
      at java.lang.Thread.run(Thread.java:662)[:1.6.0_27]

      Attachments

        Activity

          People

            Unassigned Unassigned
            abdulkadiryaman Abdulkadir Yaman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: