ServiceMix
  1. ServiceMix
  2. SM-603

NullPointerException at org.apache.servicemix.jms.standard.StandardConsumerProcessor.doStart(StandardConsumerProcessor.java:51)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0.1, 3.1
    • Component/s: servicemix-jms
    • Labels:
      None
    • Environment:

      use of the service-jms with a "standard" processorName with the last ServiceMix version 3.0

      Description

      Got
      NullPointerException at ....jms.standard.StandardConsumerProcessor.doStart(StandardConsumerProcessor.java:51)
      when using the service-jms with a "standard" processorName with the last ServiceMix version 3.0.
      It seems that the InitialContext ctx is not initialize in org.apache.servicemix.jms.standard.AbstractJmsProcessor.start().

      The complete stack-trace is:
      <stack-trace><![CDATA[java.lang.NullPointerException
      at org.apache.servicemix.jms.standard.StandardConsumerProcessor.doStart(StandardConsumerProcessor.java:51)
      at org.apache.servicemix.jms.AbstractJmsProcessor.start(AbstractJmsProcessor.java:77)
      at org.apache.servicemix.soap.SoapEndpoint.activate(SoapEndpoint.java:351)
      at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:50)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:149)
      at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:297)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDeploymentService.java:592)
      at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:595)
      ]]></stack-trace>

        Activity

        Hide
        Helene Joanin added a comment -

        Guillaume, Thanks for your commit. It fix this problem and my example works fine now with this fix.

        Show
        Helene Joanin added a comment - Guillaume, Thanks for your commit. It fix this problem and my example works fine now with this fix.
        Hide
        Guillaume Nodet added a comment -

        Author: gnodet
        Date: Fri Sep 29 01:37:33 2006
        New Revision: 451164

        URL: http://svn.apache.org/viewvc?view=rev&rev=451164
        Log:
        SM-603: NPE in StandardConsumerProcessor

        Added:
        incubator/servicemix/trunk/servicemix-jms/src/test/java/org/apache/servicemix/jms/JmsStandardTest.java
        Modified:
        incubator/servicemix/trunk/servicemix-jms/src/main/java/org/apache/servicemix/jms/AbstractJmsProcessor.java
        incubator/servicemix/trunk/servicemix-jms/src/main/java/org/apache/servicemix/jms/jca/JcaProviderProcessor.java
        incubator/servicemix/trunk/servicemix-jms/src/test/resources/jndi.properties

        Author: gnodet
        Date: Fri Sep 29 01:37:33 2006
        New Revision: 451163

        URL: http://svn.apache.org/viewvc?view=rev&rev=451163
        Log:
        SM-603: NPE in StandardConsumerProcessor

        Added:
        incubator/servicemix/branches/servicemix-3.0/servicemix-jms/src/test/java/org/apache/servicemix/jms/JmsStandardTest.java
        Modified:
        incubator/servicemix/branches/servicemix-3.0/servicemix-jms/src/main/java/org/apache/servicemix/jms/AbstractJmsProcessor.java
        incubator/servicemix/branches/servicemix-3.0/servicemix-jms/src/main/java/org/apache/servicemix/jms/jca/JcaProviderProcessor.java
        incubator/servicemix/branches/servicemix-3.0/servicemix-jms/src/test/resources/jndi.properties

        Show
        Guillaume Nodet added a comment - Author: gnodet Date: Fri Sep 29 01:37:33 2006 New Revision: 451164 URL: http://svn.apache.org/viewvc?view=rev&rev=451164 Log: SM-603 : NPE in StandardConsumerProcessor Added: incubator/servicemix/trunk/servicemix-jms/src/test/java/org/apache/servicemix/jms/JmsStandardTest.java Modified: incubator/servicemix/trunk/servicemix-jms/src/main/java/org/apache/servicemix/jms/AbstractJmsProcessor.java incubator/servicemix/trunk/servicemix-jms/src/main/java/org/apache/servicemix/jms/jca/JcaProviderProcessor.java incubator/servicemix/trunk/servicemix-jms/src/test/resources/jndi.properties Author: gnodet Date: Fri Sep 29 01:37:33 2006 New Revision: 451163 URL: http://svn.apache.org/viewvc?view=rev&rev=451163 Log: SM-603 : NPE in StandardConsumerProcessor Added: incubator/servicemix/branches/servicemix-3.0/servicemix-jms/src/test/java/org/apache/servicemix/jms/JmsStandardTest.java Modified: incubator/servicemix/branches/servicemix-3.0/servicemix-jms/src/main/java/org/apache/servicemix/jms/AbstractJmsProcessor.java incubator/servicemix/branches/servicemix-3.0/servicemix-jms/src/main/java/org/apache/servicemix/jms/jca/JcaProviderProcessor.java incubator/servicemix/branches/servicemix-3.0/servicemix-jms/src/test/resources/jndi.properties

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Helene Joanin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development