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 75274 - Redefinition failed with error 62
Summary: Redefinition failed with error 62
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-20 10:37 UTC by ehucka
Modified: 2006-11-30 16:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
message log (60.90 KB, text/plain)
2006-04-20 12:30 UTC, ehucka
Details
logged file (12.20 KB, application/octet-stream)
2006-09-04 14:15 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2006-04-20 10:37:39 UTC
This error message is sometimes thrown during profiling of j2ee application on
jboss.
Comment 1 Tomas Hurka 2006-04-20 11:28:42 UTC
This report is useless until you provide
1) steps how to reproduce it
2) version of profiler you are using
3) message.log
Comment 2 ehucka 2006-04-20 12:27:31 UTC
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.
Comment 3 ehucka 2006-04-20 12:30:46 UTC
Created attachment 29954 [details]
message log
Comment 4 ehucka 2006-09-04 13:16:16 UTC
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
Comment 5 Tomas Hurka 2006-09-04 13:34:20 UTC
Please attach file org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.class - see and of your log file.
Comment 6 ehucka 2006-09-04 14:09:15 UTC
Where should it be placed? I cannot find it on fs. I reinstalled ide afterwards.
Comment 7 ehucka 2006-09-04 14:15:35 UTC
Created attachment 33558 [details]
logged file
Comment 8 ehucka 2006-09-04 14:16:17 UTC
I have reproduced it again.
Comment 9 Tomas Hurka 2006-09-18 14:49:22 UTC
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.
Comment 10 Tomas Hurka 2006-09-18 14:50:04 UTC
Fixed in trunk.
Comment 11 ehucka 2006-11-30 16:21:18 UTC
verified