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 89971

Summary: Profiling of j2ee application doesn't work
Product: profiler Reporter: ehucka <ehucka>
Component: BaseAssignee: issues@profiler <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ehucka 2006-11-23 17:54:22 UTC
NetBeans IDE Dev (Build 200610231800)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Linux version 2.6.16-1.2122_FC5 running on i386
profiler 061123

I tried to profile a j2ee application (containing ejb and web project) on
glassfish server from ide (by Profile Project action). I tried monitoring,
memory usage and analyze performance (entire and part of application). All tasks
ends by NPE:

 java.lang.NullPointerException
        at
com.sun.tools.profiler.client.ClientUtils$SourceCodeSelection.hashCode(ClientUtils.java:163)
        at java.util.HashMap.put(HashMap.java:372)
        at java.util.HashSet.add(HashSet.java:200)
        at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
        at
com.sun.tools.profiler.marker.CompositeMarker.getMarkerMethods(CompositeMarker.java:111)
        at
org.netbeans.modules.profiler.actions.AntActions.doProfileProject(AntActions.java:499)
        at
org.netbeans.modules.profiler.actions.AntActions.access$000(AntActions.java:64)
        at
org.netbeans.modules.profiler.actions.AntActions$6.perform(AntActions.java:366)
        at
org.netbeans.modules.project.ui.actions.MainProjectAction.actionPerformed(MainProjectAction.java:123)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 1 Tomas Hurka 2006-11-27 23:15:07 UTC
Fixed in trunk.
Comment 2 ehucka 2006-11-30 16:16:18 UTC
verified