Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Error when running my RCP product using e4 as the target platform
Error when running my RCP product using e4 as the target platform [message #483816] Thu, 03 September 2009 07:50 Go to next message
Mickael Istria is currently offline Mickael Istria
Messages: 755
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi all,

I tried to run a working RCP product on e4, just for the fun.
To achieve this, I use e4 0.9 as target platform, and I create a new product definition that includes all e4 things.

Then, when executing the product, I get while loading the workbench:

java.lang.NullPointerException
at org.eclipse.e4.workbench.ui.menus.MenuHelper.indexForId(Menu Helper.java:126)
at org.eclipse.e4.workbench.ui.menus.ActionSet.addMenu(ActionSe t.java:126)
at org.eclipse.e4.workbench.ui.menus.ActionSet.merge(ActionSet. java:56)
at org.eclipse.e4.workbench.ui.menus.MenuHelper.processActionSe ts(MenuHelper.java:101)
at org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:383)
at org.eclipse.ui.internal.tweaklets.Workbench3xImplementation. createWorkbenchWindow(Workbench3xImplementation.java:31)
at org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workben ch.java:2289)
at org.eclipse.ui.internal.Workbench.access$16(Workbench.java:2 286)
at org.eclipse.ui.internal.Workbench$17.runWithException(Workbe nch.java:1119)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3468)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3115)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$30.runWithException(Workbe nch.java:1551)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3468)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3115)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2729)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:26 34)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:562)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:555)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.bonitasoft.studio.application.BonitaStudioApplication.st art(BonitaStudioApplication.java:37)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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:585)

I tried to remove the org.eclipse.e4.ui.workbench.fragment, but I still get this error.

How can I get rid of this error and run my product? Is this a bug in e4, should I open an issue on bugzilla for it?

Mickael
Re: Error when running my RCP product using e4 as the target platform [message #484649 is a reply to message #483816] Tue, 08 September 2009 15:30 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can open a bug at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=E4&c omponent=UI

What ID is it looking for when you hit the NPE:
at org.eclipse.e4.workbench.ui.menus.MenuHelper.indexForId(Menu Helper.java:126)

Does your RCP app have actionSets that depend on menus from other actionSets? Or is it looking for something contributed by your ApplicationActionBarAdvisor when it NPEs?

PW


Re: Error when running my RCP product using e4 as the target platform [message #484759 is a reply to message #484649] Wed, 09 September 2009 07:29 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 755
Registered: July 2009
Location: Grenoble, France
Senior Member
Paul Webster a écrit :
> You can open a bug at
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=E4&c omponent=UI
> What ID is it looking for when you hit the NPE:
> at org.eclipse.e4.workbench.ui.menus.MenuHelper.indexForId(Menu
> Helper.java:126)
>
> Does your RCP app have actionSets that depend on menus from other
> actionSets? Or is it looking for something contributed by your
> ApplicationActionBarAdvisor when it NPEs?
>
> PW
>


I opened bug 288902 (http://bugs.eclipse.org/288902). I'll add some details as soon as possible.
Re: Error when running my RCP product using e4 as the target platform [message #563198 is a reply to message #483816] Tue, 08 September 2009 15:30 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can open a bug at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=E4&c omponent=UI

What ID is it looking for when you hit the NPE:
at org.eclipse.e4.workbench.ui.menus.MenuHelper.indexForId(Menu Helper.java:126)

Does your RCP app have actionSets that depend on menus from other actionSets? Or is it looking for something contributed by your ApplicationActionBarAdvisor when it NPEs?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions


Re: Error when running my RCP product using e4 as the target platform [message #563273 is a reply to message #563198] Wed, 09 September 2009 07:29 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 755
Registered: July 2009
Location: Grenoble, France
Senior Member
Paul Webster a écrit :
> You can open a bug at
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=E4&c omponent=UI
> What ID is it looking for when you hit the NPE:
> at org.eclipse.e4.workbench.ui.menus.MenuHelper.indexForId(Menu
> Helper.java:126)
>
> Does your RCP app have actionSets that depend on menus from other
> actionSets? Or is it looking for something contributed by your
> ApplicationActionBarAdvisor when it NPEs?
>
> PW
>


I opened bug 288902 (http://bugs.eclipse.org/288902). I'll add some details as soon as possible.
Previous Topic:Will pmf be part of e4 and will xswt use pmf instead of swt?
Next Topic:Error in running the photo demo
Goto Forum:
  


Current Time: Mon Sep 22 08:20:05 GMT 2014

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

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