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 214119 - org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot$NoDataAvailableException at org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot.<init>
Summary: org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot$NoDataAvailableExcep...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-13 12:08 UTC by Petr Cyhelsky
Modified: 2012-11-15 02:47 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 134424


Attachments
stacktrace (832 bytes, text/plain)
2012-06-13 12:08 UTC, Petr Cyhelsky
Details
stacktrace (765 bytes, text/plain)
2012-10-26 02:57 UTC, misterm
Details
stacktrace (765 bytes, text/plain)
2012-10-26 03:00 UTC, misterm
Details
stacktrace (765 bytes, text/plain)
2012-10-26 03:03 UTC, misterm
Details
stacktrace (832 bytes, text/plain)
2012-10-29 16:15 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2012-06-13 12:08:23 UTC
Build: NetBeans IDE Dev (Build 20120613-8c863e71f71d)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b04, Java(TM) SE Runtime Environment, 1.7.0_06-ea-b13
OS: Mac OS X

User Comments:
choces: Profiling with Substance Look and Feel settings

GUEST: Profiling a program.

GUEST: trying to take a snapshot of a profiling session glassfish 3.0.1.

cyhelsky: profile anagram - instrumented - select everything as root method - profile only project classes -> take snapshot




Stacktrace: 
org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot$NoDataAvailableException
   at org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot.<init>(CPUResultsSnapshot.java:200)
   at org.netbeans.lib.profiler.ProfilerClient.getCPUProfilingResultsSnapshot(ProfilerClient.java:514)
   at org.netbeans.modules.profiler.ResultsManager.prepareSnapshot(ResultsManager.java:712)
   at org.netbeans.modules.profiler.ResultsManager.prepareSnapshot(ResultsManager.java:687)
   at org.netbeans.modules.profiler.ResultsManager.takeSnapshot(ResultsManager.java:855)
   at org.netbeans.modules.profiler.ProfilerControlPanel2$ResultsSnippetPanel$1.run(ProfilerControlPanel2.java:832)
Comment 1 Petr Cyhelsky 2012-06-13 12:08:29 UTC
Created attachment 120777 [details]
stacktrace
Comment 2 Petr Cyhelsky 2012-06-15 12:07:15 UTC
Steps: Profile anagram (CPU,Instrumented, profile only project classes) -> reset results> maximize and minimize anagram to enable the take snapshot button -> take snapshot
Comment 3 misterm 2012-10-26 02:57:11 UTC
Created attachment 126589 [details]
stacktrace
Comment 4 misterm 2012-10-26 03:00:11 UTC
Created attachment 126590 [details]
stacktrace
Comment 5 misterm 2012-10-26 03:03:13 UTC
Created attachment 126591 [details]
stacktrace
Comment 6 Petr Cyhelsky 2012-10-29 16:15:11 UTC
Created attachment 126735 [details]
stacktrace

profile anagram with profiling points set -> reset results -> show anagram window -> take snapshot
Comment 7 Jiri Sedlacek 2012-11-05 15:18:51 UTC
The exception is also reproducible using two profiling points: insert Reset Results at the beginning of Anagrams.initComponents() and Take Snapshot at the end of Anagrams.initComponents().
Comment 8 misterm 2012-11-05 15:20:52 UTC
I think this should be at least P2, since it is a feature that does not work at all.
Comment 9 Jiri Sedlacek 2012-11-05 15:38:42 UTC
Actually works correctly, at least for the two profiling points described in my last comment. No data are collected since no profiling roots are executed between Reset Results and Take Snapshot. To collect the data for this particular case, Libraries/javax.swing needs to be selected as a profiling root. Anyway, it shouldn't throw exceptions when misconfigured.
Comment 10 Tomas Hurka 2012-11-09 10:56:03 UTC
Fixed in profiler-main

changeset:   238726:3f5cccbb0b94
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri Nov 09 11:53:25 2012 +0100
summary:     bugfix #214119, make sure that we have profiling data (for instrumented CPU profiling only)
Comment 11 Quality Engineering 2012-11-15 02:47:35 UTC
Integrated into 'main-golden', will be available in build *201211150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3f5cccbb0b94
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #214119, make sure that we have profiling data (for instrumented CPU profiling only)