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 82890 - [ProfilingPoints] NPE thrown during analyze performance with profiling points
Summary: [ProfilingPoints] NPE thrown during analyze performance with profiling points
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-17 11:09 UTC by Pavel Rehak
Modified: 2007-03-22 14:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Rehak 2006-08-17 11:09:55 UTC
NetBeans IDE Dev (Build 200608161800)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b87
Windows XP version 5.1 running on x86
cs_CZ (nb); Cp1250
--
in simple java app with following defined
profiling points:

 -start profiling
 -reselt results
        try {
            // TODO code application logic here
            Thread.sleep(3000);
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        
 -stop profiling
 -take snapshot

invoke Analyze Performance | Rergions Defined by PP
following NPE is thrown:

java.lang.NullPointerException
        at
com.sun.tools.profiler.server.ProfilerRuntime.writeProfilingPointHitEvent(ProfilerRuntime.java:52)
        at
com.sun.tools.profiler.global.ProfilingPointServerHandler.profilingPointHit(ProfilingPointServerHandler.java:34)
        at
com.sun.tools.profiler.server.TakeSnapshotProfilingPointHandler.profilingPointHit(TakeSnapshotProfilingPointHandler.java:34)
        at
com.sun.tools.profiler.server.ProfilerRuntime.profilePointHit(ProfilerRuntime.java:41)
done
        at javaapplication1.Main.main(Main.java:39)
Profiler Agent: Connection with agent closed
Profiler Agent: Connection with agent closed
Profiler Agent: Initializing...
Profiler Agent: Options: >"F:\netbeans\6.0\daily\profiler1\lib",5140,10<
Profiler Agent: Initialized succesfully
Comment 1 Jiri Sedlacek 2007-03-22 14:12:23 UTC
Does not occur after Profiling Points reimplementation - Start profiling and 
Stop profiling no longer available.