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 254698 - java.io.UTFDataFormatException: encoded string too long: 169505 bytes
Summary: java.io.UTFDataFormatException: encoded string too long: 169505 bytes
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-25 10:56 UTC by Alexander Simon
Modified: 2015-09-09 01:24 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 Alexander Simon 2015-08-25 10:56:54 UTC
IDE try to write in repository unnamed typedef:
typedef enum {<long enumeration>} name;
If length of typedef body is greater then 64K, IDE print exception in log:
INFO [dlight.libs.common.logger]: encoded string too long: 169505 bytes
java.io.UTFDataFormatException: encoded string too long: 169505 bytes
	at org.netbeans.modules.cnd.repository.storage.data.UTF.writeUTF(UTF.java:104)
	at org.netbeans.modules.cnd.repository.storage.data.RepositoryDataOutputStream.writeCharSequenceUTF(RepositoryDataOutputStream.java:83)
	at org.netbeans.modules.cnd.modelimpl.repository.PersistentUtils.writeUTF(PersistentUtils.java:325)
	at org.netbeans.modules.cnd.modelimpl.csm.TypeImpl.write(TypeImpl.java:1118)
	at org.netbeans.modules.cnd.modelimpl.repository.PersistentUtils.writeType(PersistentUtils.java:479)
	at org.netbeans.modules.cnd.modelimpl.csm.TypedefImpl.write(TypedefImpl.java:428)
	at org.netbeans.modules.cnd.repository.support.AbstractObjectFactory.writeSelfPersistent(AbstractObjectFactory.java:69)
	at org.netbeans.modules.cnd.modelimpl.csm.core.CsmObjectFactory.write(CsmObjectFactory.java:610)
[catch] at org.netbeans.modules.cnd.repository.AsyncRepositoryWriterImpl$Worker.doWrite(AsyncRepositoryWriterImpl.java:329)
	at org.netbeans.modules.cnd.repository.AsyncRepositoryWriterImpl$Worker.run(AsyncRepositoryWriterImpl.java:297)
	at org.openide.util.RequestProcessor$FixedRateTask.run(RequestProcessor.java:1207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Comment 1 petrk 2015-09-08 15:11:16 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/5acdbdd26a3c
Comment 2 Quality Engineering 2015-09-09 01:24:03 UTC
Integrated into 'main-silver', will be available in build *201509090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5acdbdd26a3c
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #254698 - java.io.UTFDataFormatException: encoded string too long: 169505 bytes