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.
Profiling on JDK 9 b41+ fails with the following exception: Exception in thread "*** Profiler Agent Communication Thread" java.lang.NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2141) at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2012) at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:869) at org.netbeans.lib.profiler.wireprotocol.VMPropertiesResponse.writeObject(VMPropertiesResponse.java:195) at org.netbeans.lib.profiler.wireprotocol.WireIO.sendComplexResponse(WireIO.java:328) at org.netbeans.lib.profiler.server.ProfilerServer.sendComplexResponseToClient(ProfilerServer.java:716) at org.netbeans.lib.profiler.server.ProfilerServer.handleClientCommand(ProfilerServer.java:1598) at org.netbeans.lib.profiler.server.ProfilerServer.listenToClient(ProfilerServer.java:1752) at org.netbeans.lib.profiler.server.ProfilerServer.run(ProfilerServer.java:692)
This is JDK 9 only issue caused by fix of JDK-8049367 (http://hg.openjdk.java.net/jdk9/dev/hotspot/rev/1d29b13e8a51). This fix removed system properties java.ext.dirs and java.endorsed.dirs. They are no longer set by JVM. :-(
Fixed in profiler-main changeset: 281741:3e056ca29112 user: Tomas Hurka <thurka@netbeans.org> date: Fri Dec 19 11:14:37 2014 +0100 summary: bugfix #249455, set javaExtDirs to empty string if system property java.ext.dirs does not exist
Integrated into 'main-silver', will be available in build *201412200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3e056ca29112 User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #249455, set javaExtDirs to empty string if system property java.ext.dirs does not exist
Verified. The following scenario works in dev build: - create and build sample Anagram project - run project from command line with JDK 1.9.0-ea-b50 D:\jdk1.9.0\bin>java -jar "D:\AnagramGame\dist\anagrams.jar" - attach profiler to external process (Methods selected) On the other hand when Objects are selected there is nothing in live results. I don't know if this is supported.
This is a candidate for NB 8.0.2 Patch 1 , so please integrate the bugfix into releases/release801 branch today by 10pm CET, for more information see http://wiki.netbeans.org/NetBeansPatchesProcess
Transplanted to release801 branch: changeset: 294586:c7184a267000 branch: release801 user: Tomas Hurka <thurka@netbeans.org> date: Fri Dec 19 11:14:37 2014 +0100 summary: bugfix #249455, set javaExtDirs to empty string if system property java.ext.dirs does not exist