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

Summary: java.io.EOFException at java.io.DataInputStream.readInt
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: Code ModelAssignee: Vladimir Kvashin <vkvashin>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226702
Attachments: stacktrace

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).