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 115310 - Failed to obtain JVMTI capabilities, error code: 98
Summary: Failed to obtain JVMTI capabilities, error code: 98
Status: RESOLVED DUPLICATE of bug 108557
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-12 09:45 UTC by Padraig Obriain
Modified: 2007-09-13 07:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Output from profiletab (4.67 KB, text/plain)
2007-09-12 09:49 UTC, Padraig Obriain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Padraig Obriain 2007-09-12 09:45:27 UTC
On Nevada 72 when I attempt to start the profiler it fails.
Comment 1 Padraig Obriain 2007-09-12 09:49:50 UTC
Created attachment 48623 [details]
Output from profiletab
Comment 2 Tomas Hurka 2007-09-12 10:10:24 UTC
See issue #108557 for workaround.

*** This issue has been marked as a duplicate of 108557 ***
Comment 3 Padraig Obriain 2007-09-12 11:39:17 UTC
I found "There is an easy workaround - use default JDK for profiling NB modules."

How do I do that?
Comment 4 Tomas Hurka 2007-09-12 14:53:26 UTC
It looks like your profiled netbeans is running on JDK 1.5 and normal netbeans is using JDK 1.6. So you can either start normal netbeans with JDK 1.5 (use --
jdkhome switch) or change JDK used by profiled netbeans to JDK 1.6 (this seems to be controlled by nbjdk.home property in nbbuild/user.build.properties). 
See also http://wiki.netbeans.info/wiki/view/WorkingWithNetBeansSources section  'Common Mistakes, Tips and Tricks'.
Comment 5 Padraig Obriain 2007-09-13 07:58:29 UTC
I now start the normal netbeans with --jdkhome argument to specify 1,5 and when I try to start the profiler I get the
errors below.
 

Profiler Agent: Initializing...
Profiler Agent: Options: >/home/padraigo/tmp/netbeans/profiler2/lib,5140,10<
Profiler Agent: Initialized succesfully
Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 7)
Profiler Agent Error: Timed out trying to establish connection with client
/export/home/padraigo/netbeans/nbbuild/templates/projectized.xml:237: The following error occurred while executing this
line:
/export/home/padraigo/netbeans/nbbuild/build.xml:928: The following error occurred while executing this line:
/export/home/padraigo/netbeans/nbbuild/build.xml:947: exec returned: 255
BUILD FAILED (total time: 20 seconds):