Subject | Re: ArrayIndexOutOfBoundsException trying to read blob |
---|---|
Author | phil_hhn |
Post date | 2007-10-15T10:31:47Z |
--- In Firebird-Java@yahoogroups.com, Roman Rokytskyy <rrokytskyy@...>
wrote:
times but I do not know why. I can tell you though - the blobs being
retrieved here contain images - I'd expect only 50-100k but as they
are user-editable I cannot know for certain.
know what causes it. Sometimes it works.
Does the stack trace not indicate where in the driver the problem is?
Can I get cvs access (read only) to the source?
Thanks, Phil
wrote:
>org.firebirdsql.jdbc.field.FBBlobField.getBytesInternal(FBBlobField.java:153)
> > When we call the following:
> > byte[] imageBytes = rs.getBytes(16);
> >
> > We get the error:
> > java.lang.ArrayIndexOutOfBoundsException
> > at java.lang.System.arraycopy(Native Method)
> > at
> >
> > atorg.firebirdsql.jdbc.field.FBBlobField.getBytes(FBBlobField.java:113)
> > at org.firebirdsql.jdbc.FBResultSet.getBytes(FBResultSet.java:431)Not really - I found this in a clients log file; it's happened several
>
> Should never happen... Can you provide a test case?
times but I do not know why. I can tell you though - the blobs being
retrieved here contain images - I'd expect only 50-100k but as they
are user-editable I cannot know for certain.
> > I don't know if the second error is related, but it is logged atdriver?
> > exactly the same second. Did the first error destabilise the JDBC
>The database in the above situation is 66MB :( and as I say I don't
> No, the second is another problem - it has problem parsing the server's
> reply. Can you send me a database and a test case?
>
> Roman
know what causes it. Sometimes it works.
Does the stack trace not indicate where in the driver the problem is?
Can I get cvs access (read only) to the source?
Thanks, Phil