Re: Unjnown java.sql.SQLException... :-|
Posted by: Mark Matthews
Date: February 16, 2005 07:43AM

Ludovic Maillet wrote:
> Hello !
> Does anybody help me to understand this exception
> ?
> java.sql.SQLException: Connection.close() has
> already been called. Invalid operation in this
> state.
> at
> com.mysql.jdbc.Connection.getMutex(
> :2101)
> at
> com.mysql.jdbc.PreparedStatement.executeQuery(Prep


Have you called Connection.close() in your application? Maybe in a finally{} block that you're un-aware of? If not, did the database close the connection on you (wait_timeout expired), or maybe the server crashed?

The JDBC spec doesn't allow you to use statements on closed connections (which of course won't work anyway).


Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools

Options: ReplyQuote

Written By
Re: Unjnown java.sql.SQLException... :-|
February 16, 2005 07:43AM

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.