Is this a bug ?
Posted by: R Lenard
Date: December 19, 2004 09:22PM

I'm using a PreparedStatement to request data from a non-existant table, and then I get this exception -
java.sql.SQLException: Communication
link failure message from server: "Unknown command"
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1997)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1167)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1278)
com.mysql.jdbc.Connection.execSQL(Connection.java:2255)
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1586)
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegating
PreparedStatement.java:92)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.ibatis.common.jdbc.logging.PreparedStatementLogProxy.invoke(PreparedSta
tementLogProxy.java:51)
$Proxy1.executeQuery(Unknown Source)
....

This is with mysql-4.1.7 and connectorj-3.0.16

Any ideas ?

This is one part of the documentation that is sadly lacking - exception / error handling..

Googling for this error message suggests there used to be a problem with non-existant tables and these queries, but surely that's fixed right ??

Options: ReplyQuote


Subject
Written By
Posted
Is this a bug ?
December 19, 2004 09:22PM
December 20, 2004 03:27PM
December 20, 2004 03:42PM
December 20, 2004 05:13PM
December 21, 2004 07:12PM
December 21, 2004 07:52PM
December 21, 2004 09:32PM
December 21, 2004 09:43PM
December 21, 2004 10:13PM
December 21, 2004 10:28PM
December 21, 2004 11:38PM
December 21, 2004 11:45PM


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.