Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 189353 - IndexOutOfBoundsException from ClassDumpSegment.getClassDumpByID
IndexOutOfBoundsException from ClassDumpSegment.getClassDumpByID
Product: profiler
Classification: Unclassified
Component: Engine
All All
: P3 (vote)
: 7.0
Assigned To: Tomas Hurka
: 189338 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2010-08-10 12:54 UTC by Tomas Hurka
Modified: 2011-02-24 16:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2010-08-10 12:54:13 UTC
IndexOutOfBoundsException is thrown in some situations when Heap.getJavaClassByID() is invoked with instance id instead of class id. 

java.lang.IndexOutOfBoundsException: Index: 451168, Size: 25362
	at java.util.ArrayList.RangeCheck(
	at java.util.ArrayList.get(
	at org.netbeans.lib.profiler.heap.ClassDumpSegment.getClassDumpByID(
	at org.netbeans.lib.profiler.heap.HprofHeap.getJavaClassByID(
	at org.netbeans.modules.profiler.oql.engine.api.impl.Snapshot.findClass(
	at org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineImpl.executeQuery(
	at org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineImpl.executeQuery(
	at org.netbeans.modules.profiler.oql.engine.api.OQLEngine.executeQuery(
[catch] at org.netbeans.modules.profiler.heapwalk.OQLController$1$
	at org.openide.util.RequestProcessor$
	at org.openide.util.RequestProcessor$
Comment 1 Tomas Hurka 2010-08-10 13:14:43 UTC
Fixed in profiler-main

changeset:   175418:fc7f10cd783b
user:        Tomas Hurka <>
date:        Tue Aug 10 15:08:24 2010 +0200
summary:     bugfix #189353, List.get() throws IndexOutOfBoundsException, make sure that the method returns correct ClassDump instance
Comment 2 Tomas Hurka 2010-08-11 07:53:46 UTC
*** Bug 189338 has been marked as a duplicate of this bug. ***
Comment 3 Quality Engineering 2010-08-12 02:58:21 UTC
Integrated into 'main-golden', will be available in build *201008120001* on (upload may still be in progress)
User: Tomas Hurka <>
Log: bugfix #189353, List.get() throws IndexOutOfBoundsException, make sure that the method returns correct ClassDump instance

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo