Subject Re: [Firebird-Java] weird exception
Author Francisco Antonio Vieira Souza
Stanislav Mironov wrote:

>Hello All!
>
>What could be the reason for that weird exception?
>
>org.firebirdsql.jdbc.FBSQLException: You cannot getAutomcommit on an
>unassociated closed connection.
> at
>org.firebirdsql.jdbc.AbstractConnection.getAutoCommit(AbstractConnection.java:344)
> at
>org.firebirdsql.jdbc.AbstractConnection.willEndTransaction(AbstractConnection.java:861)
> at
>org.firebirdsql.jdbc.AbstractConnection.checkEndTransaction(AbstractConnection.java:869)
> at
>org.firebirdsql.jdbc.AbstractConnection.checkEndTransaction(AbstractConnection.java:865)
> at
>org.firebirdsql.jdbc.AbstractPreparedStatement.executeQuery(AbstractPreparedStatement.java:120)
> at com.mypkg.MyClass(MyClass.java:155)
> at java.lang.Thread.run(Unknown Source)
>
>The code at line 155 is:
> final ResultSet rs = ps.executeQuery();
>
>Jaybird 1.5.3 for jdk 1.4
>
>
>
Once I had this exception and the problem was that I was trying to close
an already closed connection, you check this out.