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.
Got ArrayIndexOutOfBoundsException trying to use memory profiler and attach to already running JVM: Steps: 1. Start target JVM (Apache JServ) 2. In NetBeans IDE, select "Profile -> Attach and Profile 3. Enter working directory and select "Analyze Memory Usage". 4. Enter PID of target JVM 5. Click "Attach" 6. Got the exception. I do see the thread dump and the following message in the target JVMs output: JFluid: current dir is /dx/oracleom/sto/public JFluid: target app manager starting on port 5140 I was also able to attach and use the "Monitor Application option"
Created attachment 18873 [details] ide.log with exception stack trace
(I am using NetBeans 3.6)
From this stack trace, it looks like JFluid tried to scan the bytecodes of some class and bumped into an unknown bytecode 224, which is not defined in the JVM Specification. Since it might not be easy to reproduce the problem here, I can initially provide the user with patched code that should emit more information about the class in which this occurred. Then we can analyse this class's bytecode to see what could have caused the issue. Does this sound reasonable? Misha
Misha, Please do send me the patched code. I can try it out and report the results back to you. Thanks Sam
Created attachment 18909 [details] Class file causing exception
Fixed the root cause (incorrect reporting of bytecode lengths for some rarely used bytecodes) and sent the patched code to the user for testing. The updated code will become publically available in M4 release.
Verified the patch fixed the issue.