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 116684 - NPE on selecting project root in Select Root Methods dialog
Summary: NPE on selecting project root in Select Root Methods dialog
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 14:33 UTC by Maksim Khramov
Modified: 2007-09-27 12:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stacktrace log for this issue (8.73 KB, text/plain)
2007-09-25 14:33 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2007-09-25 14:33:08 UTC
Product Version: NetBeans IDE Dev (Build 200709201200)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Steps to reproduce:
Create Web Application with Visual Web Java Server Faces framework
Open SPT dialog.
Select Profile CPU Mode
Select 'Part of Application' and click on 'define' link
In 'Specify Root Methods' dialog click 'Add From project' button.
In 'Select Root Methods' click on checkbox near the project name. The NPE is thrown:
java.lang.NullPointerException
	at org.netbeans.modules.profiler.selector.api.nodes.AbstractClassNode.<init>(AbstractClassNode.java:37)
	at org.netbeans.modules.profiler.selector.api.nodes.ClassNode.<init>(ClassNode.java:45)
see full in attachment.

The tree is also not expandable.
Comment 1 Maksim Khramov 2007-09-25 14:33:43 UTC
Created attachment 49464 [details]
Stacktrace log for this issue
Comment 2 J Bachorik 2007-09-25 15:36:38 UTC
this is caused basically by some classpath tricks used by the VisualJSF module. eg. the exception handler servlet uses a
class that is not accessible for the retouche - and this results in NPE in the part of code that expects the servlet
class to be resolved.
added a simple logic to omit all such classes
Comment 3 Maksim Khramov 2007-09-27 12:33:33 UTC
Verified in build 200709270000