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 61067 - ArrayIndexOutOfBoundsException during CPU profiling
Summary: ArrayIndexOutOfBoundsException during CPU profiling
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
: 61655 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-17 11:22 UTC by Jiri Sedlacek
Modified: 2007-02-12 22:29 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 Jiri Sedlacek 2005-07-17 11:22:39 UTC
Analyze Performance, Entire Application, Profile All Classes

Profiling Tomcat (TomcatJSPExample), clicked on Panel Tag File, got this 
exception:

*********** Exception occurred ************ at 12:18 PM on Jul 17, 2005
java.lang.ArrayIndexOutOfBoundsException: 23679
        at 
com.sun.tools.profiler.results.cpu.FlatProfileContainer.removeZeroInvocationEntr
ies(FlatProfileContainer.java:122)
        at com.sun.tools.profiler.results.cpu.FlatProfileContainerFree.<init>
(FlatProfileContainerFree.java:42)
        at 
com.sun.tools.profiler.results.cpu.CPUCallGraphBuilder.createFlatProfileForAllTh
reads(CPUCallGraphBuilder.java:107)
        at com.sun.tools.profiler.ui.cpu.LiveFlatProfilePanel.updateLiveResults
(LiveFlatProfilePanel.java:32)
        at org.netbeans.modules.profiler.LiveResultsWindow$3$1.run
(LiveResultsWindow.java:278)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 iformanek 2005-07-28 16:13:49 UTC
Fixed in M8.

The issue was caused by the fact that the number of profiled methods may have 
been increased in the middle of processing the live results. The fix remembers 
the number of methods processed when arrays are created, rather than asking for 
the number again later from ProfilingSessionStatus.
Comment 2 iformanek 2005-08-03 07:53:21 UTC
*** Issue 61655 has been marked as a duplicate of this issue. ***
Comment 3 ehucka 2006-10-09 12:09:03 UTC
Verification of old issues.
Comment 4 Alexander Kouznetsov 2007-02-12 22:29:39 UTC
Closing old issues.
Comment 5 Alexander Kouznetsov 2007-02-12 22:29:44 UTC
Closing old issues.