Re: ArrayIndexOutOfBounds Execption when using DriverManager.getConnection()
Posted by: Mark Matthews
Date: July 08, 2005 07:22AM

Sarah Horne wrote:
> Mark,
>
> I have upraded to Connector/J 3.1.10, added
> mysql-connector-java-3.1.10-bin.jar to the
> classpath and removed the 3.1.8 jar file from the
> classpath, however the error message that I am
> receiving is still very similar.
>
> Database Connection Problem
> Error during query: Unexpected Exception:
> java.lang.ArrayIndexOutOfBoundsExcepti
> on message given: 26
> Error during query: Unexpected Exception:
> java.lang.ArrayIndexOutOfBoundsExcepti
> on message given: 26
> java.sql.SQLException: Error during query:
> Unexpected Exception: java.lang.Array
> IndexOutOfBoundsException message given: 26
> at
> com.mysql.jdbc.Connection.execSQL(Connection.java:
> 1913)
> at
> com.mysql.jdbc.Connection.execSQL(Connection.java:
> 1842)
[snip]

Sarah,

That stacktrace doesn't appear to be from Connector/J 3.1.10. Are you sure you don't have an older version laying around in your classpath somewhere?

(line 1913 in Connection.java in version 3.1.10 is _nowhere_ near the Connection.execSQL() method).

-Mark

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.