John Gilbert <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to