Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Issue with Hello Service DS Host example(Timeout issue when bundles are loaded in the ds.host example)
Issue with Hello Service DS Host example [message #658026] Sat, 05 March 2011 08:15 Go to next message
Balazs Banfai is currently offline Balazs BanfaiFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

I have downloaded and installed the latest ECF examples from the Git repository. When I try to run the hello.ds.host, I get the exception below. I am running the example from the product file included and the non-declarative example works just fine. I am using Eclipse Java EE IDE for Web Developers Version: Helios Service Release 2 Build id: 20110218-0911. Is this a problem with the start order of the bundles?

!MESSAGE While loading class " org.eclipse.ecf.internal.osgi.services.distribution.Discover edServiceTrackerImpl$DiscoveredEndpointEvent ", thread "Thread[JMDNS Discovery Thread,5,main]" timed out waiting (5000ms) for thread "Thread[Start Level Event Dispatcher,5,main]" to finish starting bundle " org.eclipse.ecf.osgi.services.distribution_1.2.0.v20100615-1 451 [14]". To avoid deadlock, thread "Thread[JMDNS Discovery Thread,5,main]" is proceeding but " org.eclipse.ecf.internal.osgi.services.distribution.Discover edServiceTrackerImpl$DiscoveredEndpointEvent " may not be fully initialized.
!STACK 0
org.osgi.framework.BundleException: State change in progress for bundle "initial@reference :file:plugins/org.eclipse.ecf.osgi.services.distribution_1.2 .0.v20100615-1451.jar/ " by thread "Start Level Event Dispatcher".
at org.eclipse.osgi.framework.internal.core.AbstractBundle.begi nStateChange(AbstractBundle.java:1077)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:282)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:417)
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.BundleLoader.findClassInter nal(BundleLoader.java:469)
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 org.eclipse.ecf.internal.osgi.services.distribution.Discover edServiceTrackerImpl.serviceChanged(DiscoveredServiceTracker Impl.java:151)
at org.eclipse.ecf.internal.osgi.services.discovery.ServicePubl icationHandler.notifyDiscoveredServiceTrackers(ServicePublic ationHandler.java:103)
at org.eclipse.ecf.internal.osgi.services.discovery.ServicePubl icationHandler.serviceDiscovered(ServicePublicationHandler.j ava:73)
at org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter. fireServiceDiscovered(AbstractDiscoveryContainerAdapter.java :120)
at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner.fireDiscovered(JMDNSDiscoveryContainer.java:366)
at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner$2.run(JMDNSDiscoveryContainer.java:327)
at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner$1.run(JMDNSDiscoveryContainer.java:125)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$Bund leStatusException
... 21 more
Root exception:
org.eclipse.osgi.framework.internal.core.AbstractBundle$Bund leStatusException
at org.eclipse.osgi.framework.internal.core.AbstractBundle.begi nStateChange(AbstractBundle.java:1077)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:282)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:417)
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.BundleLoader.findClassInter nal(BundleLoader.java:469)
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 org.eclipse.ecf.internal.osgi.services.distribution.Discover edServiceTrackerImpl.serviceChanged(DiscoveredServiceTracker Impl.java:151)
at org.eclipse.ecf.internal.osgi.services.discovery.ServicePubl icationHandler.notifyDiscoveredServiceTrackers(ServicePublic ationHandler.java:103)
at org.eclipse.ecf.internal.osgi.services.discovery.ServicePubl icationHandler.serviceDiscovered(ServicePublicationHandler.j ava:73)
at org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter. fireServiceDiscovered(AbstractDiscoveryContainerAdapter.java :120)
at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner.fireDiscovered(JMDNSDiscoveryContainer.java:366)
at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner$2.run(JMDNSDiscoveryContainer.java:327)
at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner$1.run(JMDNSDiscoveryContainer.java:125)
at java.lang.Thread.run(Thread.java:680)
Re: Issue with Hello Service DS Host example [message #658030 is a reply to message #658026] Sat, 05 March 2011 08:55 Go to previous messageGo to next message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
On 03/05/2011 09:15 AM, Balazs Banfai wrote:
> !MESSAGE While loading class "
> org.eclipse.ecf.internal.osgi.services.distribution.Discover
> edServiceTrackerImpl$DiscoveredEndpointEvent ", thread "Thread[JMDNS
> Discovery Thread,5,main]" timed out waiting (5000ms) for thread
> "Thread[Start Level Event Dispatcher,5,main]" to finish starting bundle
> " org.eclipse.ecf.osgi.services.distribution_1.2.0.v20100615-1 451
> [14]". To avoid deadlock, thread "Thread[JMDNS Discovery Thread,5,main]"
> is proceeding but "
> org.eclipse.ecf.internal.osgi.services.distribution.Discover
> edServiceTrackerImpl$DiscoveredEndpointEvent " may not be fully
> initialized.
> !STACK 0
> org.osgi.framework.BundleException: State change in progress for bundle
> "mailto:initial@reference
> :file:plugins/org.eclipse.ecf.osgi.services.distribution_1.2
> .0.v20100615-1451.jar/ " by thread "Start Level Event Dispatcher".
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.begi
> nStateChange(AbstractBundle.java:1077)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.star
> t(AbstractBundle.java:282)
> at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct
> ion.java:417)
> 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.BundleLoader.findClassInter
> nal(BundleLoader.java:469)
> 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 org.eclipse.ecf.internal.osgi.services.distribution.Discover
> edServiceTrackerImpl.serviceChanged(DiscoveredServiceTracker Impl.java:151)
> at org.eclipse.ecf.internal.osgi.services.discovery.ServicePubl
> icationHandler.notifyDiscoveredServiceTrackers(ServicePublic
> ationHandler.java:103)
> at org.eclipse.ecf.internal.osgi.services.discovery.ServicePubl
> icationHandler.serviceDiscovered(ServicePublicationHandler.j ava:73)
> at org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter.
> fireServiceDiscovered(AbstractDiscoveryContainerAdapter.java :120)
> at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta
> iner.fireDiscovered(JMDNSDiscoveryContainer.java:366)
> at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta
> iner$2.run(JMDNSDiscoveryContainer.java:327)
> at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta
> iner$1.run(JMDNSDiscoveryContainer.java:125)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$Bund
> leStatusException
> ... 21 more
> Root exception:
> org.eclipse.osgi.framework.internal.core.AbstractBundle$Bund
> leStatusException
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.begi
> nStateChange(AbstractBundle.java:1077)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.star
> t(AbstractBundle.java:282)
> at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct
> ion.java:417)
> 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.BundleLoader.findClassInter
> nal(BundleLoader.java:469)
> 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 org.eclipse.ecf.internal.osgi.services.distribution.Discover
> edServiceTrackerImpl.serviceChanged(DiscoveredServiceTracker Impl.java:151)
> at org.eclipse.ecf.internal.osgi.services.discovery.ServicePubl
> icationHandler.notifyDiscoveredServiceTrackers(ServicePublic
> ationHandler.java:103)
> at org.eclipse.ecf.internal.osgi.services.discovery.ServicePubl
> icationHandler.serviceDiscovered(ServicePublicationHandler.j ava:73)
> at org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter.
> fireServiceDiscovered(AbstractDiscoveryContainerAdapter.java :120)
> at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta
> iner.fireDiscovered(JMDNSDiscoveryContainer.java:366)
> at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta
> iner$2.run(JMDNSDiscoveryContainer.java:327)
> at org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta
> iner$1.run(JMDNSDiscoveryContainer.java:125)
> at java.lang.Thread.run(Thread.java:680)

Hi Balazs,

looks like a bug in ECF to me. Can you please file a bug at
https://bugs.eclipse.org

Thanks
Markus
Re: Issue with Hello Service DS Host example [message #658032 is a reply to message #658030] Sat, 05 March 2011 09:11 Go to previous messageGo to next message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
On 03/05/2011 09:55 AM, Markus Alexander Kuppe wrote:

> Hi Balazs,
>
> looks like a bug in ECF to me. Can you please file a bug at
> https://bugs.eclipse.org

You might also wanna try to reproduce this issue with the upcoming ECF
3.5 release [0].

Markus

[0] http://ftp.osuosl.org/pub/eclipse/rt/ecf/3.5Test/
Re: Issue with Hello Service DS Host example [message #658057 is a reply to message #658032] Sat, 05 March 2011 17:18 Go to previous message
Balazs Banfai is currently offline Balazs BanfaiFriend
Messages: 2
Registered: July 2009
Junior Member
Hi Markus,

Thanks for the prompt reply. I have tried the upcoming 3.5 release with the OLD example projects that I have originally obtained from the ECF git site (not where the instructions pointed to: http://wiki.eclipse.org/Getting_the_Hello_Example_Service Sad ). It did not work due to mismatch with the bundle versions. I have also tried the ds examples using the binary example ds plugins from the target runtime as opposed to the workspace (I do not know where the source for the 3.5 is located), but no success either. I will submit the bug report as you have originally recommended.
Thanks,
Balazs

Previous Topic:installation of ECF 3.4 problems
Next Topic:Automatically set IP address in a declarative service (ideas or best practices?)
Goto Forum:
  


Current Time: Sat Dec 14 01:10:25 GMT 2024

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

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

Back to the top