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 262629 - java.lang.NullPointerException at ObjectOutputStream$BlockDataOutputStream.getUTFLength
Summary: java.lang.NullPointerException at ObjectOutputStream$BlockDataOutputStream.ge...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: JDK_9, VISUALVM
Depends on:
Blocks:
 
Reported: 2016-06-30 10:16 UTC by Tomas Hurka
Modified: 2016-07-27 01:49 UTC (History)
0 users

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 Tomas Hurka 2016-06-30 10:16:49 UTC
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)
Comment 1 Tomas Hurka 2016-06-30 10:19:06 UTC
This is JDK 9 only issue. "sun.boot.class.path" system property is no longer set by JVM. :-(
Comment 2 Tomas Hurka 2016-07-26 05:15:01 UTC
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
Comment 3 Quality Engineering 2016-07-27 01:49:49 UTC
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