Maia: OSGI run config no longer runs

The Osmorc OSGI plugin bundled with Maia no longer works with the project settings from the 8.1.2 build

!ENTRY org.eclipse.osgi 4 0 2009-05-26 13:49:47.237
!MESSAGE Startup error
!STACK 1
java.lang.IllegalArgumentException: The requested start level of 0 is invalid.  The value must be a positive integer.
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.setStartLevel(StartLevelManager.java:222)
    at org.eclipse.osgi.framework.internal.core.StartLevelImpl.setStartLevel(StartLevelImpl.java:152)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.setStartLevel(EclipseStarter.java:1201)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:308)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:173)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

2 comments
Comment actions Permalink

Hi Nick,

It isn't a general problem since I run projects that were created with IDEA 8.1 on Maia.

This first Maia version of Osmorc merges the two different run configuration types that existed earlier into one unified. Looks like something went wrong while converting your "Eclipse Equinox" run configuration.Please open it and on the "Bundles" page make sure that all bundles have at least the start level 1. Hopefully that will fix the problem.

But please also open a Jira issue for this problem. Please post the issues on the project "IDEA: Development" with the component "OSGi Support". Even if the workaround fixes the problem, the conversion should prevent it from happening in the first place.

Best regards,
  Robert

0
Comment actions Permalink

I tried rebuildilng the run configs as Equinox apps, but an exception (which I already submitted) prevents these from running, and subsequently causes the newly added run configs to be erased.  This issue coupled with the settings import problem caused me to give up on this build. Ill log the issue shortly.

Thanks for the suggestions,

Nick

0

Please sign in to leave a comment.