Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318838

Summary: Nullpointerexception when launching a clean e4 application project
Product: [Eclipse Project] e4 Reporter: Christian Sorensen <cso>
Component: ResourcesAssignee: Project Inbox <e4.resources-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel, remy.suen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Christian Sorensen CLA 2010-07-05 03:14:20 EDT
I am using the eclipse-e4-SDK-incubation-I20100701-1000-win32 build. I
created a new project using the "e4 application project" wizard. I did
not change anything but the name of the project. Now when I click
"launch an Eclipse Application" in the .product file I get the following
error:

ENTRY org.eclipse.osgi 4 0 2010-07-02 13:34:51.014
!MESSAGE Application error
!STACK 1

_java.lang.NullPointerException_ at
org.eclipse.e4.ui.internal.workbench.E4CommandProcessor.processCommands(_E4CommandProcessor.java:52_)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.init(_E4Workbench.java:110_)
... etc....

The NPE can be removed by this procedure (providede by Kai Toedter):
1) Open your run configuration
2) type ds in the filter field
3) check org.eclipse.equinox.ds
4) Clear the filter
5) Click "Add required plugins"
6) Run :)

This leaves me with new errors:
!ENTRY org.eclipse.e4.ui.workbench 4 0 2010-07-02 14:09:40.587
!MESSAGE Failed to create the presentation engine for URI: platform:/plugin/org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine

I added the two plugins:
Org.eclipse.e4.ui.workbench.renderers.swt
Org.eclipse.e4.tools.emf.liveeditor

to remove those errors.

I then get:
!ENTRY org.eclipse.e4.ui.workbench 4 0 2010-07-02 14:52:16.996
!MESSAGE Event Admin service is not available, unable to publish event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/ui/Context/context/SET].

which can be removed by adding (provided by Tom Schindl):

org.eclipse.equinox.events
Comment 1 Lars Vogel CLA 2010-07-05 07:46:36 EDT
I believe this is the same as described in 318821

*** This bug has been marked as a duplicate of bug 318821 ***