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 173241 - [attach profiler] cannot attach profiler to a java application
Summary: [attach profiler] cannot attach profiler to a java application
Status: RESOLVED INVALID
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-29 10:16 UTC by matusdekanek
Modified: 2009-10-16 08:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (701.92 KB, text/plain)
2009-09-29 10:17 UTC, matusdekanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matusdekanek 2009-09-29 10:16:07 UTC
Product Version: NetBeans IDE Dev (Build 200909221401)
Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01
System: SunOS version 5.10 running on sparc; ISO646-US; en (nb)

The IDE is installed and the profiler is calibrated. Java 1.6 is the default java platform.
-create anagram game sample project and build it
-invoke 'attach profiler' from main menu
-in the profiler dialog, press the 'define' (settings) ling i`on the bottom of the dialog
-continue trough the attach settings dialog (select anagram game project, java 1.6)
-copy the commanline settings provided by the dialog and finish the settings dialog
-on commandline :
   goto [anagram game project folder]/dist
   insert command: java [provided attach settings] -jar anagrams.jar
-in the IDE press attach in the 'attach profiler' dialog
The profiling did not start. This is the commandline output of the anagram game

java
-agentpath:/home/md230949/netbeans-dev-200909221401/profiler3/lib/deployed/jdk16/solaris-sparc/libprofilerinterface.so=/home/md230949/netbeans-dev-200909221401/profiler3/lib,5140
-jar anagrams.jar
Profiler Agent: Initializing...
Profiler Agent Error: Failed to obtain JVMTI capabilities, error code: 98
Assertion failed: res == JVMTI_ERROR_NONE, file ../src-jdk15/common_functions.c, line 122
Abort (core dumped)

Maybe I am doing something wrong, in such case I would say that the right way is hidden too well from me...
Comment 1 matusdekanek 2009-09-29 10:17:38 UTC
Created attachment 88487 [details]
messages.log
Comment 2 matusdekanek 2009-09-29 10:27:51 UTC
Raising priority. This might be a serious problem, I am not marking it as a stopper for now though.
Comment 3 Tomas Hurka 2009-10-16 08:35:31 UTC
You configured profiler to use JDK 6, but from the commandline you are starting Java 5 with profiler agent for JDK 6. This does not work.
Closing as invalid.