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 123076 - Profiler error with NB6_RC2 on MacOS 10.4.11 using Java SE (build 1.6.0-dp-b88-34)
Summary: Profiler error with NB6_RC2 on MacOS 10.4.11 using Java SE (build 1.6.0-dp-b...
Status: RESOLVED WONTFIX
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-29 17:15 UTC by sunsridharreddy
Modified: 2008-09-02 13:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sunsridharreddy 2007-11-29 17:15:22 UTC
I am getting the following error when I am trying to run the HOL "LAB-5116 Exercise 2" - "HttpUnit" sample.
which is from the demo script: http://wiki.netbeans.org/wiki/view/HttpUnitCaseStudy 

Here is what I did:
- Opened the project
- Set the Java Platform to JDK 1.6 
   [java version "1.6.0-dp"  - Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)]
   [Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)]
- Profile->Profile Main Project
- Get the following error in the Output window for HttpUnit (profile)

Note:  About NetBeans,shows the following:
    Product Version: NetBeans IDE 6.0 RC2 (Build 200711201000)
    Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87
    System: Mac OS X version 10.4.11 running on i386; MacRoman; en_IN (nb)

========= Output for HttpUnit (profile) ===========================

init:
profile-init:
deps-jar:
Created dir: /Users/sridharreddy/TechDays08/HOLs/nbprofilermemory/samples/HttpUnit/build/classes
Compiling 132 source files to /Users/sridharreddy/TechDays08/HOLs/nbprofilermemory/samples/HttpUnit/build/classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying 5 files to /Users/sridharreddy/TechDays08/HOLs/nbprofilermemory/samples/HttpUnit/build/classes
compile:
profile:
Profiler Agent: Initializing...
Profiler Agent: Options: >/Applications/NetBeans/NetBeans 6.0 RC2.app/Contents/Resources/NetBeans/profiler2/lib,5140,10<
Profiler Agent: Initialized succesfully
Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 8)
Profiler Agent: Established local connection with the tool
java.lang.NoSuchMethodException: sun.management.HotSpotDiagnostic.dumpHeap(java.lang.String, boolean)
        at java.lang.Class.getMethod(Class.java:1604)
        at org.netbeans.lib.profiler.server.system.HeapDump.initialize16(HeapDump.java:115)
        at org.netbeans.lib.profiler.server.system.HeapDump.initialize(HeapDump.java:78)
        at org.netbeans.lib.profiler.server.ProfilerInterface.initProfilerInterface(ProfilerInterface.java:464)
        at org.netbeans.lib.profiler.server.ProfilerServer.initSupportingFunctionality(ProfilerServer.java:973)
        at org.netbeans.lib.profiler.server.ProfilerServer.doActivate(ProfilerServer.java:904)
        at org.netbeans.lib.profiler.server.ProfilerServer.activate(ProfilerServer.java:512)
Profiler Agent: Redefining 100 classes at idx 0, out of total 421
Java HotSpot(TM) Client VM warning: Untested: os::remap_memory in /SourceCache/HotSpot16/HotSpot16-17/src/os/macosx/vm/os_macosx.cpp: 1290

Java Result: 133
BUILD SUCCESSFUL (total time: 7 seconds)
================================================
Comment 1 J Bachorik 2008-03-29 12:25:41 UTC
changing milestone
Comment 2 Tomas Hurka 2008-09-02 13:55:57 UTC
This is caused by 1.6.0 Developer preview. If possible, upgrade to latest stable JDK 1.6 version or use JDK 1.5 for profiled application.