lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <DOR...@il.ibm.com>
Subject Re: java.io.IOException: read past EOF
Date Sun, 15 Oct 2006 03:47:31 GMT
John Gilbert <jgilbert01@yahoo.com> wrote on 14/10/2006 20:14:43:
> I am trying to write an Ejb3Directory. It seems to work for index
> writing but not for searching.
> I get the EOF exception. I assume this means that either my
> OutputStream or InputStream is doing
> something wrong. It fails because the CSInputStream has a length of
> zero when it reads the .fnm section
> of the .cfs file.
>
> Does anyone have any suggestions?

Seems flushBuffer() ignores its length param:

> public class Ejb3OutputStream extends OutputStream {
>     protected void flushBuffer(byte[] b, int len) throws IOException {
>         os.write(b);
>     }

Shouldn't it be like this?

   os.write(b, 0, len);


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


Mime
View raw message