Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService
java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService [message #524114] Tue, 30 March 2010 19:18 Go to next message
Jens Muehlenhoff is currently offline Jens MuehlenhoffFriend
Messages: 20
Registered: July 2009
Junior Member
Hello,

what the hell is this stacktrace telling me, beside that there is one circular dependency in the
code. But where is this circle. No hints, no more other information.

Ok, its telling me that there is a Problem with the component MsgCommand. Strange, the last change I
made was at a completely different component. Removing all references from this class does not
resolve the problem. Ok, I'm working on my project on my own and have 4 classes to search, so I
definitely will find the problem. Never mind.

But what if you are working in a team, 20 people 50 classes. You do an update with a lot of changes
from different people and get such an exception. Ok, every code should be tested and should work if
it goes into the repository, but real life look different.

It would be very good to have more usefull information in such programming situation, so programmers
do not loose to much time finding the cause for such difficult situations.


!ENTRY org.eclipse.equinox.ds 4 0 2010-03-30 21:03:39.319
!MESSAGE [SCR] Exception while activating instance de.kue.sequence.messanger.Command@11756a4 of
component
!STACK 0
java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:102)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:188)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a ctivate(ServiceComponentProp.java:139)

at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:329)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
at org.eclipse.equinox.internal.ds.ServiceReg.getService(Servic eReg.java:53)
at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(S erviceUse.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getServ ice(ServiceUse.java:118)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.getService(ServiceRegistrationImpl.java:447)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.ge tService(ServiceRegistry.java:430)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.g etService(BundleContextImpl.java:667)
at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTr acker.java:442)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAddin g(ServiceTracker.java:896)
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTr acked.java:261)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked. java:233)
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTracker.java:840)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis tener.serviceChanged(FilteredServiceListener.java:104)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:933)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEventPrivileged(ServiceRegistry.java:756)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEvent(ServiceRegistry.java:711)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.register(ServiceRegistrationImpl.java:130)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re gisterService(ServiceRegistry.java:206)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:507)
at org.eclipse.equinox.internal.ds.InstanceProcess.registerServ ice(InstanceProcess.java:488)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:251)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
at org.eclipse.equinox.internal.ds.SCRManager.startedBundle(SCR Manager.java:641)
at org.eclipse.equinox.internal.ds.SCRManager.bundleChanged(SCR Manager.java:236)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:919)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEventPrivileged(Framework.java:1350)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEvent(Framework.java:1301)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:345)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:279)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:406)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger (BundleLoader.java:265)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:106)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:453)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:393)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:457)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethod(Class.java:1935)
at org.eclipse.equinox.internal.ds.model.ComponentReference.get Method(ComponentReference.java:96)
at org.eclipse.equinox.internal.ds.model.ComponentReference.bin d(ComponentReference.java:315)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b indReference(ServiceComponentProp.java:414)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b ind(ServiceComponentProp.java:209)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:327)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:189)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRMa nager.java:800)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatc h(SCRManager.java:767)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.ja va:89)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Execut or.run(Executor.java:70)

!ENTRY org.eclipse.osgi 4 0 2010-03-30 21:03:39.323
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
org.osgi.service.component.ComponentException: [SCR] Exception while activating instance
de.kue.sequence.messanger.Command@11756a4 of component MsgCommand
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:244)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a ctivate(ServiceComponentProp.java:139)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:329)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
at org.eclipse.equinox.internal.ds.ServiceReg.getService(Servic eReg.java:53)
at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(S erviceUse.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getServ ice(ServiceUse.java:118)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.getService(ServiceRegistrationImpl.java:447)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.ge tService(ServiceRegistry.java:430)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.g etService(BundleContextImpl.java:667)
at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTr acker.java:442)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAddin g(ServiceTracker.java:896)
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTr acked.java:261)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked. java:233)
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTracker.java:840)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis tener.serviceChanged(FilteredServiceListener.java:104)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:933)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEventPrivileged(ServiceRegistry.java:756)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEvent(ServiceRegistry.java:711)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.register(ServiceRegistrationImpl.java:130)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re gisterService(ServiceRegistry.java:206)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:507)
at org.eclipse.equinox.internal.ds.InstanceProcess.registerServ ice(InstanceProcess.java:488)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:251)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
at org.eclipse.equinox.internal.ds.SCRManager.startedBundle(SCR Manager.java:641)
at org.eclipse.equinox.internal.ds.SCRManager.bundleChanged(SCR Manager.java:236)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:919)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEventPrivileged(Framework.java:1350)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEvent(Framework.java:1301)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:345)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:279)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:406)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger (BundleLoader.java:265)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:106)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:453)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:393)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:457)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethod(Class.java:1935)
at org.eclipse.equinox.internal.ds.model.ComponentReference.get Method(ComponentReference.java:96)
at org.eclipse.equinox.internal.ds.model.ComponentReference.bin d(ComponentReference.java:315)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b indReference(ServiceComponentProp.java:414)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b ind(ServiceComponentProp.java:209)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:327)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:189)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRMa nager.java:800)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatc h(SCRManager.java:767)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.ja va:89)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Execut or.run(Executor.java:70)
Caused by: java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:102)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:188)
... 65 more

!ENTRY de.kue.sequence.messanger 4 0 2010-03-30 21:03:39.327
!MESSAGE
!STACK 0
org.osgi.framework.ServiceException: Exception in
org.eclipse.equinox.internal.ds.ServiceReg.getService()
at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getServ ice(ServiceUse.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.getService(ServiceRegistrationImpl.java:447)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.ge tService(ServiceRegistry.java:430)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.g etService(BundleContextImpl.java:667)
at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTr acker.java:442)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAddin g(ServiceTracker.java:896)
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTr acked.java:261)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked. java:233)
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTracker.java:840)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis tener.serviceChanged(FilteredServiceListener.java:104)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:933)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEventPrivileged(ServiceRegistry.java:756)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEvent(ServiceRegistry.java:711)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.register(ServiceRegistrationImpl.java:130)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re gisterService(ServiceRegistry.java:206)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:507)
at org.eclipse.equinox.internal.ds.InstanceProcess.registerServ ice(InstanceProcess.java:488)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:251)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
at org.eclipse.equinox.internal.ds.SCRManager.startedBundle(SCR Manager.java:641)
at org.eclipse.equinox.internal.ds.SCRManager.bundleChanged(SCR Manager.java:236)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:919)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEventPrivileged(Framework.java:1350)
at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEvent(Framework.java:1301)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:345)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:279)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:406)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger (BundleLoader.java:265)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:106)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:453)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:393)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:457)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethod(Class.java:1935)
at org.eclipse.equinox.internal.ds.model.ComponentReference.get Method(ComponentReference.java:96)
at org.eclipse.equinox.internal.ds.model.ComponentReference.bin d(ComponentReference.java:315)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b indReference(ServiceComponentProp.java:414)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b ind(ServiceComponentProp.java:209)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:327)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:189)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRMa nager.java:800)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatc h(SCRManager.java:767)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.ja va:89)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Execut or.run(Executor.java:70)
Caused by: org.osgi.service.component.ComponentException: [SCR] Exception while activating instance
de.kue.sequence.messanger.Command@11756a4 of component MsgCommand
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:244)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a ctivate(ServiceComponentProp.java:139)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:329)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
at org.eclipse.equinox.internal.ds.ServiceReg.getService(Servic eReg.java:53)
at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(S erviceUse.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getServ ice(ServiceUse.java:118)
... 58 more
Caused by: java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:102)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:188)
... 65 more
nregister servlet
MessangerServlet.activate...
Re: java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService [message #524118 is a reply to message #524114] Tue, 30 March 2010 14:56 Go to previous messageGo to next message
Jens Muehlenhoff is currently offline Jens MuehlenhoffFriend
Messages: 20
Registered: July 2009
Junior Member
Hello,

I found the problem: close and reopen the project where de/kue/msgbus/channel/IChannelService was
located does the trick. Next time I will know ;).

But anyway, looks like the Equinox has still problems with SCR. Event if they write better exceptions :)

Jens wrote:
> Hello,
>
> what the hell is this stacktrace telling me, beside that there is one circular dependency in the
> code. But where is this circle. No hints, no more other information.
>
> Ok, its telling me that there is a Problem with the component MsgCommand. Strange, the last change I
> made was at a completely different component. Removing all references from this class does not
> resolve the problem. Ok, I'm working on my project on my own and have 4 classes to search, so I
> definitely will find the problem. Never mind.
>
> But what if you are working in a team, 20 people 50 classes. You do an update with a lot of changes
> from different people and get such an exception. Ok, every code should be tested and should work if
> it goes into the repository, but real life look different.
>
> It would be very good to have more usefull information in such programming situation, so programmers
> do not loose to much time finding the cause for such difficult situations.
>
>
> !ENTRY org.eclipse.equinox.ds 4 0 2010-03-30 21:03:39.319
> !MESSAGE [SCR] Exception while activating instance de.kue.sequence.messanger.Command@11756a4 of
> component
> !STACK 0
> java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getDeclaredMethods(Class.java:1791)
> at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:102)
> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:188)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a ctivate(ServiceComponentProp.java:139)
>
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:329)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
> at org.eclipse.equinox.internal.ds.ServiceReg.getService(Servic eReg.java:53)
> at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(S erviceUse.java:120)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getServ ice(ServiceUse.java:118)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.getService(ServiceRegistrationImpl.java:447)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.ge tService(ServiceRegistry.java:430)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.g etService(BundleContextImpl.java:667)
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTr acker.java:442)
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAddin g(ServiceTracker.java:896)
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTr acked.java:261)
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked. java:233)
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTracker.java:840)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis tener.serviceChanged(FilteredServiceListener.java:104)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:933)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEventPrivileged(ServiceRegistry.java:756)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEvent(ServiceRegistry.java:711)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.register(ServiceRegistrationImpl.java:130)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re gisterService(ServiceRegistry.java:206)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:507)
> at org.eclipse.equinox.internal.ds.InstanceProcess.registerServ ice(InstanceProcess.java:488)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:251)
> at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
> at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
> at org.eclipse.equinox.internal.ds.SCRManager.startedBundle(SCR Manager.java:641)
> at org.eclipse.equinox.internal.ds.SCRManager.bundleChanged(SCR Manager.java:236)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:919)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
> at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEventPrivileged(Framework.java:1350)
> at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEvent(Framework.java:1301)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:345)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:279)
> at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:406)
> at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger (BundleLoader.java:265)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:106)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:453)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:216)
> at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:393)
> at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:457)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:422)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getDeclaredMethod(Class.java:1935)
> at org.eclipse.equinox.internal.ds.model.ComponentReference.get Method(ComponentReference.java:96)
> at org.eclipse.equinox.internal.ds.model.ComponentReference.bin d(ComponentReference.java:315)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b indReference(ServiceComponentProp.java:414)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b ind(ServiceComponentProp.java:209)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:327)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:189)
> at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
> at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
> at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRMa nager.java:800)
> at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatc h(SCRManager.java:767)
> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.ja va:89)
> at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Execut or.run(Executor.java:70)
>
> !ENTRY org.eclipse.osgi 4 0 2010-03-30 21:03:39.323
> !MESSAGE An unexpected runtime error has occurred.
> !STACK 0
> org.osgi.service.component.ComponentException: [SCR] Exception while activating instance
> de.kue.sequence.messanger.Command@11756a4 of component MsgCommand
> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:244)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a ctivate(ServiceComponentProp.java:139)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:329)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
> at org.eclipse.equinox.internal.ds.ServiceReg.getService(Servic eReg.java:53)
> at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(S erviceUse.java:120)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getServ ice(ServiceUse.java:118)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.getService(ServiceRegistrationImpl.java:447)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.ge tService(ServiceRegistry.java:430)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.g etService(BundleContextImpl.java:667)
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTr acker.java:442)
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAddin g(ServiceTracker.java:896)
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTr acked.java:261)
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked. java:233)
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTracker.java:840)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis tener.serviceChanged(FilteredServiceListener.java:104)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:933)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEventPrivileged(ServiceRegistry.java:756)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEvent(ServiceRegistry.java:711)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.register(ServiceRegistrationImpl.java:130)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re gisterService(ServiceRegistry.java:206)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:507)
> at org.eclipse.equinox.internal.ds.InstanceProcess.registerServ ice(InstanceProcess.java:488)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:251)
> at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
> at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
> at org.eclipse.equinox.internal.ds.SCRManager.startedBundle(SCR Manager.java:641)
> at org.eclipse.equinox.internal.ds.SCRManager.bundleChanged(SCR Manager.java:236)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:919)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
> at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEventPrivileged(Framework.java:1350)
> at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEvent(Framework.java:1301)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:345)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:279)
> at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:406)
> at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger (BundleLoader.java:265)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:106)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:453)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:216)
> at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:393)
> at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:457)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:422)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getDeclaredMethod(Class.java:1935)
> at org.eclipse.equinox.internal.ds.model.ComponentReference.get Method(ComponentReference.java:96)
> at org.eclipse.equinox.internal.ds.model.ComponentReference.bin d(ComponentReference.java:315)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b indReference(ServiceComponentProp.java:414)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b ind(ServiceComponentProp.java:209)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:327)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:189)
> at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
> at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
> at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRMa nager.java:800)
> at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatc h(SCRManager.java:767)
> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.ja va:89)
> at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Execut or.run(Executor.java:70)
> Caused by: java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getDeclaredMethods(Class.java:1791)
> at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:102)
> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:188)
> ... 65 more
>
> !ENTRY de.kue.sequence.messanger 4 0 2010-03-30 21:03:39.327
> !MESSAGE
> !STACK 0
> org.osgi.framework.ServiceException: Exception in
> org.eclipse.equinox.internal.ds.ServiceReg.getService()
> at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getServ ice(ServiceUse.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.getService(ServiceRegistrationImpl.java:447)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.ge tService(ServiceRegistry.java:430)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.g etService(BundleContextImpl.java:667)
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTr acker.java:442)
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAddin g(ServiceTracker.java:896)
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTr acked.java:261)
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked. java:233)
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTracker.java:840)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis tener.serviceChanged(FilteredServiceListener.java:104)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:933)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEventPrivileged(ServiceRegistry.java:756)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu blishServiceEvent(ServiceRegistry.java:711)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio nImpl.register(ServiceRegistrationImpl.java:130)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re gisterService(ServiceRegistry.java:206)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:507)
> at org.eclipse.equinox.internal.ds.InstanceProcess.registerServ ice(InstanceProcess.java:488)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:251)
> at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
> at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
> at org.eclipse.equinox.internal.ds.SCRManager.startedBundle(SCR Manager.java:641)
> at org.eclipse.equinox.internal.ds.SCRManager.bundleChanged(SCR Manager.java:236)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:919)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:149)
> at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEventPrivileged(Framework.java:1350)
> at org.eclipse.osgi.framework.internal.core.Framework.publishBu ndleEvent(Framework.java:1301)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:345)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:279)
> at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:406)
> at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger (BundleLoader.java:265)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:106)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:453)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:216)
> at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:393)
> at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:457)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:422)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getDeclaredMethod(Class.java:1935)
> at org.eclipse.equinox.internal.ds.model.ComponentReference.get Method(ComponentReference.java:96)
> at org.eclipse.equinox.internal.ds.model.ComponentReference.bin d(ComponentReference.java:315)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b indReference(ServiceComponentProp.java:414)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b ind(ServiceComponentProp.java:209)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:327)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nts(InstanceProcess.java:189)
> at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied (Resolver.java:429)
> at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Re solver.java:211)
> at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRMa nager.java:800)
> at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatc h(SCRManager.java:767)
> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.ja va:89)
> at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Execut or.run(Executor.java:70)
> Caused by: org.osgi.service.component.ComponentException: [SCR] Exception while activating instance
> de.kue.sequence.messanger.Command@11756a4 of component MsgCommand
> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:244)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a ctivate(ServiceComponentProp.java:139)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b uild(ServiceComponentProp.java:329)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone nt(InstanceProcess.java:572)
> at org.eclipse.equinox.internal.ds.ServiceReg.getService(Servic eReg.java:53)
> at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(S erviceUse.java:120)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getServ ice(ServiceUse.java:118)
> ... 58 more
> Caused by: java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getDeclaredMethods(Class.java:1791)
> at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:102)
> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:188)
> ... 65 more
> nregister servlet
> MessangerServlet.activate...
Re: java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService [message #524129 is a reply to message #524118] Tue, 30 March 2010 20:44 Go to previous messageGo to next message
Jens Muehlenhoff is currently offline Jens MuehlenhoffFriend
Messages: 20
Registered: July 2009
Junior Member
Okay,

the strange exception has nothing to do with SCR. It is thrown during SCR initialisation. But now I
have no idea why it is shown suddenly up and then it suddenly moves away.

Jens wrote:
>> !ENTRY org.eclipse.equinox.ds 4 0 2010-03-30 21:03:39.319
>> !MESSAGE [SCR] Exception while activating instance de.kue.sequence.messanger.Command@11756a4 of
>> component
>> !STACK 0
>> java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService
>> at java.lang.Class.getDeclaredMethods0(Native Method)
>> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>> at java.lang.Class.getDeclaredMethods(Class.java:1791)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponent.getMe thod(ServiceComponent.java:102)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ ate(ServiceComponent.java:188)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a ctivate(ServiceComponentProp.java:139)
Re: java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService [message #524324 is a reply to message #524114] Wed, 31 March 2010 14:34 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 437
Registered: July 2009
Senior Member
Please open a bug report against Equinox->Compendium about this. It appears the DS (SCR) is recursively trying to activate the same component instance which I think should be avoided by the DS implementation.

It would be good if you could have steps to reproduce in a bug report. Open at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox using the compendium component.

Thanks.
Re: java.lang.ClassCircularityError: de/kue/msgbus/channel/IChannelService [message #524857 is a reply to message #524324] Fri, 02 April 2010 20:58 Go to previous message
Jens Muehlenhoff is currently offline Jens MuehlenhoffFriend
Messages: 20
Registered: July 2009
Junior Member
Thomas Watson wrote:
> Please open a bug report against Equinox->Compendium about this. It
> appears the DS (SCR) is recursively trying to activate the same
> component instance which I think should be avoided by the DS
> implementation.
>
> It would be good if you could have steps to reproduce in a bug report.
> Open at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox
> using the compendium component.
>
> Thanks.

Hello Thomas,

it was hard work to get the reason for this bug. I open the following report

https://bugs.eclipse.org/bugs/show_bug.cgi?id=308021

Mean while I figured out an other bug :).
Looks like DS with CM is not used by a lot of people ;)

Jens
Previous Topic:Unable to satisfy dependency
Next Topic:How much of the OSGi 4.2 Spec is implemented by Equinox?
Goto Forum:
  


Current Time: Sat Nov 29 01:51:43 GMT 2014

Powered by FUDForum. Page generated in 0.04876 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software