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 59085 - JVMTI redefinition fails with error 62 when memory profiling JSP app in Tomcat or JBoss
Summary: JVMTI redefinition fails with error 62 when memory profiling JSP app in Tomca...
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: rfield
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-20 03:24 UTC by _ gtzabari
Modified: 2007-02-12 22:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans message.log (14.22 KB, text/plain)
2005-08-17 15:00 UTC, vnicolici
Details
IDE messages log featuring profiler JVMTI error 62 (50.85 KB, text/plain)
2005-10-25 09:25 UTC, bruckner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2005-05-20 03:24:51 UTC
dev build 200505171800
Mustang b36

When I run the memory profiler I get tons (every 5 seconds or so) of these errors:

 *** JFluid: redefinition failed for classes:
 <some class name>
 *** with message: Redefinition failed with error 62

Any ideas?
Comment 1 iformanek 2005-06-07 10:54:11 UTC
Gili, can you please provide more info about the application being profiled? 
J2SE, J2EE, what appserver, etc. Also, if possible, attach the IDE log file.
Thanks.
Comment 2 _ gtzabari 2005-06-07 16:04:46 UTC
I no longer have an IDE log because it's been a while since I originally
reported this issue. To my recollection, I was trying to profile code running
inside Tomcat 5.5.9. Let me know whether you can reproduce the problem or not.
Comment 3 iformanek 2005-06-19 11:11:04 UTC
We cannot reproduce this issue. Let's see if M7 due out next week still has 
this problem.
Comment 4 vnicolici 2005-08-17 15:00:40 UTC
Created attachment 23994 [details]
NetBeans message.log
Comment 5 vnicolici 2005-08-17 15:02:17 UTC
I also experienced this problem, Windows XP, NetBeans 4.1, NB Profiler m8v2, 
profiling a J2EE application running on Caucho Resin 3.0.14 Open Source app 
server.

I'm running memory liveness, with record stack trace, track every 10 
allocations.

After about 5 hours of profiling, while having the telemetry window / heap tab 
active, the IDE started to flood me with error popups:

"Redefinition failed with error 62
Check JVMTI documentation for this error code."

I attached the relevant section from messages.log
Comment 6 iformanek 2005-08-17 16:35:21 UTC
Thanks for providing details.
Is this on JDK 5.0 update 4?
Comment 7 vnicolici 2005-08-17 20:53:19 UTC
Yes, JDK 1.5.0_04 for the IDE and the profiled VM.
Comment 8 _ gtzabari 2005-08-20 22:48:38 UTC
I get this error immediately after starting memory profiling on an external
Tomcat 5.5 server under JDK 1.5.0_04 and Netbeans dev build 200508171800. I get
flooded with tons of these warnings and eventually the IDE goes into some sort
of deadlock and has to be killed. Anyway, I've yet to get the profiler working
on my machine :) and it's been months since I've begun trying.
Comment 9 bruckner 2005-10-25 09:24:11 UTC
I'm attaching an extracted IDE log (NB5.0 beta, profiler M9, Java 1.5.0_04-b05)
showing the same problem. I thought that running NetBeans with bytecode
verification off should help, but it didn't.

My netbeans.conf:

netbeans_default_userdir="${HOME}/.netbeans/5.0beta"
netbeans_default_options="-J-Xms256m -J-Xmx256m -J-XX:PermSize=64m
-J-XX:MaxPermSize=64m -J-XX:NewRatio=3 -J-Xverify:none -J-ea"
netbeans_jdkhome="D:\java5"

The method I was trying to profile contains ILOG JViews method calls. JViews'
jar file is obfuscated bytecode, by the way.
Comment 10 bruckner 2005-10-25 09:25:51 UTC
Created attachment 26303 [details]
IDE messages log featuring profiler JVMTI error 62
Comment 11 iformanek 2005-10-25 11:17:49 UTC
We've fixed the memory profiling problems in M10, the issue was caused by the 
fact that the bytecode generated by the JSP compiler in Tomcat/JBoss is 
slightly different than that produced by javac. In Milestone 10 this will work 
correctly.

For the last error added by bruckner, I will file a separate issue.
Comment 12 ehucka 2006-10-09 12:10:02 UTC
Verification of old issues.
Comment 13 Alexander Kouznetsov 2007-02-12 22:22:46 UTC
Closing old issues.