Skip to main content

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

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.


!SESSION 2013-01-16 20:19:53.539 -----------------------------------------------
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
	at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init>(
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(
	at org.eclipse.ui.internal.Workbench$
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
	at at.stift.inventar.Application.start(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
	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(
	at org.eclipse.equinox.launcher.Main.basicRun(
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: 141
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)
        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: Tue Dec 07 21:04:03 GMT 2021

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

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

Back to the top