Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Problems between 4.0 based target platform and 4.1 based target platform.
Problems between 4.0 based target platform and 4.1 based target platform. [message #643031] Fri, 03 December 2010 17:17 Go to next message
Daniel Ford is currently offline Daniel FordFriend
Messages: 138
Registered: July 2009
Location: New York
Senior Member
I'm trying to migrate a minimal e4 based RCP from a 4.0 target platform
to a 4.1 based target platform. I've resolved most of my issues and now
have a "good" target for 4.1.

Now, I have an interesting problem. My RCP runs with no problems on the
4.0 based target, but when I switch to the 4.1 target, and use the same
launch configuration, I get an NPE at start-up in
E4Workbench.processHierarchy() when it fails to obtain an instance of
the EHandlerService and then tries to de-reference null. I've checked
out the code and stepped through it in the debugger to verify what was
happening, but I got out of my zone when it came to resolving the
instance other than to determine that it wasn't finding it.

I'm still an e4 newbie, so I'm wary to claim I've found a bug, and
expect I've missed something, especially since this seems pretty
fundamental. It's gotta be me, but, what?!

Dan


!ENTRY org.eclipse.osgi 4 0 2010-12-03 12:05:16.340
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.processHier archy(E4Workbench.java:193)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.init(E4Work bench.java:117)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.<init>(E4Workbench.java:72)
at
org.eclipse.e4.ui.internal.workbench.swt.E4Application.creat eE4Workbench(E4Application.java:264)
at
org.eclipse.e4.ui.internal.workbench.swt.E4Application.start (E4Application.java:116)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
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:369)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Re: Problems between 4.0 based target platform and 4.1 based target platform. [message #643168 is a reply to message #643031] Sun, 05 December 2010 15:37 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Do you have the 2 addons needed since some weeks in your .e4xmi. I'd
advise all early adopters to follow e4-dev closely.

I can't really tell if this is cause but here's Pauls mail and the
follow up discussion [1].

Tom

[1] http://www.mail-archive.com/e4-dev@eclipse.org/msg04085.html

Am 03.12.10 18:17, schrieb Daniel Ford:
> I'm trying to migrate a minimal e4 based RCP from a 4.0 target platform
> to a 4.1 based target platform. I've resolved most of my issues and now
> have a "good" target for 4.1.
>
> Now, I have an interesting problem. My RCP runs with no problems on the
> 4.0 based target, but when I switch to the 4.1 target, and use the same
> launch configuration, I get an NPE at start-up in
> E4Workbench.processHierarchy() when it fails to obtain an instance of
> the EHandlerService and then tries to de-reference null. I've checked
> out the code and stepped through it in the debugger to verify what was
> happening, but I got out of my zone when it came to resolving the
> instance other than to determine that it wasn't finding it.
>
> I'm still an e4 newbie, so I'm wary to claim I've found a bug, and
> expect I've missed something, especially since this seems pretty
> fundamental. It's gotta be me, but, what?!
>
> Dan
>
>
> !ENTRY org.eclipse.osgi 4 0 2010-12-03 12:05:16.340
> !MESSAGE Application error
> !STACK 1
> java.lang.NullPointerException
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.processHier archy(E4Workbench.java:193)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.init(E4Work bench.java:117)
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.<init>(E4Workbench.java:72)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.E4Application.creat eE4Workbench(E4Application.java:264)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.E4Application.start (E4Application.java:116)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
>
> 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:369)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 622)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Re: Problems between 4.0 based target platform and 4.1 based target platform. [message #643320 is a reply to message #643031] Mon, 06 December 2010 13:41 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

There's definitely a slightly different set of plugins needed in 4.1
over 4.0. You might have to re-create your launch config. You also
probably need to delete your runtime deltas.xml if it exists.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:EventHandler not being called!
Next Topic:DI in a OSGI Service
Goto Forum:
  


Current Time: Tue Dec 23 00:18:18 GMT 2014

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

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