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:


java.lang.NullPointerException
	at org.eclipse.e4.ui.internal.workbench.E4CommandProcessor.processCommands(E4CommandProcessor.java:52)

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.

Tags:
Filed under: Eclipse

Comments

  1. Aurelien Pupier Says:

    This is also an issue with Eclipse 3.6.

    See this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=314814

    Regards

  2. Lars Vogel Says:

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

  3. Aurelien Pupier Says:

    @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. Moving a RCP application from Galileo to Helios: feedback and tips « Bonita open source BPM community blog Says:

    [...] is not identified as required. This is the “drawback of using Dynamic Services” (to quote Lars Vogel). This same issue is also problematic with e4. You can find the related bug [...]


Switch to our mobile site