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 69488

Summary: NPE when trying to profile single file of a WebProject
Product: profiler Reporter: Jiri Sedlacek <jis>
Component: BaseAssignee: Jiri Sedlacek <jis>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jiri Sedlacek 2005-11-28 18:12:45 UTC
When trying to profile single .jsp file from /dist/*.war archive, NPE is thrown:

java.lang.NullPointerException
	at org.netbeans.modules.profiler.actions.AntActions.doProfileProject
(AntActions.java:383)
	at org.netbeans.modules.profiler.actions.AntActions.access$000
(AntActions.java:47)
	at org.netbeans.modules.profiler.actions.AntActions$1.perform
(AntActions.java:99)
	at 
org.netbeans.modules.profiler.actions.FileSensitiveAction.actionPerformed
(FileSensitiveAction.java:51)
	at 
org.netbeans.modules.profiler.actions.ProjectSensitiveAction.actionPerformed
(ProjectSensitiveAction.java:95)
	at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1849)
	...

When trying to profile single .jsp file from /build/web folder, NPE is thrown:

ava.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:396)
	at 
org.netbeans.modules.profiler.j2ee.J2EEProjectTypeProfiler.configurePropertiesFo
rProfiling(J2EEProjectTypeProfiler.java:348)
	at org.netbeans.modules.profiler.actions.AntActions.doProfileProject
(AntActions.java:464)
	at org.netbeans.modules.profiler.actions.AntActions.access$000
(AntActions.java:47)
	at org.netbeans.modules.profiler.actions.AntActions$1.perform
(AntActions.java:99)
	at 
org.netbeans.modules.profiler.actions.FileSensitiveAction.actionPerformed
(FileSensitiveAction.java:51)
	at 
org.netbeans.modules.profiler.actions.ProjectSensitiveAction.actionPerformed
(ProjectSensitiveAction.java:95)
	at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1849)
	...
Comment 1 Jiri Sedlacek 2005-11-28 18:18:13 UTC
Profile single for a WebProject can now be performed on files only from /web 
or /src directories.

Fixed for M11.
Comment 2 ehucka 2006-10-09 12:08:55 UTC
Verification of old issues.
Comment 3 Alexander Kouznetsov 2007-02-20 10:20:59 UTC
Closing old issues
Comment 4 Alexander Kouznetsov 2007-02-20 18:08:52 UTC
Reverting to original Target Milestone value changed by mistake. Sorry for
inconvenience.