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 162198 - java.io.IOException: read past EOF
Summary: java.io.IOException: read past EOF
Status: RESOLVED DUPLICATE of bug 166267
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Jancura
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-08 10:19 UTC by kawazu428
Modified: 2009-08-04 14:34 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 14431


Attachments
stacktrace (4.28 KB, text/plain)
2009-04-08 10:19 UTC, kawazu428
Details
stacktrace (2.93 KB, text/plain)
2009-04-08 12:54 UTC, kawazu428
Details
stacktrace (2.03 KB, text/plain)
2009-08-03 16:29 UTC, neilg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kawazu428 2009-04-08 10:19:09 UTC
Build: NetBeans IDE Dev (Build 200904070200)
VM: Java HotSpot(TM) Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.28-11-generic, i386

User Comments:
standingfire: Loading the IDE following the update

kawazu428: not sure... the "scanning projects" task was running at this time, about 50 maven2 projects opened, and this exception is being thrown a dozen of times until the task finishes...

GUEST: Estava iniciando um abiente de desenvolvimento (Chroot via Jboss).

GUEST: I have just started up the IDE

xkrej45: dsfdsfsd



Stacktrace: 
java.io.IOException: read past EOF
        at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:146)
        at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38)
        at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:66)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:207)
        at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:68)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:636)
Comment 1 kawazu428 2009-04-08 10:19:21 UTC
Created attachment 79711 [details]
stacktrace
Comment 2 kawazu428 2009-04-08 12:54:12 UTC
Build: NetBeans IDE Dev (Build 200904070200)
VM: Java HotSpot(TM) Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.28-11-generic, i386

User Comments: 
"scanning projects" again...

Stacktrace: 
java.io.IOException: read past EOF
        at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:146)
        at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38)
        at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:66)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:207)
        at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:68)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:636)
Comment 3 kawazu428 2009-04-08 12:54:18 UTC
Created attachment 79721 [details]
stacktrace
Comment 4 Rastislav Komara 2009-04-29 12:08:44 UTC
Combination of scanning projects and maven. Please, evaluate it.
Comment 5 kawazu428 2009-04-29 12:21:59 UTC
Marking it as WORKSFORME as this doesn't seem to happen anymore with recent nightly builds.
Comment 6 neilg 2009-08-03 16:29:43 UTC
Build: NetBeans IDE 6.7.1 (Build 200907230233)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux, 2.6.28-14-generic, amd64

User Comments: 


Stacktrace: 
java.io.IOException: read past EOF
        at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:146)
        at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38)
        at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:66)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:207)
        at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:68)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:636)
Comment 7 neilg 2009-08-03 16:29:51 UTC
Created attachment 85707 [details]
stacktrace
Comment 8 neilg 2009-08-04 09:27:59 UTC
This exception is still happening in 6.7.1 so reopening.

I had three exceptions with identical stack traces yesterday,

http://statistics.netbeans.org/analytics/exception.do?id=237311
http://statistics.netbeans.org/analytics/exception.do?id=237317
http://statistics.netbeans.org/analytics/exception.do?id=237339

but they were allocated to two different issues, this one and #166267. I'm not sure why or which is the relevant issue.
Comment 9 Vitezslav Stejskal 2009-08-04 14:34:26 UTC
The lucene index is corrupted. If this exception keeps popping up please shutdown the IDE and delete
<nb-userdir>/var/cache/index folder. The IDE will recreate indices on the next start.

*** This issue has been marked as a duplicate of 166267 ***