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 269067 - Classpaths longer than 64K characters cause profiler to throw UTF Exception
Summary: Classpaths longer than 64K characters cause profiler to throw UTF Exception
Status: NEW
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: Dev
Hardware: PC Other
: P3 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-22 07:37 UTC by ad13
Modified: 2016-11-22 07:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch to fix (2.33 KB, application/octet-stream)
2016-11-22 07:37 UTC, ad13
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ad13 2016-11-22 07:37:29 UTC
Created attachment 162976 [details]
Patch to fix

This comes from the VMPropertiesResponse.java class; it is using writeUTF to write out strings. If this is given a string longer than 64K characters, the 2-byte field it uses to hold the length is no longer correct.

The attached patch fixes the issue for us on our local system.

This was detected via https://java.net/jira/browse/VISUALVM-272