This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 139945 - [65cat] Right click on Maven POM project causes exception.
Summary: [65cat] Right click on Maven POM project causes exception.
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-07-14 21:08 UTC by dafreels
Modified: 2008-07-22 13:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dafreels 2008-07-14 21:08:53 UTC
When I open a top level Maven project using the Maven IDE plug-in, I get the following stack trace and the context menu
fails to display. This project has several projects nested below.

java.lang.AbstractMethodError
	at org.codehaus.mevenide.netbeans.execute.ActionToGoalUtils.isActionEnable(ActionToGoalUtils.java:151)
	at org.codehaus.mevenide.netbeans.ActionProviderImpl.isActionEnabled(ActionProviderImpl.java:219)
	at org.netbeans.modules.project.ui.actions.ActionsUtil.commandSupported(ActionsUtil.java:150)
	at org.netbeans.modules.project.ui.actions.ActionsUtil.getProjectsFromLookup(ActionsUtil.java:107)
	at org.netbeans.modules.project.ui.actions.ProjectAction.refresh(ProjectAction.java:127)
	at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.doRefresh(LookupSensitiveAction.java:183)
	at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.isEnabled(LookupSensitiveAction.java:126)
	at org.codehaus.mevenide.netbeans.nodes.MavenProjectNode.getActions(MavenProjectNode.java:151)
	at org.openide.nodes.FilterNode.getActions(FilterNode.java:733)
	at org.openide.nodes.NodeOp.findActions(NodeOp.java:144)
	at org.openide.explorer.view.TreeView.createPopup(TreeView.java:904)
	at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1370)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:182)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.java:177)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
	at java.awt.Component.processMouseEvent(Component.java:6041)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5806)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4413)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2440)
	at java.awt.Component.dispatchEvent(Component.java:4243)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 dafreels 2008-07-14 21:11:23 UTC
The build I am using is the 6.5 daily. (Build 200807101204)
Comment 2 Milos Kleint 2008-07-15 10:12:30 UTC
what is the maven support version you are using? 3.1.3? if not please upgrade.
I would say your installation is somehow corrupt. it's claiming an AbstractMethodError on a method from the same module,
this sort of stuff would be cought by compilation I would say, thus is adeployment problem.


Do you have the same error with a clean user directory?

Comment 3 dafreels 2008-07-15 13:06:18 UTC
I am using version 3.1.3 of the plugin, but when I deleted my user directory, the exception has disappeared. I would
have thought that when Netbeans updated the plugin, it would have upgraded the user directory.
Comment 4 Milos Kleint 2008-07-15 13:39:42 UTC
when was the last time you used the dev build prior to testing the 6.5 builds? it could be that you had some 6.1 or 6.0
daily builds installed and now the 6.5 build reused the old userdir at ~/.netbeans/dev that was long not touched and the
upgrade didn't go well for some reason.
Comment 5 dafreels 2008-07-15 13:58:23 UTC
The dev directory had been created recently just before 6.5 M1 was released.
Comment 6 Milos Kleint 2008-07-22 13:26:28 UTC
closing as wornsforme, unless you have steps to reproduce. 

I was not able to reproduce, the AbstractMethodError denotes some kind of installation/runtime configuration problem.