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.
July 12th, 2010 at 1:01 pm
This is also an issue with Eclipse 3.6.
See this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=314814
Regards
July 12th, 2010 at 1:06 pm
@Aurelien I guess that is the drawback of using dynamic services…
July 12th, 2010 at 1:14 pm
@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 ^^
July 12th, 2010 at 1:20 pm
@Aurelien NoServiceException would be great.
July 13th, 2010 at 9:23 am
The second bundle name seems to be cut off
July 13th, 2010 at 9:30 am
@Wolfgang: thanks I fixed the typo
July 20th, 2010 at 6:20 pm
[...] 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 [...]