Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » MenuService WorkbenchContext/TrimmedWindowImpl( org.eclipse.e4.core.di.InjectionException without precise information)
MenuService WorkbenchContext/TrimmedWindowImpl [message #1830666] Thu, 30 July 2020 19:03 Go to next message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 197
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
Hi
when I run my e4 product, on startup I get the following error message without further information:

MenuService: WorkbenchContext: org.eclipse.e4.core.di.InjectionException: Unable to process "MenuService.myPart": no actual value was found for the argument "MPart".
MenuService: TrimmedWindowImpl (ch.eugster.herakles.app.window.main) Context: org.eclipse.e4.core.di.InjectionException: Unable to process "MenuService.myPart": no actual value was found for the argument "MPart".


I tried to debug to find the problem but without success. What am I doing wrong?
Christian

[Updated on: Thu, 30 July 2020 19:04]

Report message to a moderator

Re: MenuService WorkbenchContext/TrimmedWindowImpl [message #1830669 is a reply to message #1830666] Thu, 30 July 2020 20:24 Go to previous message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 191
Registered: April 2012
Senior Member
No clue what you are doing wrong, but got some clues where the error comes from.

The error is raised by MenuServiceCreationFunction, this context function is in charge of creating the EMenuService/MenuService. The MenuService has a field 'private MPart myPart' which is being injected. Apparently, you are requesting a EMenuService in a context where no MPart is available. The context that is used is 'WorkbenchContext' which I can imagine that it doesn't have a MPart.

Are you using EMenuService to create menus Controls that are not within a MPart?
Previous Topic:The Future - ARM CPU's
Next Topic:Toolbar not resize after IElementUpdater
Goto Forum:
  


Current Time: Sun Apr 11 16:59:41 GMT 2021

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

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

Back to the top