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 256549 - java.io.UTFDataFormatException: encoded string too long: 400008 bytes
Summary: java.io.UTFDataFormatException: encoded string too long: 400008 bytes
Status: VERIFIED 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-11-12 11:08 UTC by Alexander Simon
Modified: 2015-12-23 15:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (2.91 KB, patch)
2015-11-16 12:01 UTC, petrk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2015-11-12 11:08:41 UTC
Exception in log:

INFO [dlight.libs.common.logger]: encoded string too long: 400008 bytes
java.io.UTFDataFormatException: encoded string too long: 400008 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:326)
	at org.netbeans.modules.cnd.modelimpl.csm.FunctionImpl.write(FunctionImpl.java:1035)
	at org.netbeans.modules.cnd.modelimpl.csm.FunctionDDImpl.write(FunctionDDImpl.java:325)
	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 Alexander Simon 2015-11-12 11:08:53 UTC
Source code is gcc trunk:
https://codeload.github.com/gcc-mirror/gcc/zip/master
Was unconfigured project.
Comment 2 Alexander Simon 2015-11-16 11:44:05 UTC
FunctionImpl benongs to:
KeyBasedUID on FileKey (/home/as204739/devarea/projects/gcc-master/N/, /home/as204739/devarea/projects/gcc-master/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c)
Comment 3 petrk 2015-11-16 12:01:49 UTC
Created attachment 157355 [details]
patch
Comment 4 petrk 2015-11-18 11:51:53 UTC
Fixed at enum. Changeset: 304283:b1874272fcdc
Comment 5 Quality Engineering 2015-11-24 02:31:17 UTC
Integrated into 'main-silver', will be available in build *201511240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a51be6f91af7
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #256549 - java.io.UTFDataFormatException: encoded string too long: 400008 bytes
(transplanted from b1874272fcdc532d01715345c91c923783e43a9c)
Comment 6 Alexander Pepin 2015-12-23 15:00:22 UTC
Cannot reproduce the bug in build 20121215.