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 167132 - [67cat] IllegalStateException: Adding stacktrace with timestamp 11289622752949 is not allowed after a stacktrace with timestamp 11289646118000 has been added
Summary: [67cat] IllegalStateException: Adding stacktrace with timestamp 1128962275294...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: J Bachorik
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-15 20:47 UTC by esmithbss
Modified: 2009-06-30 17:31 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 152635


Attachments
stacktrace (1.19 KB, text/plain)
2009-06-15 20:47 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2009-06-15 20:47:05 UTC
Build: NetBeans IDE Dev (Build 200906150201)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux, 2.6.28-13-generic, i386

User Comments:
esmithbss: I left my system after a test of RESTful Web Services.  Screen Saver popped on.  When I returned, this was on my screen.



Stacktrace: 
java.lang.IllegalStateException: Adding stacktrace with timestamp 11289622752949 is not allowed after a stacktrace with timestamp 11289646118000 has been added
        at org.netbeans.lib.profiler.results.cpu.StackTraceSnapshotBuilder.addStacktrace(StackTraceSnapshotBuilder.java:242)
        at org.netbeans.lib.profiler.results.cpu.StackTraceSnapshotBuilder.createSnapshot(StackTraceSnapshotBuilder.java:444)
        at org.netbeans.modules.profiler.actions.SelfSamplerAction$Controller.actionPerformed(SelfSamplerAction.java:198)
        at org.netbeans.core.TimableEventQueue.done(TimableEventQueue.java:141)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:125)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
Comment 1 esmithbss 2009-06-15 20:47:09 UTC
Created attachment 83604 [details]
stacktrace
Comment 2 Jaroslav Tulach 2009-06-20 13:02:54 UTC
Jarda, can you help? I do not think this failure is related to any of my changes, this is the old behaviour of 
SelfProfileAction written by you, I have not touched it at all.
Comment 3 J Bachorik 2009-06-22 10:51:00 UTC
Yes, the fault was in the StackTraceSnapshotBuilder logic causing data race.

Fixed in http://hg.netbeans.org/profiler-main/rev/b527f4ab86ae
Comment 4 rgarske 2009-06-29 09:34:04 UTC
yardus, can you confirm that your fix was uploaded in Netbeans IDE Dev 200906230201? If it was, I have news for you,
see Exception 221049, which happened using that build.
Comment 5 J Bachorik 2009-06-29 09:44:47 UTC
No, the fix still has not been propagated. Let's hope it will get in soon (an automated comment from QA will be added to
this issue)
Comment 6 Quality Engineering 2009-06-30 17:31:46 UTC
Integrated into 'main-golden', will be available in build *200906301400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b527f4ab86ae
User: Jaroslav Bachorik <yardus@netbeans.org>
Log: #167132 - fixed possible data race causing IllegalStateException