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 132178

Summary: AIOOB in ProfilerRuntimeCPUFullInstr.methodEntry
Product: profiler Reporter: Maksim Khramov <mkhramov>
Component: BaseAssignee: Tomas Hurka <thurka>
Status: RESOLVED WONTFIX    
Severity: blocker Keywords: VISUALVM
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Stacktrace log for this issue

Description Maksim Khramov 2008-04-07 12:32:17 UTC
Product Version: NetBeans IDE Dev (Build 200804060002)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19

Steps to reproduce:
Create AnagramGame sample application and run it under profiler (CPU mode, Profile Entire application, Profile All Classes).
Invoke Modify Profiling Session and switch from Profile All Classes to Profile Only Project classes.

Switch to tested application and invoke File->About dialog. There are exception from profiled application in IDE output:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 6542
        at org.netbeans.lib.profiler.server.ProfilerRuntimeCPUFullInstr.methodEntry(ProfilerRuntimeCPUFullInstr.java:168)
        at java.util.Collections$UnmodifiableCollection.contains(Collections.java:1000)

see fil stacktrace in attachment
Comment 1 Maksim Khramov 2008-04-07 12:33:31 UTC
Created attachment 59763 [details]
Stacktrace log for this issue
Comment 2 J Bachorik 2008-07-09 11:46:39 UTC
Reproduced. This seems like a problem with dangling invalid instrumentation code.
Assigning.
Comment 3 Tomas Hurka 2009-02-19 10:38:29 UTC
This is actually bug in JVM. Some methods don't get redefined when using jvmti->redefineClasses. Reported as CR 6805864. 
Comment 4 Tomas Hurka 2009-04-15 11:56:28 UTC
This problem cannot be fixed in NetBeans Profiler.