Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318838 - Nullpointerexception when launching a clean e4 application project
Summary: Nullpointerexception when launching a clean e4 application project
Status: CLOSED DUPLICATE of bug 318821
Alias: None
Product: e4
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 03:14 EDT by Christian Sorensen CLA
Modified: 2010-07-05 07:46 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***