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 122643 - right click doesnot work
Summary: right click doesnot work
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: JMX (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jean-francois Denise
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-23 14:46 UTC by ceehira
Modified: 2007-11-27 22:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log for nullpointer exception (88.00 KB, text/plain)
2007-11-27 13:59 UTC, ceehira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ceehira 2007-11-23 14:46:45 UTC
in netbeans 6.0 beta 2,

in the source code, sometimes, right mouse click becomes responseless.
And once it get into this state, restarting the netbeans does not solve this problem.
Comment 1 Jiri Prox 2007-11-26 13:32:41 UTC
Can you see this behavior in other java applications?
Comment 2 ceehira 2007-11-27 06:35:14 UTC
No, other java apps run well. Because of this issue in netbeans 6 beta2, i use netbeans 5.5.1. 
In my computer jdk 1.5.0.13 is installed.
Comment 3 Jiri Prox 2007-11-27 09:51:58 UTC
Which OS do you use? Are there any exceptions in the log?
Comment 4 ceehira 2007-11-27 13:59:41 UTC
Created attachment 53549 [details]
messages.log for nullpointer exception
Comment 5 ceehira 2007-11-27 14:03:11 UTC
windows xp, service pack2
jdk1.5.0_13

Errors are as below:

A java.lang.NullPointerException exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your C:\Documents and Settings\Erol Hira\.netbeans\6.0beta2\var\log folder.

------------------------------------------------------------------------------ 
show details :

java.lang.NullPointerException
	at org.netbeans.modules.jmx.JavaModelHelper.isDynamicMBean(JavaModelHelper.java:2735)
	at org.netbeans.modules.jmx.JavaModelHelper.testMBeanCompliance(JavaModelHelper.java:2742)
	at org.netbeans.modules.jmx.actions.AddNotifAction.enable(AddNotifAction.java:90)
	at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:202)
	at org.netbeans.modules.editor.NbEditorKit$LayerSubFolderMenu.addAction(NbEditorKit.java:854)
	at org.netbeans.modules.editor.NbEditorKit$LayerSubFolderMenu.<init>(NbEditorKit.java:776)
	at org.netbeans.modules.editor.NbEditorKit$LayerSubFolderMenu.<init>(NbEditorKit.java:755)
	at org.netbeans.modules.editor.NbEditorKit$NbBuildPopupMenuAction.buildPopupMenu(NbEditorKit.java:327)
	at org.netbeans.editor.ext.ExtKit$BuildPopupMenuAction.actionPerformed(ExtKit.java:264)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:288)
	at org.netbeans.editor.ext.ExtEditorUI.showPopupMenu(ExtEditorUI.java:167)
	at org.netbeans.editor.ext.ExtCaret.showPopup(ExtCaret.java:383)
	at org.netbeans.editor.ext.ExtCaret.mouseReleased(ExtCaret.java:390)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5517)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
	at java.awt.Component.processEvent(Component.java:5282)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3984)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3819)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1791)
	at java.awt.Component.dispatchEvent(Component.java:3819)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 6 Jiri Prox 2007-11-27 14:19:53 UTC
the exception comes from JMX module -> reassigning

As a temporal workaround you can disable JMX module in Tools->Plugins dialog
Comment 7 Jean-francois Denise 2007-11-27 22:18:40 UTC
OK. 
NPE that occurs because we were not able to introspect for the right interface