java.lang.IllegalStateException

Can only register services while bundle is active or activating.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web24

Stack trace

  • java.lang.IllegalStateException: Can only register services while bundle is active or activating. at org.apache.felix.framework.Felix.registerService(Felix.java:2821)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:] at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:] at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:] at org.apache.camel.core.osgi.OsgiCamelContextPublisher.notify(OsgiCamelContextPublisher.java:62)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-27] at org.apache.camel.util.EventHelper.doNotifyEvent(EventHelper.java:580)[76:org.apache.camel.camel-core:2.7.1.fuse-00-27] at org.apache.camel.util.EventHelper.notifyCamelContextStarted(EventHelper.java:87)[76:org.apache.camel.camel-core:2.7.1.fuse-00-27] at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1330)[76:org.apache.camel.camel-core:2.7.1.fuse-00-27] at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-27] at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-27] at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:238)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-27] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[70:org.springframework.context:3.0.5.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[70:org.springframework.context:3.0.5.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[70:org.springframework.context:3.0.5.RELEASE] at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[82:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[82:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[82:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[82:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[85:org.springframework.osgi.extender:1.2.1] at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitorOnce,
davidvanlaatumdavidvanlaatum
40 times, last one