NPE in e4 – ds missing in action

I saw this question asked several times, therefore I think a short blog entry might help in solving a common e4 launch problem.

If you run e4 you need to include the declaritive service implementation into your launch config. If you don’t you currently receive the following NPE:

	at org.eclipse.e4.ui.internal.workbench.E4CommandProcessor.processCommands(

If you face such an error, make sure org.eclipse.equinox.ds and org.eclipse.equinox.util are included in the launch config.

I hope that at some point a better error message will be issued. Please see Bug 318821 for details.

About Lars Vogel

Lars Vogel is the founder and CEO of the vogella GmbH and works as Eclipse and Android consultant, trainer and book author. He is a regular speaker at international conferences, He is the primary author of With more than one million visitors per month this website is one of the central sources for Java, Eclipse and Android programming information.
This entry was posted in Eclipse and tagged . Bookmark the permalink.

7 Responses to NPE in e4 – ds missing in action

  1. This is also an issue with Eclipse 3.6.

    See this bug:


  2. Lars Vogel says:

    @Aurelien I guess that is the drawback of using dynamic services…

  3. @Lars Yes it seems. But, at least, it would be helpful to have NoServiceException with the name of the required service instead of having NPE. And to go further, to have a “Add required services” or something like that ^^

  4. Lars Vogel says:

    @Aurelien NoServiceException would be great.

  5. Wolfgang Schell says:

    The second bundle name seems to be cut off

  6. Lars Vogel says:

    @Wolfgang: thanks I fixed the typo

  7. Pingback: Moving a RCP application from Galileo to Helios: feedback and tips « Bonita open source BPM community blog

Comments are closed.