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 170201 - NullPointerException at org.netbeans.modules.profiler.selector.java.project.nodes.ProjectPackages.prepareChildren
Summary: NullPointerException at org.netbeans.modules.profiler.selector.java.project.n...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: J Bachorik
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-11 14:08 UTC by mklaehn
Modified: 2010-04-30 04:59 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 145216


Attachments
stacktrace (9.35 KB, text/plain)
2009-08-11 14:08 UTC, mklaehn
Details
stacktrace (9.35 KB, text/plain)
2009-08-24 21:52 UTC, minoleg
Details
stacktrace (9.35 KB, text/plain)
2009-09-21 21:59 UTC, jchristi
Details
stacktrace (8.85 KB, text/plain)
2010-04-06 11:09 UTC, Jaroslav Tulach
Details
stacktrace (8.78 KB, text/plain)
2010-04-06 11:32 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mklaehn 2009-08-11 14:08:28 UTC
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)
Comment 1 mklaehn 2009-08-11 14:08:34 UTC
Created attachment 86099 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-08-11 14:08:41 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Comment 3 minoleg 2009-08-24 21:52:05 UTC
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)
Comment 4 minoleg 2009-08-24 21:52:09 UTC
Created attachment 86588 [details]
stacktrace
Comment 5 Exceptions Reporter 2009-08-24 21:52:13 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Comment 6 jchristi 2009-09-21 21:59:23 UTC
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)
Comment 7 jchristi 2009-09-21 21:59:27 UTC
Created attachment 88055 [details]
stacktrace
Comment 8 Exceptions Reporter 2009-09-21 21:59:32 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Comment 9 jchristi 2009-09-21 22:34:42 UTC
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.
Comment 10 jchristi 2009-09-21 22:37:00 UTC
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.
Comment 11 Tomas Hurka 2009-09-22 08:03:16 UTC
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.
Comment 12 Exceptions Reporter 2009-10-07 19:00:27 UTC
This issue already has 8 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Comment 13 Exceptions Reporter 2009-10-21 06:33:19 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Comment 14 Exceptions Reporter 2009-10-21 06:34:13 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Comment 15 Exceptions Reporter 2009-10-21 06:43:18 UTC
This issue already has 11 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145216
Comment 16 Jaroslav Tulach 2010-04-06 11:09:09 UTC
Created attachment 96757 [details]
stacktrace
Comment 17 Jaroslav Tulach 2010-04-06 11:32:13 UTC
Created attachment 96758 [details]
stacktrace
Comment 18 J Bachorik 2010-04-28 07:17:21 UTC
fixed - http://hg.netbeans.org/profiler-main/rev/94d415a63861
Comment 19 Quality Engineering 2010-04-30 04:59:46 UTC
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: