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.
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) ================================================
changing milestone
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.