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 67483 - JVMTI Error 62 when using Part of Application CPU profiling of application that uses ILOG JViews
Summary: JVMTI Error 62 when using Part of Application CPU profiling of application th...
Status: RESOLVED INVALID
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-25 11:29 UTC by iformanek
Modified: 2006-10-23 16:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Log file (50.85 KB, text/plain)
2005-10-25 11:30 UTC, iformanek
Details
cpu call tree missing a node and console output showing error 62 (67.35 KB, image/jpeg)
2006-02-03 01:06 UTC, williamn
Details
correct results, no JVMTI error (213.96 KB, image/png)
2006-02-03 15:10 UTC, Tomas Hurka
Details
messages.log (16.77 KB, text/plain)
2006-02-05 22:32 UTC, williamn
Details
Netbeans profile-single output window showing error 62 for TestAClass (18.49 KB, text/plain)
2006-02-05 22:37 UTC, williamn
Details
cpu call tree, showing String.valueOf() as leaf node, missing AClass.toString() (18.73 KB, image/jpeg)
2006-02-05 22:48 UTC, williamn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iformanek 2005-10-25 11:29:49 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 1 iformanek 2005-10-25 11:30:42 UTC
Created attachment 26308 [details]
IDE Log file
Comment 2 williamn 2006-02-03 00:50:31 UTC
Below a simple 2 class test case using nothing but String and 
System.out.println(). The test case produces the same error, 100% repeatable, 
when using part of application profiling on TestAClass.main().

#################
package com.anca.test.nb;

public class AClass
{
    private String m_state;
    
    public static AClass EFFICIENT = new AClass("Set of parameters producing 
special case of AClass")
    {
        public String toString()
        {
            return "AClass state:\n\tState of special AClass instance";
        }
    };
    
    public AClass(String arguments)
    {
        m_state = "result of some alrogrithm on " + arguments;
    }
    
    public String toString()
    {
        return "AClass state:\n\t" + m_state;
    }
}
######################
package com.anca.test.nb;

public class TestAClass
{
    public TestAClass()
    {
        AClass generic = new AClass("Some generic AClass constructor 
arguments");
        AClass efficient = AClass.EFFICIENT;
        System.out.println(generic);
        System.out.println(efficient);
    }
    
    public static void main(String[] args)
    {
        TestAClass tst = new TestAClass();
    }
    
}
Comment 3 williamn 2006-02-03 01:05:04 UTC
In terms of issue priority, please consider that the occurrance of this error 
produces invalid profiling results.

The resulting profiling snap shot does not provide any node 
for "AClass.toString()". The tree opens from AClass.init() directly to lower 
level methods.

I will attach a screen shot of the CPU call tree and Console output of the 
redefinition error of AClass (messages.log does not contain the class name).
Comment 4 williamn 2006-02-03 01:06:55 UTC
Created attachment 28727 [details]
cpu call tree missing a node and console output showing error 62
Comment 5 Tomas Hurka 2006-02-03 09:35:16 UTC
I cannot reproduce it. See attached screenshot. There is no JVMTI Error 62 and AClass.toString() is there. 
Please attach your messages.log anyway.
Comment 6 Tomas Hurka 2006-02-03 15:10:03 UTC
Created attachment 28739 [details]
correct results, no JVMTI error
Comment 7 williamn 2006-02-05 22:31:09 UTC
I am using Netbeans 5.0 RC2 and Profiler 5 RC2 running on Java HotSpot(TM) 
Client VM 1.5.0-b64.

netbeans.conf:
netbeans_default_options="-J-Xms500m -J-Xmx750m -J-XX:PermSize=32m -J-
XX:MaxPermSize=96m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-
XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-
XX:+CMSPermGenSweepingEnabled"
Comment 8 williamn 2006-02-05 22:32:56 UTC
Created attachment 28760 [details]
messages.log
Comment 9 williamn 2006-02-05 22:37:15 UTC
Created attachment 28761 [details]
Netbeans profile-single output window showing error 62 for TestAClass
Comment 10 williamn 2006-02-05 22:48:33 UTC
Created attachment 28763 [details]
cpu call tree, showing String.valueOf() as leaf node, missing AClass.toString()
Comment 11 Tomas Hurka 2006-02-06 08:23:30 UTC
You are using unsupported JVM version. You need JDK 1.5.0_04 or newer, see 
http://profiler.netbeans.org/docs/help/vms.html for more information about supported JDK versions.
Comment 12 williamn 2006-02-07 00:18:28 UTC
Thanks! I downloaded jdk1.5.0_06 and Part of application profiling works as 
expected now. I guess, I should have RTFM more closely!

The download pages may benefit from stating the profiler jdk requirement at an 
earlier stage. Drilling down the pages, I noticed the "jdk1.4.2 or higher" and 
assumed that 1.5.0 would fit the bill.