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.
This error message is sometimes thrown during profiling of j2ee application on jboss.
This report is useless until you provide 1) steps how to reproduce it 2) version of profiler you are using 3) message.log
I do not have any special steps to reproduce. Just to start profiling of a j2ee application with jboss 4.0.3, mostly cpu profiling, entire application, exclude java codes, without server startup. Last version of 5.5 profiler (according to issue Version). I have seen it on solaris amd64 and linux x86, jdk 1.5.0_06. message.log contains always only: IDEAppStatusHandler - error: Redefinition failed with error 62 Check JVMTI documentation for this error code.
Created attachment 29954 [details] message log
I have seen it again: jdk 1.5.0_09 b1, jboss 4.0.4 GA CPU profiling, part of application JBOss log fragment: 13:57:56,546 INFO [EARDeployer] Started J2EE application: file:/E:/Builds/j2ees/jboss-4.0.4.GA/server/default/deploy/jbosstest.ear 13:58:32,453 ERROR [STDERR] Profiler Agent Error: Redefinition failed for classes: 13:58:32,453 ERROR [STDERR] org.eclipse.jdt.internal.compiler.ast.FieldDeclaration 13:58:32,453 ERROR [STDERR] Profiler Agent Error: with message: Redefinition failed with error 62 Check JVMTI documentation for this error code. 13:58:32,453 ERROR [STDERR] Debug: writing class file: org.eclipse.jdt.internal.compiler.ast.FieldDeclaration, into file: org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.class
Please attach file org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.class - see and of your log file.
Where should it be placed? I cannot find it on fs. I reinstalled ide afterwards.
Created attachment 33558 [details] logged file
I have reproduced it again.
Can be easily reproduced on the following test class: ------------------------------ public class Main { Object f; void test() { System.out.println("Test"); } public static void main(String[] args) { new Main().foo(); } void foo() { if (f!=null) { Main m = new Main(); try { test(); } finally { m.f=null; } } } } ------------------------------- Note that the class _must_ compiled by jikes.
Fixed in trunk.
verified