Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Eclipse 3.6 rcp to eclipse 4 rcp
Eclipse 3.6 rcp to eclipse 4 rcp [message #1001798] Thu, 17 January 2013 11:48 Go to next message
Thomas Bittner is currently offline Thomas BittnerFriend
Messages: 2
Registered: December 2012
Junior Member
Hi,

i have an rcp application written in eclipse 3.6. Now I try to get it running under Eclipse 4.2.

Inside Eclipse it is running just fine, but when i export it, i always get a nullpointer exception.

The exception is thrown by org.eclipse.e4.ui.internal.workbenche.ModelServiceImpl. Is it possible that this Problem is caused by the e4 application model which i didn't use?

Any Help how i could solve this Problem is appreciated.

Thanks,
Thomas

!SESSION 2013-01-16 20:19:53.539 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_06
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_AT
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.osgi 4 0 2013-01-16 20:19:55.154
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
	at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init>(ModelServiceImpl.java:92)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:442)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:182)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:557)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at at.stift.inventar.Application.start(Application.java:20)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.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(EclipseStarter.java:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	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:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Re: Eclipse 3.6 rcp to eclipse 4 rcp [message #1002330 is a reply to message #1001798] Fri, 18 January 2013 12:13 Go to previous message
sumit singh is currently offline sumit singhFriend
Messages: 133
Registered: October 2012
Location: Bangalore
Senior Member

Its creating ModelServiceImpl object with IEclipseContext and then it try to find IEventBroker in this context with is not present so then in next step its throwing java.lang.NullPointerException
public ModelServiceImpl(IEclipseContext appContext) {
	if (appContext == null)
	   return;
        IEventBroker eventBroker = appContext.get(IEventBroker.class);
	eventBroker.subscribe(UIEvents.UIElement.TOPIC_WIDGET, hostedElementHandler);
	}


Are you exporting with all dependency..?

[Updated on: Fri, 18 January 2013 12:14]

Report message to a moderator

Previous Topic:[SOLVED] Unable to show an HTML welcome page
Next Topic:Add the Console to an Eclipse 4 RCP Application
Goto Forum:
  


Current Time: Thu Nov 27 16:25:07 GMT 2014

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

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