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 185005 - NullPointerException at org.netbeans.modules.jmx.JavaModelHelper$IsDynamicMBeanVisitor.visitClass
Summary: NullPointerException at org.netbeans.modules.jmx.JavaModelHelper$IsDynamicMBe...
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: JMX (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jean-francois Denise
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-26 14:06 UTC by Exceptions Reporter
Modified: 2010-04-26 14:06 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 1500


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-04-26 14:06:00 UTC
This issue was reported manually by mmirilovic.
It already has 35 duplicates 


Build: NetBeans IDE 6.0 Beta 2 (Build 200710212201)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows 2000

User Comments:
juhrik: Steps to reproduce:
-Install JMX from NetBeans stable Update Center
-Open j2se project that is already in some cvs repository
-Invoke popup menu in Projects view
->the NPE appears in Exception dialog

GUEST: Right clicking on a file in Projects.

gtg: After this the popup menu is out of reach until removing of directory "./netbeans/6.0beta2".

janton: Right-Click on any point on the java editor window

ieising: I rightclicked on a newly created class in the project view.

GUEST: Editing java class. Right click to show context menu gives exception.

marjo8: right-clicking an editor tab

darrinps: Right clicking on an extended class :

Ex.

public class Test extends BaseHelp

Right clicking on BaseHelp caused this.

xadamek2: I tried to open popup menu using right mouse button in java editor.

GUEST: - create a Visual MIDlet
- change to source view (via Tab "Source")
- mouse rightclick to open the context menu

darrinps: Right clicked on a source file.

darrinps: right clicked a hilighted variable.

tfrysinger: Opened a source file.

Double-click on a class constructor in order to highlight it so I could right-click and 
view source. When I right-clicked - null pointer occurred.

GUEST: when i right click in the edit area,the exception occured,and the pop menu didn't appear.

mvaar: This happens whenever I right click on a java source file in the 'project' window AND the src is under subversion VC.

It does NOT happen if -

The src file is not under subversion ( do not know about other VCS)
The file is 'xml' file or other non-java src ( cannot vouch for ALL non-java files, though). 

It seems to happen only to java src under subversion !

I am ABLE to access the version control functionality from the Versioning-> menu item and I can execute subversion functions that way.

darrinps: All I did was right click on a variable.

GUEST: Right clicking on a class from OpenJDK - using a netbeans 6 free form project.
Here is a descriptive of a few peculiarity of this OpenJDK netbeans 6 project:

   * the project sources are under Mercurial
   * the Mercurial plugin is enabled 
   * the project contains sources that comes from several mercurial repositories 
     organised into a mercurial forest
   * ${includes} and ${excludes} are defined - and ${excludes} is not empty
   * due to ${includes} and ${excludes}, one of the sources folder doesn't contain
     any file.

tamer_sk: when right clicking any where in the editing area




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.jmx.JavaModelHelper$IsDynamicMBeanVisitor.visitClass(JavaModelHelper.java:140)
   at org.netbeans.modules.jmx.JavaModelHelper$IsDynamicMBeanVisitor.visitClass(JavaModelHelper.java:120)
   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:607)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
   at com.sun.source.util.TreeScanner.scan(TreeScanner.java:90)
   at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:98)