Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getBlobLength causes ArrayIndexOutOfBounds Exception [JDBC153] #195

Closed
firebird-automations opened this issue Mar 5, 2010 · 4 comments
Closed

Comments

@firebird-automations
Copy link

Submitted by: Stefan Schmaltz (schlocke)

Assigned to: Roman Rokytskyy (rrokytskyy)

Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.firebirdsql.gds.impl.GDSHelper.getBlobLength(GDSHelper.java:567)
at org.firebirdsql.jdbc.field.FBBlobField.getBytesInternal(FBBlobField.java:127)
at org.firebirdsql.jdbc.field.FBBlobField.getCachedObject(FBBlobField.java:176)
at org.firebirdsql.jdbc.FBCachedFetcher.<init>(FBCachedFetcher.java:117)
at org.firebirdsql.jdbc.AbstractResultSet.<init>(AbstractResultSet.java:137)
at org.firebirdsql.jdbc.FBResultSet.<init>(FBResultSet.java:19)
at org.firebirdsql.jdbc.AbstractStatement.getResultSet(AbstractStatement.java:622)
at org.firebirdsql.jdbc.AbstractStatement.getResultSet(AbstractStatement.java:603)
at org.firebirdsql.jdbc.AbstractPreparedStatement.executeQuery(AbstractPreparedStatement.java:170)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
... 31 more

This problem is not reproduceable, it happens sometimes without special conditions. Maybe this is a multithreading-Issue? If yes, how can we avoid it?

Commits: 2bfc6e7

@firebird-automations
Copy link
Author

Commented by: Roman Rokytskyy (rrokytskyy)

I have fixed the ArrayIndexOutBoundsException, now the normal SQLException should be thrown. The line you have provided means that server did not return us any data when asking a blob length, that is an error condition for us (so exception should be thrown anyway).

However, I have noticed that the line numbers for some classes diverge a lot compared to the current HEAD. I do not remember to change the sources there so much. Can you please check the JDBC driver version, please.

Please also re-open the issue as soon as you get any chance to make the issue reproducable...

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

Version: Jaybird 2.2 [ 10053 ]

Fix Version: Jaybird 2.2 [ 10053 ]

timeestimate: 0 [ 0 ]

timeoriginalestimate: 0 [ 0 ]

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Incomplete [ 4 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant