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.
Build: NetBeans IDE Dev (Build nbms-and-javadoc-3667-on-090805) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Windows XP, 5.1, x86 User Comments: mklaehn: tried to select root classes by package for CPU Profiling. Exception occured when selecting a checkbox in the tree GUEST: I was trying to add a method from a dependant library as the root method for profiling. I have done this with 6.5. In particular I was trying to add org.springframework.jms.listener.adapter.MessageListenerAdapter.onMessage(javax.jms.Message, javax.jms.Session) : void and org.springframework.jms.listener.adapter.MessageListenerAdapter.onMessage(javax.jms.Message) : void I needed to do this in the past because if I pick my implementation as the root method the profiler seems to miss it. GUEST: Messing with CPU profiler GUEST: Try to select root methods for profiling. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.profiler.selector.java.project.nodes.ProjectPackages.prepareChildren(ProjectPackages.java:106) at org.netbeans.modules.profiler.selector.java.project.nodes.ProjectPackages.prepareChildren(ProjectPackages.java:64) at org.netbeans.modules.profiler.selector.spi.nodes.SelectorChildren.getNodes(SelectorChildren.java:109) at org.netbeans.modules.profiler.selector.spi.nodes.SelectorNode.children(SelectorNode.java:209) at org.netbeans.modules.profiler.selector.ui.RootSelectorTree.applySelection(RootSelectorTree.java:433) at org.netbeans.modules.profiler.selector.ui.RootSelectorTree.applySelection(RootSelectorTree.java:439)
Created attachment 86099 [details] stacktrace
This issue already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Build: NetBeans IDE 6.7 (Build 200906241340) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.profiler.selector.java.project.nodes.ProjectPackages.prepareChildren(ProjectPackages.java:106) at org.netbeans.modules.profiler.selector.java.project.nodes.ProjectPackages.prepareChildren(ProjectPackages.java:64) at org.netbeans.modules.profiler.selector.spi.nodes.SelectorChildren.getNodes(SelectorChildren.java:109) at org.netbeans.modules.profiler.selector.spi.nodes.SelectorNode.children(SelectorNode.java:209) at org.netbeans.modules.profiler.selector.ui.RootSelectorTree.applySelection(RootSelectorTree.java:433) at org.netbeans.modules.profiler.selector.ui.RootSelectorTree.applySelection(RootSelectorTree.java:439)
Created attachment 86588 [details] stacktrace
This issue already has 6 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Build: NetBeans IDE 6.7 (Build 200906241340) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Windows XP, 5.1, x86 User Comments: Created a new project, pointed to an existing hierarchal multimodule maven 2 project source, and attemped to create profile root method Stacktrace: java.lang.NullPointerException at org.netbeans.modules.profiler.selector.java.project.nodes.ProjectPackages.prepareChildren(ProjectPackages.java:106) at org.netbeans.modules.profiler.selector.java.project.nodes.ProjectPackages.prepareChildren(ProjectPackages.java:64) at org.netbeans.modules.profiler.selector.spi.nodes.SelectorChildren.getNodes(SelectorChildren.java:109) at org.netbeans.modules.profiler.selector.spi.nodes.SelectorNode.children(SelectorNode.java:209) at org.netbeans.modules.profiler.selector.ui.RootSelectorTree.applySelection(RootSelectorTree.java:433) at org.netbeans.modules.profiler.selector.ui.RootSelectorTree.applySelection(RootSelectorTree.java:439)
Created attachment 88055 [details] stacktrace
This issue already has 7 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Trying some additional adds worked, as long as I tried to add them when Attaching to a project in Netbeans. If I change the "Attach To" dropdown at the top to <External Application>, then I get this error. Makes the profiler useless for what I need to use if for.
Changing priority based on http://wiki.netbeans.org/BugPriorityGuidelines since: 1) this bug has more than 5 duplicates. 2) nobody has provided a workaround, and I've been unable to figure a successful workaround on how to add a method to be the root profiling method when remote profiling.
To jchristi: there is no duplicate and there is 7 duplicate exceptions reports, so it is P3. It will be P2, when there is 20 duplicate exceptions reports. Can you provide steps how to reproduce this problem? Does NB 6.5 work fine? It looks like there is no classpath associated with the particular project.
This issue already has 8 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145216
This issue already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145216
This issue already has 11 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Created attachment 96757 [details] stacktrace
Created attachment 96758 [details] stacktrace
fixed - http://hg.netbeans.org/profiler-main/rev/94d415a63861
Integrated into 'main-golden', will be available in build *201004300200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log: