Community
Participate
Working Groups
Build Identifier: I20111209-2100 Creating a new RCP application based on "RCP application with a view" leads to a NPE. This problem occoured with e4 M4+M5. In both cases I've just installed the pure E4 download without any extensions. It is running on JRE16. The problem would'nt be so critical, if the Wizard could be finished without using a template. But that's not possible! !ENTRY org.eclipse.osgi 4 0 2012-01-30 09:58:38.907 !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:472) at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:181) at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:534) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:520) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.xxx.tool.platform.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:352) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:624) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:579) at org.eclipse.equinox.launcher.Main.run(Main.java:1433) at org.eclipse.equinox.launcher.Main.main(Main.java:1409) Reproducible: Always Steps to Reproduce: 1. Create new workspace 2. Create new RCP base on "RCP application with a view" 3. let it run...
If you tell the wizard its an RCP app, it's going to provide you a template. That's the only reason to tell it you're an RCP app. You can just create a plugin and then create an application in the PDE editor, or create a .product file in your project (which will create the application for you). There are extra bundles that you need that are not part of the dependency chain, see bug 317912 for a list. PW *** This bug has been marked as a duplicate of bug 317912 ***