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 49227 - Tool crashes with ArrayIndexOutOfBoundsException when doing memory profiling
Summary: Tool crashes with ArrayIndexOutOfBoundsException when doing memory profiling
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: mishadmitriev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-18 04:31 UTC by mishadmitriev
Modified: 2006-07-24 14:30 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 mishadmitriev 2004-09-18 04:31:38 UTC
As reported by Jon Christiansen at gmail.com, the 
following exceptions occurs when doing memory 
profiling without any user's action:

java.lang.IndexOutOfBoundsException: Index: 0, 
Size: 0
	at java.util.ArrayList.RangeCheck
(ArrayList.java:507)
	at java.util.ArrayList.get
(ArrayList.java:324)
	at 
com.sun.tools.profiler.instrumentation.MemoryProfM
ethodInstrumentor.createInstrumentedMethodPack
(MemoryProfMethodInstrumentor.java:172)
	at 
com.sun.tools.profiler.instrumentation.MemoryProfM
ethodInstrumentor.getMethodsToInstrumentUponClassL
oad(MemoryProfMethodInstrumentor.java:58)
	at 
com.sun.tools.profiler.instrumentation.Instrumento
r.createFollowUpInstrumentMethodGroupResponseForMe
moryProfiling(Instrumentor.java:299)
	at 
com.sun.tools.profiler.instrumentation.Instrumento
r.createFollowUpInstrumentMethodGroupResponse
(Instrumentor.java:92)
	at 
com.sun.tools.profiler.ProfilerClient.instrumentMe
thodGroupFollowUp(ProfilerClient.java:547)
	at 
com.sun.tools.profiler.ProfilerClient.access$1800
(ProfilerClient.java:42)
	at 
com.sun.tools.profiler.ProfilerClient$ServerListen
er.handleServerCommand(ProfilerClient.java:932)
[catch] at 
com.sun.tools.profiler.ProfilerClient$ServerListen
er.run(ProfilerClient.java:880)
Comment 1 mishadmitriev 2004-09-18 04:33:45 UTC
The problem has been hopefully identified, and the fixed code sent to 
the user. Awaiting their response to decide on further actions.
Comment 2 mishadmitriev 2004-09-20 09:52:15 UTC
User received the patched code and ran it for a day - the problem 
doesn't show up anymore.
Comment 3 ehucka 2006-07-24 14:30:49 UTC
old issue, closed