You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Helene Joanin (JIRA)" <ji...@apache.org> on 2006/09/27 17:51:23 UTC

[jira] Created: (SM-603) NullPointerException at org.apache.servicemix.jms.standard.StandardConsumerProcessor.doStart(StandardConsumerProcessor.java:51)

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

                 Key: SM-603
                 URL: https://issues.apache.org/activemq/browse/SM-603
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-jms
    Affects Versions: 3.0
         Environment: use of the service-jms with a "standard" processorName with the last ServiceMix version 3.0
            Reporter: Helene Joanin


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>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SM-603) NullPointerException at org.apache.servicemix.jms.standard.StandardConsumerProcessor.doStart(StandardConsumerProcessor.java:51)

Posted by "Helene Joanin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-603?page=comments#action_37064 ] 
            
Helene Joanin commented on SM-603:
----------------------------------

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


> NullPointerException at org.apache.servicemix.jms.standard.StandardConsumerProcessor.doStart(StandardConsumerProcessor.java:51)
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SM-603
>                 URL: https://issues.apache.org/activemq/browse/SM-603
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-jms
>    Affects Versions: 3.0
>         Environment: use of the service-jms with a "standard" processorName with the last ServiceMix version 3.0
>            Reporter: Helene Joanin
>         Assigned To: Guillaume Nodet
>             Fix For: 3.0.1, 3.1
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (SM-603) NullPointerException at org.apache.servicemix.jms.standard.StandardConsumerProcessor.doStart(StandardConsumerProcessor.java:51)

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-603?page=all ]

Guillaume Nodet resolved SM-603.
--------------------------------

    Fix Version/s: 3.0.1
                   3.1
       Resolution: Fixed
         Assignee: Guillaume Nodet

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


> NullPointerException at org.apache.servicemix.jms.standard.StandardConsumerProcessor.doStart(StandardConsumerProcessor.java:51)
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SM-603
>                 URL: https://issues.apache.org/activemq/browse/SM-603
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-jms
>    Affects Versions: 3.0
>         Environment: use of the service-jms with a "standard" processorName with the last ServiceMix version 3.0
>            Reporter: Helene Joanin
>         Assigned To: Guillaume Nodet
>             Fix For: 3.0.1, 3.1
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira