You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2013/02/22 11:22:12 UTC

[jira] [Updated] (SM-2136) NullPointerException at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:111)

     [ https://issues.apache.org/jira/browse/SM-2136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen updated SM-2136:
--------------------------------

    Fix Version/s: 3.4.2
    
> NullPointerException at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:111)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SM-2136
>                 URL: https://issues.apache.org/jira/browse/SM-2136
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-core
>    Affects Versions: 3.3.2
>            Reporter: Nickolay Martinov
>             Fix For: 3.4.2
>
>
> Container restores state of components/SAs in background during start while already accepting administrative connections. If command is received to shutdown one of the SAs (for example to reload configuration) and that SA wasnt yet started then when it comes to start this SA in main loop this fails with NPE and container startup sequence terminates leaving it in inconsistent state.
> Instead administrative connections should be disabled or main startup loop should be updated to expect that list that was created at first moment of container startup might be outdated.
> 2011-12-06 01:46:24,932 INFO  [main] org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle  - Starting service assembly: test-mvp-temip-publisher-sa
> 2011-12-06 01:46:24,932 INFO  [main] org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle  - Starting service unit: test-mvp-temip-publisher-su
> 2011-12-06 01:46:26,264 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle  - Shutting down service assembly: uca-temip-mvp-sa
> 2011-12-06 01:46:26,267 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle  - Stopping service assembly: uca-temip-mvp-sa
> 2011-12-06 01:46:26,307 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle  - Shutting down service unit: uca-temip-mvp-utaf-bc-su
> 2011-12-06 01:46:26,403 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle  - Shutting down service unit: uca-temip-mvp-bc-router-su
> 2011-12-06 01:46:26,486 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle  - Shutting down service unit: uca-temip-mvp-utaf-bc-jms-connector-su
> 2011-12-06 01:46:26,511 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle  - Shutting down service unit: uca-temip-mvp-actions-to-temip-jms-connector-camel-su
> 2011-12-06 01:46:26,565 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle  - Shutting down service unit: uca-temip-mvp-alarms-from-temip-jms-connector-su
> 2011-12-06 01:46:26,629 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.xbean.spring.context.FileSystemXmlApplicationContext  - Closing org.apache.xbean.spring.context.FileSystemXmlApplicationContext@38bbd7: display name [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@38bbd7]; startup date [Tue Dec 06 01:46:03 MSK 2011]; root of context hierarchy
> 2011-12-06 01:46:26,631 INFO  [RMI TCP Connection(4)-16.53.146.132] org.springframework.beans.factory.support.DefaultListableBeanFactory  - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@11510e4: defining beans [com.hp.uca.mediation.vp.temip.UtafProviderEndpoint#0,com.hp.uca.mediation.vp.temip.UtafProviderEndpoint#1]; parent: org.apache.servicemix.common.xbean.SimpleBeanFactory@7958ef
> 2011-12-06 01:46:26,676 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.servicemix.jbi.framework.DeploymentService  - UnDeployed ServiceUnit uca-temip-mvp-utaf-bc-su from Component: uca-temip-mvp-utaf-bc
> 2011-12-06 01:46:26,678 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.xbean.spring.context.FileSystemXmlApplicationContext  - Closing org.apache.xbean.spring.context.FileSystemXmlApplicationContext@d30e33: display name [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@d30e33]; startup date [Tue Dec 06 01:46:04 MSK 2011]; root of context hierarchy
> 2011-12-06 01:46:26,720 INFO  [RMI TCP Connection(4)-16.53.146.132] org.springframework.beans.factory.support.DefaultListableBeanFactory  - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6c29e9: defining beans [com.hp.temip.openmediation.bcrouter.BCRouterEndpoint#0]; parent: org.apache.servicemix.common.xbean.SimpleBeanFactory@fb09ba
> 2011-12-06 01:46:26,724 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.servicemix.jbi.framework.DeploymentService  - UnDeployed ServiceUnit uca-temip-mvp-bc-router-su from Component: bc-router-se
> 2011-12-06 01:46:26,733 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.xbean.spring.context.FileSystemXmlApplicationContext  - Closing org.apache.xbean.spring.context.FileSystemXmlApplicationContext@fe09a1: display name [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@fe09a1]; startup date [Tue Dec 06 01:46:04 MSK 2011]; root of context hierarchy
> 2011-12-06 01:46:26,735 INFO  [RMI TCP Connection(4)-16.53.146.132] org.springframework.beans.factory.support.DefaultListableBeanFactory  - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@93f40f: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,activemq-nom,saxon,setNOMOriginalProviderHost,transformRequests,transformReplies,template,consumerTemplate,camelContext:beanPostProcessor,camelContext]; parent: org.apache.servicemix.common.xbean.SimpleBeanFactory@26cbf4
> 2011-12-06 01:46:26,745 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.camel.impl.DefaultCamelContext  - Apache Camel 2.2.0 (CamelContext:camelContext) is stopping
> 2011-12-06 01:46:26,745 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.camel.impl.DefaultShutdownStrategy  - Starting to graceful shutdown routes (timeout 300 seconds)
> 2011-12-06 01:46:26,792 INFO  [Camel thread 3: ShutdownTask] org.apache.camel.impl.DefaultShutdownStrategy  - Route: temip-ca-utaf-bc-jms-connector suspended and shutdown deferred.
> 2011-12-06 01:46:26,779 INFO  [AsyncDeployer for init test-mvp-temip-publisher-su] com.hp.temip.openmediation.publisher.doaction.DoActionReplyAdapterEndpoint  - DoActionReplyAdapter started.
> 2011-12-06 01:46:26,801 INFO  [main] org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle  - Starting service assembly: test-mvp-alarms-from-temip-sa
> 2011-12-06 01:46:26,802 INFO  [main] org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle  - Starting service unit: test-mvp-alarms-from-temip-camel-su
> 2011-12-06 01:46:27,262 INFO  [Camel thread 3: ShutdownTask] org.apache.camel.impl.DefaultShutdownStrategy  - Route: temip-ca-utaf-bc-jms-connector shutdown complete.
> 2011-12-06 01:46:27,262 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.camel.impl.DefaultShutdownStrategy  - Graceful shutdown of routes completed in 0 seconds
> 2011-12-06 01:46:27,267 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.camel.impl.DefaultInflightRepository  - Shutting down with no inflight exchanges.
> 2011-12-06 01:46:27,268 INFO  [RMI TCP Connection(4)-16.53.146.132] org.apache.camel.impl.DefaultCamelContext  - Apache Camel 2.2.0 (CamelContext:camelContext) stopped
> 2011-12-06 01:46:27,285 INFO  [AsyncDeployer for init test-mvp-alarms-from-temip-camel-su] org.apache.camel.impl.DefaultCamelContext  - Started 1 routes
> 2011-12-06 01:46:27,285 INFO  [AsyncDeployer for init test-mvp-alarms-from-temip-camel-su] org.apache.camel.impl.DefaultCamelContext  - Apache Camel 2.2.0 (CamelContext:camelContext) started
> 2011-12-06 01:46:27,296 INFO  [main] org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle  - Starting service assembly: temip-ca-actions-from-temip-sa
> 2011-12-06 01:46:27,296 INFO  [main] org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle  - Starting service unit: temip-ca-actions-from-temip-camel-su
> 2011-12-06 01:46:27,317 INFO  [AsyncDeployer for init temip-ca-actions-from-temip-camel-su] org.apache.camel.impl.DefaultCamelContext  - Started 1 routes
> 2011-12-06 01:46:27,317 INFO  [AsyncDeployer for init temip-ca-actions-from-temip-camel-su] org.apache.camel.impl.DefaultCamelContext  - Apache Camel 2.2.0 (CamelContext:camelContext) started
> 2011-12-06 01:46:27,323 ERROR [main] org.apache.servicemix.jbi.framework.DeploymentService  - Unable to restore state for service assembly uca-temip-mvp-sa
> java.lang.NullPointerException
> 	at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:111)
> 	at org.apache.servicemix.jbi.container.JBIContainer.start(JBIContainer.java:691)
> 	at org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:117)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
> 	at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
> 	at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
> 	at org.apache.servicemix.Main.main(Main.java:53)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:353)
> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:264)
> 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira