Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » @Translation @Inject: org.eclipse.e4.core.di.InjectionException(Eclipse 4 internationalization)
@Translation @Inject: org.eclipse.e4.core.di.InjectionException [message #1736444] Wed, 29 June 2016 12:36 Go to next message
Jim 20100 is currently offline Jim 20100Friend
Messages: 69
Registered: June 2016

I followed the basic tutorial to translate my application.

1) I created a Message class

public class Messages {
public String label;
public String msg;

2) In my package I have my property file:
label= testTitle
msg= Mon message

3) In my custom classes I have for example:

public class Test {

Messages messages;

private void test(){

MessageBox messageBoxTest = new MessageBox(shell, SWT.ICON_QUESTION
int responseTest =;


org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(
at org.eclipse.core.commands.Command.executeWithChecks(
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$6(
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Display.sendEvent(

Thx for any help
Re: @Translation @Inject: org.eclipse.e4.core.di.InjectionException [message #1736471 is a reply to message #1736444] Wed, 29 June 2016 15:16 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 877
Registered: January 2012
Senior Member

The InjectionException is wrapping a NullPointerException. There should be more in that stack trace to point to the root cause.
Re: @Translation @Inject: org.eclipse.e4.core.di.InjectionException [message #1736472 is a reply to message #1736471] Wed, 29 June 2016 15:26 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2860
Registered: July 2012
Senior Member
Is the org.eclipse.equinox.ds bundle automatically started in your run configuration?
Previous Topic:How can maven take unpack jars from repository
Next Topic:TERRIBLE update to Neon
Goto Forum:

Current Time: Mon Aug 15 02:06:49 GMT 2022

Powered by FUDForum. Page generated in 0.02193 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top