Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » "Invalid Menu Extension (Path is invalid)" at product execution
"Invalid Menu Extension (Path is invalid)" at product execution [message #300738] Thu, 16 March 2006 11:46 Go to next message
Eclipse UserFriend
Originally posted by: cboudjennah.hotmail.com

Hi!
I'm working on a RCP application and when I starts it I have those logs:

Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.configManager Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates Invalid Menu Extension (Path is invalid): org.eclipse.ui.actions.showKeyAssistHandler Invalid Menu Extension (Path is invalid): org.eclipse.ui.edit.text.gotoLastEditPosition

I work with Eclipse 3.1.2. I really don't understand those errors since all the mentionned ids of those logs aren't used in my workspace...
Could somebody please help me???

Thanks by advance!!
Re: "Invalid Menu Extension (Path is invalid)" at product execution [message #300831 is a reply to message #300738] Fri, 17 March 2006 10:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cboudjennah.hotmail.com

Another quite weird thing: I tried something...I made very simple RCP projects using the Eclipse templates (I tried with "RCP application with a view" and "Hello World RCP") and for those projects (I added nothing to the projects created by Eclipse), the executions lead to the same errors...
I really don't understand...Is it because of the version of Eclipse and the version of the JDK (1.5.0_01) I'm using (I tried the same "experience" with the computer of one, same versions of eclipse and jdk, of my collegues and encountered the same issues)?
Re: "Invalid Menu Extension (Path is invalid)" at product execution [message #300875 is a reply to message #300738] Sat, 18 March 2006 12:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kd3725.gmail.com

C. BOUDJENNAH wrote:
> Hi!
> I'm working on a RCP application and when I starts it I have those logs:
>
> Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.configManager Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates Invalid Menu Extension (Path is invalid): org.eclipse.ui.actions.showKeyAssistHandler Invalid Menu Extension (Path is invalid): org.eclipse.ui.edit.text.gotoLastEditPosition
>
> I work with Eclipse 3.1.2. I really don't understand those errors since all the mentionned ids of those logs aren't used in my workspace...
> Could somebody please help me???
>
> Thanks by advance!!
I am having the same issue. Can anyone please shed light on this issue?
I am trying to build a GEF RCP application based on the Shapes
application. I have pasted my errors below (the app runs, but stderr
spits out these lines):

Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu
Invalid Menu Extension (Path is invalid):
org.eclipse.update.ui.configManager
Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates
Invalid Menu Extension (Path is invalid):
org.eclipse.ui.actions.showKeyAssistHandler

I have the latest stable stream builds of Eclipse, GEF

Thanks
Re: "Invalid Menu Extension (Path is invalid)" at product execution [message #300935 is a reply to message #300875] Mon, 20 March 2006 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cboudjennah.hotmail.com

I just noticed another quite weird thing: when I run the Eclipse product activating my plugins, the logs aren't there anymore...It seems to work in plugin mode but not in RCP mode...Please Heeeeeeeeeeeeelp!!
Re: "Invalid Menu Extension (Path is invalid)" at product execution [message #300938 is a reply to message #300935] Mon, 20 March 2006 10:55 Go to previous messageGo to next message
Eclipse UserFriend
The "why" is you've included a plugin that creates an actionSet and
specifies a menu. It looks like the menu is created by an extension in
a plugin you DIDN'T include.

That's why there's no errors reported in the eclipse case, just in your
RCP case (which includes less plugins).

You need to find the plugin that provides the menu and include it to get
rid of the errors ... but they're probably describing functionality that
won't work propertly in your RCP app, but that you didn't plan to use
anyway.

Later,
PW
Re: "Invalid Menu Extension (Path is invalid)" at product execution [message #300956 is a reply to message #300875] Mon, 20 March 2006 17:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kd3725.gmail.com

kd3725 wrote:
> C. BOUDJENNAH wrote:
>> Hi!
>> I'm working on a RCP application and when I starts it I have those logs:
>>
>> Invalid Menu Extension (Path is invalid):
>> org.eclipse.update.ui.updateMenu Invalid Menu Extension (Path is
>> invalid): org.eclipse.update.ui.configManager Invalid Menu Extension
>> (Path is invalid): org.eclipse.update.ui.newUpdates Invalid Menu
>> Extension (Path is invalid):
>> org.eclipse.ui.actions.showKeyAssistHandler Invalid Menu Extension
>> (Path is invalid): org.eclipse.ui.edit.text.gotoLastEditPosition
>> I work with Eclipse 3.1.2. I really don't understand those errors
>> since all the mentionned ids of those logs aren't used in my workspace...
>> Could somebody please help me???
>>
>> Thanks by advance!!
> I am having the same issue. Can anyone please shed light on this issue?
> I am trying to build a GEF RCP application based on the Shapes
> application. I have pasted my errors below (the app runs, but stderr
> spits out these lines):
>
> Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu
> Invalid Menu Extension (Path is invalid):
> org.eclipse.update.ui.configManager
> Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.actions.showKeyAssistHandler
>
> I have the latest stable stream builds of Eclipse, GEF
>
> Thanks
Ok, I got it! Here is how to solve this for those who are still
encountering this problem.

FIrst, the problem I was having:
-"Invalid Menu Extension" messages output as syserr
-These messages show up on RCP but not when I run as plugin only
I think these are the only symptoms that you need to identify to know if
you had the same problem as me.

The solution:
Add the below indicated lines (shown with ">>>" preceding the line) to
your ApplicationActionBarAdvisor or whatever extends ActionBarAdvisor in
your case. This added code is added to whatever code you may already
have in place (doesn't replace it. Just add these indicated lines in to
your fillMenuBar function)

protected void fillMenuBar(IMenuManager menuBar)
{
MenuManager fileMenu = new MenuManager("&File",
IWorkbenchActionConstants.M_FILE);
>>> MenuManager helpMenu = new MenuManager("&Help",
IWorkbenchActionConstants.M_HELP);

menuBar.add(fileMenu);
>>> menuBar.add(helpMenu);

// NOTE: you can add to Help menu but that is optional
>>> helpMenu.add(aboutAction);
}


The reason (my reason, at least):
I think including one of the jars required for including
org.eclipse.ui.ide adds 'software updates' stuff and 'key assist...'
stuff. It adds this to your help menu, and when you don't have one set
up, it complains to syserr. So all I have done is put in the code for
including a help menu in the menu bar. That seemed to work.

I would like to know if this is addressed in 3.2 as the RCP tutorial
suggests, and until then, is there a way to turn it off? Are there any
other similar peculiarities that I should know about that I may
encounter later?

Thanks,
kd3
Re: "Invalid Menu Extension (Path is invalid)" at product execution [message #301449 is a reply to message #300738] Thu, 30 March 2006 20:29 Go to previous message
Eclipse UserFriend
Originally posted by: bennyflint.gmail.com

I had this problem and discovered that it had to do with extending EditorPart in my RCP. What I found out is that the org.eclipse.ui.editors plugin that I was including in my application defines an action (id: 'org.eclipse.ui.edit.text.gotoLastEditPosition'; label: '%goToLastEditPosition.label') under an actionSet extension (id: 'org.eclipse.ui.edit.text.actionSet.navigation'; label: '%textEditorNavigationActionSet.label'). The menuBarPath for the action is "navigate/", meaning that the action expects a Navigate menu in your RCP. This seems silly to me, but that's the way it is.

So, one way to get rid of the error is to create a "Navigate" menu in your RCP. I'm sure there is a far better way to fix the problem, but I'm a relative noob and haven't taken the time to figure it out yet. I hope someone with a little more expertise can use this information to offer a better solution.
-Ben
Previous Topic:Jar'ed plugins
Next Topic:Introduction of Eclipse To New Users
Goto Forum:
  


Current Time: Wed Jul 16 19:19:20 EDT 2025

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

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

Back to the top