[equinox-dev] Caused by: org.osgi.framework.BundleException: State change in progress for bundle...by thread OSGi Console

2008-04-04 Thread Jacek Laskowski
Hi, Why do I face the following exception: [EMAIL PROTECTED] /cygdrive/c/projs/osgi/spring-osgi-install $ java -jar c:/apps/eclipse/plugins/org.eclipse.osgi_3.4.0.v20080205.jar -console osgi ss Framework is launched. id State Bundle 0 ACTIVE

Re: [equinox-dev] Caused by: org.osgi.framework.BundleException: State change in progress for bundle...by thread OSGi Console

2008-04-04 Thread Lukasz Bobowiec
Hi Jacek, I think this is some threading issue. First of all remember that in the start/stop methods of BundleActivator you shouldn't spawn a long running task (just use a new Thread to do this). In the javadoc to org.osgi.framework.BundleActivator#start() method is written: Called when this

Re: [equinox-dev] Caused by: org.osgi.framework.BundleException: State change in progress for bundle...by thread OSGi Console

2008-04-04 Thread Thomas Watson
Hi Lukasz's solution assumes that the bundle you are installing will eventually enter the RESOLVED state. This is not going to happen automatically. You would have to run a PackageAdmin.resolveBundles to make the bundle resolve. The actual exception seems to be occurring because the second