Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Running Equinox 3.2.0 embedded

Title: Running Equinox 3.2.0 embedded
I’m trying to develop a multi-framework vendor test harness for the Spring/OSGi integration effort.  This test harness already works with Knopflerfish and I’m trying to get this to work with Equinox.  After an examination of the Equinox code base, the effort did not appear to be too hard.  However, I'm running into trouble and any help would be appreciated.

I’m using Equinox version 3.2.0, and to start up the Equinox framework I'm simply doing:

BundleContext bc = EclipseStarter.startup(new String[]{"-clean"}, null);

This throws the IllegalStateException below.

Not really sure what I should be doing to make this go away.  Note that if I add the command line argument to the above such as “-configuration” and the location, where the configuration location is a directory and the directory contains an empty “config.ini” file, I get the same IllegalStateException thrown, but I do get an org.eclipse.osgi/manager directory under this location with a .fileTableLock file in it.

Again, I’m just trying to get a minimal startup of Eclipse – I’ll use the BundleContext returned by startup() to install and start the bundles I need.

 java.lang.IllegalStateException
    at org.eclipse.osgi.internal.baseadaptor.BaseStorage.getBundleContent(BaseStorage.java:590)
    at org.eclipse.osgi.internal.baseadaptor.BaseStorage.createBundleFile(BaseStorage.java:600)
    at org.eclipse.osgi.baseadaptor.BaseAdaptor.createBundleFile(BaseAdaptor.java:491)
    at org.eclipse.osgi.baseadaptor.BaseData.getBundleFile(BaseData.java:367)
    at org.eclipse.osgi.baseadaptor.BaseData.getEntry(BaseData.java:93)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.getEntry(AbstractBundle.java:1281)
    at org.eclipse.osgi.framework.internal.core.Framework.findVMProfile(Framework.java:393)
    at org.eclipse.osgi.framework.internal.core.Framework.loadVMProfile(Framework.java:312)
    at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:187)
    at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:112)
    at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
    at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:286)
    at org.springframework.osgi.testing.client.equinox.EquinoxFramework.start(EquinoxFramework.java:38)
    at org.springframework.osgi.testing.client.HarnessClient.run(HarnessClient.java:143)
    at org.springframework.osgi.testing.client.AbstractHarnessTest.frameworkTest(AbstractHarnessTest.java:35)
    at org.springframework.osgi.testing.client.EquinoxTest.testEquinox(EquinoxTest.java:14)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32)

Back to the top