Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Equinox Aspects - BundleException at Shutdown
Equinox Aspects - BundleException at Shutdown [message #117217] Tue, 09 September 2008 16:28 Go to next message
Adam Lucarz is currently offline Adam LucarzFriend
Messages: 518
Registered: July 2009
Senior Member
Hi,

my tried to use Equinox Aspects in a RCP application. Therefore, I created
an application from the "hello world" template and loaded it with the two
bundles from the hello world example for equinox aspects.

org.eclipse.equinox.weaving.demo.hello and
org.eclipse.equinox.weaving.demo.hello.aspects

Everything works fine, but at the equinox shutdown after the Activator's
stop method is left following exception is thrown:

org.eclipse.osgi.framework.internal.core.AbstractBundle$Bund leStatusException:
The bundle's start level is not met. Cannot transient start the bundle:
initial@reference:file:../../org.eclipse.equinox.weaving.demo.hello/ [18]
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:313)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.upda teWorker(AbstractBundle.java:702)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.upda te(AbstractBundle.java:613)
at
org.eclipse.equinox.service.weaving.SupplementerRegistry.upd ateInstalledBundle(SupplementerRegistry.java:255)
at
org.eclipse.equinox.weaving.adaptors.AspectJAdaptorFactory$1 .serviceChanged(AspectJAdaptorFactory.java:107)
at
org.eclipse.osgi.framework.internal.core.FilteredServiceList ener.serviceChanged(FilteredServiceListener.java:91)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1248)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:211)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:141)
at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEventPrivileged(Framework.java:1563)
at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEvent(Framework.java:1538)
at
org.eclipse.osgi.framework.internal.core.ServiceRegistration Impl.unregister(ServiceRegistrationImpl.java:177)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.c lose(BundleContextImpl.java:132)
at
org.eclipse.osgi.framework.internal.core.BundleHost.stopWork er(BundleHost.java:460)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.susp end(AbstractBundle.java:531)
at
org.eclipse.osgi.framework.internal.core.Framework.suspendBu ndle(Framework.java:1104)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ecFWSL(StartLevelManager.java:655)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:312)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.s hutdown(StartLevelManager.java:257)
at
org.eclipse.osgi.framework.internal.core.SystemBundle.suspen d(SystemBundle.java:236)
at
org.eclipse.osgi.framework.internal.core.Framework.shutdown( Framework.java:678)
at
org.eclipse.osgi.framework.internal.core.Framework.close(Fra mework.java:576)
at org.eclipse.osgi.framework.internal.core.OSGi.close(OSGi.jav a:41)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(Ecl ipseStarter.java:420)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:200)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Does anyone know if I made something wrong?

I have used the Milestone 1 version of Equinox Aspects.

Greetings
Adam
Re: Equinox Aspects - BundleException at Shutdown [message #117232 is a reply to message #117217] Wed, 10 September 2008 08:31 Go to previous message
Adam Lucarz is currently offline Adam LucarzFriend
Messages: 518
Registered: July 2009
Senior Member
Hello,

I found the failure in my test environment. I mixed up
BundleActivators(org.osgi.framework) with
Plugins(org.eclipse.core.runtime). After converting the Equinox Aspects
helloworld example to plugins everything was fine.

Adam
Previous Topic:[P2] Problem creating repository with .product when exporting for multiple platforms
Next Topic:[P2] Test code
Goto Forum:
  


Current Time: Thu Apr 25 22:34:02 GMT 2024

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

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

Back to the top