Re: Exception Subtypes
Posted by: Steve Ramage
Date: November 05, 2013 05:51PM

I looked into the code, and it seems that isJdbc4() returns true, yet I'm seeing the JDBCv3 exceptions and I'm not sure why. Is there something special I need to do, to get it to throw JDBC version 4 exceptions.


From my other post, this is the version 3 exception. As far as I can tell the v4 driver is loaded.

This is from my other post:

Caused by: com.mysql.jdbc.exceptions.MySQLQueryInterruptedException: Query execution was interrupted
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075) ~[mysql-connector-java-5.1.26-bin.jar:na]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190) ~[mysql-connector-java-5.1.26-bin.jar:na]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122) ~[mysql-connector-java-5.1.26-bin.jar:na]
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570) ~[mysql-connector-java-5.1.26-bin.jar:na]
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731) ~[mysql-connector-java-5.1.26-bin.jar:na]
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2818) ~[mysql-connector-java-5.1.26-bin.jar:na]
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2157) ~[mysql-connector-java-5.1.26-bin.jar:na]
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2460) ~[mysql-connector-java-5.1.26-bin.jar:na]
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2377) ~[mysql-connector-java-5.1.26-bin.jar:na]
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2361) ~[mysql-connector-java-5.1.26-bin.jar:na]
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:147) ~[c3p0-0.9.2-pre8.jar:0.9.2-pre8]
at ca.ubc.cs.beta.mysqldbtae.persistence.worker.MySQLPersistenceWorker.resetUnfinishedRuns(MySQLPersistenceWorker.java:466) ~[mysqldbtae.jar:na]

Options: ReplyQuote


Subject
Written By
Posted
November 05, 2013 03:38PM
November 05, 2013 04:13PM
Re: Exception Subtypes
November 05, 2013 05:51PM
November 06, 2013 09:40AM


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.