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 268474 - java.io.EOFException at java.io.DataInputStream.readInt
Summary: java.io.EOFException at java.io.DataInputStream.readInt
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-12 06:10 UTC by Exceptions Reporter
Modified: 2017-04-04 17:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 226702


Attachments
stacktrace (11.61 KB, text/plain)
2016-10-12 06:10 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-10-12 06:10:45 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) Client VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Linux

User Comments:
GUEST: ?? ????




Stacktrace: 
java.io.EOFException
   at java.io.DataInputStream.readInt(DataInputStream.java:392)
   at org.netbeans.modules.cnd.modelimpl.repository.ProjectFileNameBasedKey.<init>(ProjectFileNameBasedKey.java:108)
   at org.netbeans.modules.cnd.modelimpl.repository.OffsetableKey.<init>(OffsetableKey.java:139)
   at org.netbeans.modules.cnd.modelimpl.repository.MacroKey.<init>(MacroKey.java:69)
   at org.netbeans.modules.cnd.modelimpl.repository.KeyObjectFactory.createObject(KeyObjectFactory.java:164)
   at org.netbeans.modules.cnd.repository.support.AbstractObjectFactory.readSelfPersistent(AbstractObjectFactory.java:78)
Comment 1 Exceptions Reporter 2016-10-12 06:10:48 UTC
Created attachment 162460 [details]
stacktrace
Comment 2 Vladimir Kvashin 2017-04-04 17:31:23 UTC
It seems that the model cache is corrupted.
The bug is reported by GUEST.
I have no way of reproducing this => no way of fixing.

If it repeats under less unclear conditions, let's reopen and fix.

Probably we should replace Exceptions.printStackTrace(ex) by ex.printStackTrace(System.err).