|Re: RCP using declarative services (occasionally) hangs for 30 secs on start-up. [message #134206 is a reply to message #134192]
||Fri, 03 July 2009 17:42
| Chris Aniszczyk
Registered: July 2009
Mike Evans wrote:|
> Hi All,
> I am experimenting with using OSGi declarative services in a
> conventional RCP application. However when I launch the app within the
> IDE, it normally hangs for about 30 seconds, waiting for OSGi to start
> up. More specifically the while() loop in EclipseStarter.updateSplash()
> takes 30 seconds or so to acquire the semaphore.
> If I remove my declared service by removing the reference to the service
> definition xml file in manifest.mf the app starts in about 3 secs �
> naturally without the service.
> Now here�s the odd bit. If I restore the manifest.mf and re-run,
> everything runs beautifully for a few launches, opening service and all
> in 3 secs or so. However eventually the app will suddenly again start
> taking 30 seconds.
> Any ideas what might cause this? Any pointers much appreciated.
> Service definition:
> <?xml version="1.0" encoding="UTF-8"?>
> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"
> enabled="true" immediate="true" name="Standalone Authentication">
> class=" uk.org.eoma.ui.application.standalone.internal.StandaloneAut hentication "/>
> interface="uk.org.eoma.ui.application.security.Authentication "/>
> Host bundle definition:
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: EOMA framework : standalone services
> Bundle-SymbolicName: uk.org.eoma.ui.application.standalone;singleton:=true
> Bundle-Version: 0.1.0.qualifier
> Bundle-Activator: uk.org.eoma.ui.application.standalone.internal.Activator
> Require-Bundle: org.eclipse.core.runtime,
> Bundle-ActivationPolicy: lazy
> Service-Component: OSGI-INF/service.xml
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> Bundle-Vendor: Incremental Ltd.
> Thanks for your time,
> Mike E.
> PS : the app is currently a proof-of-concept so if anyone wants the code
> (all 3 plug-in�s) you are welcome to it.
Can you file a bug against RT->Equinox with the sample projects?
DS has a timeout value if it can't get your service.
Can you post the bug here too!
Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Powered by FUDForum
. Page generated in 0.15477 seconds