Skip to main content



      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 06:48 Go to next message
Eclipse UserFriend
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 07:13 Go to previous message
Eclipse UserFriend
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 07:14] by 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: Wed Jul 23 19:33:27 EDT 2025

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

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

Back to the top