You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2004/03/03 14:35:25 UTC

DO NOT REPLY [Bug 27408] New: - java.io.IOException: read past EOF when building index

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27408>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27408

java.io.IOException: read past EOF when building index

           Summary: java.io.IOException: read past EOF when building index
           Product: Lucene
           Version: CVS Nightly - Specify date in submission
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Index
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: jamienz@yahoo.com


I found a thread on the dev mailing list relating to this problem, but no 
resolution or bug for it.  Here is Doug's last message on the subject: 
http://www.mail-archive.com/lucene-dev@jakarta.apache.org/msg04387.html

If I run that code from Doug's post within Websphere Studio Application 
Developer 5.0 (based on Eclipse), which uses IBM JDK 1.3.1, using code checked 
out from cvs on March 1st, I get the following exception every time:

<pre>
java.io.IOException: read past EOF
	at org.apache.lucene.store.InputStream.refill(InputStream.java(Compiled 
Code))
	at org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java
(Compiled Code))
	at org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java
(Compiled Code))
	at org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java
(Compiled Code))
	at org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java
(Compiled Code))
	at org.apache.lucene.index.TermInfosReader.readIndex
(TermInfosReader.java:114)
	at org.apache.lucene.index.TermInfosReader.<init>
(TermInfosReader.java:82)
	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:143)
	at org.apache.lucene.index.IndexWriter.mergeSegments
(IndexWriter.java:423)
	at org.apache.lucene.index.IndexWriter.maybeMergeSegments
(IndexWriter.java(Compiled Code))
	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:260)
	at test.com.ibm.services.salesone.fsearch.search.Test.main(Test.java
(Compiled Code))
	at test.com.ibm.services.salesone.fsearch.search.Test.main(Test.java
(Compiled Code))
</pre>

However, I found that disabling the just in time compiler fixes this problem (-
Djava.compiler=NONE).  Using IBM JDK 1.4.1 (with or without JIT) fixes this 
also.

Below are the properties of my IBM 1.3.1 JVM when this exception occurs:
java.assistive=ON
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path=C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4
\java\jre\bin
java.vm.version=1.3.1
java.vm.vendor=IBM Corporation
java.vendor.url=http://www.ibm.com/
path.separator=;
java.vm.name=Classic VM
file.encoding.pkg=sun.io
java.vm.specification.name=Java Virtual Machine Specification
user.dir=C:\dev\wsad\workspace\fsearch
java.runtime.version=1.3.1
java.fullversion=J2RE 1.3.1 IBM Windows 32 build cn131w-20020710 ORB130 (JIT 
enabled: jitc)
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
os.arch=x86
java.io.tmpdir=C:\DOCUME~1\JMCKIN~1\LOCALS~1\Temp\
line.separator=

java.vm.specification.vendor=Sun Microsystems Inc.
java.awt.fonts=
os.name=Windows 2000
java.library.path=C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4
\java\jre\bin;.;C:\WINNT\system32;C:\WINNT;C:\Program Files\ibm\gsk5
\lib;C:\IBMDebug\bin;C:\WebSphere\SQLLIB\bin;C:\Program 
Files\IBMTrans\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32
\Wbem;C:\IBM\IMNNQ;C:\SQLLIB\BIN;C:\SQLLIB\FUNCTION;C:\SQLLIB\SAMPLES\REPL;C:\SQ
LLIB\HELP;C:\IFOR\WIN\BIN;C:\IFOR\WIN\BIN\EN_US;C:\WebSphere\AppServer\bin;C:\Pr
ogram Files\GNU\WinCvs 1.2;C:\dev\java\apache-ant-1.6.0\bin;C:\j2sdk1.4.1_01
\bin;C:\Program Files\Rational\common;c:\PSM
java.specification.name=Java Platform API Specification
java.class.version=46.0
invokedviajava=
os.version=5.0
user.home=C:\Documents and Settings\jmckinney
user.timezone=Europe/London
java.awt.printerjob=sun.awt.windows.WPrinterJob
file.encoding=Cp1252
java.specification.version=1.3
java.class.path=C:\dev\wsad\workspace\fsearch\bin;C:\Program 
Files\IBM\WebSphere Studio\eclipse\plugins\org.apache.xerces_4.0.7
\xmlParserAPIs.jar;C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4
\lib\j2ee.jar;C:\Program Files\IBM\WebSphere 
Studio\eclipse\plugins\org.junit_3.7.0\junit.jar;C:\Program Files\IBM\WebSphere 
Studio\runtimes\aes_v4\lib\xerces.jar;C:\dev\wsad\workspace\fsearch\lib\lucene-
1.4-rc1-dev.jar
user.name=jmckinney
java.vm.specification.version=1.0
java.home=C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4\java\jre
user.language=en
java.specification.vendor=Sun Microsystems Inc.
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=J2RE 1.3.1 IBM Windows 32 build cn131w-20020710 ORB130 (JIT 
enabled: jitc)
java.version=1.3.1
java.ext.dirs=C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4
\java\jre\lib\ext
sun.boot.class.path=C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4
\java\jre\lib\rt.jar
java.vendor=IBM Corporation
file.separator=\
java.vendor.url.bug=
java.compiler=jitc
sun.io.unicode.encoding=UnicodeLittle
user.region=GB

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org