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 b124+ fails with the following exception: ProfException in thread "*** Profiler Agent Communication Thread" java.lang.NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(java.base@9-ea/ObjectOutputStream.java:2141) at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(java.base@9-ea/ObjectOutputStream.java:2012) at java.io.ObjectOutputStream.writeUTF(java.base@9-ea/ObjectOutputStream.java:869) at org.netbeans.lib.profiler.wireprotocol.VMPropertiesResponse.writeObject(VMPropertiesResponse.java:196) at org.netbeans.lib.profiler.wireprotocol.WireIO.sendComplexResponse(WireIO.java:336) at org.netbeans.lib.profiler.server.ProfilerServer.sendComplexResponseToClient(ProfilerServer.java:724) at org.netbeans.lib.profiler.server.ProfilerServer.handleClientCommand(ProfilerServer.java:1613) at org.netbeans.lib.profiler.server.ProfilerServer.listenToClient(ProfilerServer.java:1776) at org.netbeans.lib.profiler.server.ProfilerServer.run(ProfilerServer.java:700)
This is JDK 9 only issue. "sun.boot.class.path" system property is no longer set by JVM. :-(
Fixed in profiler-main changeset: 298986:aab82ef106c7 tag: tip user: Tomas Hurka <thurka@netbeans.org> date: Mon Jul 25 18:28:05 2016 +0200 summary: bugfix #262629, set bootClassPath to empty string if system property sun.boot.class.path does not exist
Integrated into 'main-silver', will be available in build *201607270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/aab82ef106c7 User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #262629, set bootClassPath to empty string if system property sun.boot.class.path does not exist