aspose file tools
The moose likes JDBC and the fly likes Invalid state, the Statement object is closed. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Invalid state, the Statement object is closed." Watch "Invalid state, the Statement object is closed." New topic
Author

Invalid state, the Statement object is closed.

Krishna Sundaresan
Greenhorn

Joined: Feb 19, 2007
Posts: 2
In one our production servers the execution of a batch fails consistently and the following stack trace snippet is observed. The problem does not occur on other servers with similar configuration.



The application is single-threaded and does not use connection pooling of any sort. The chance that the statement object was closed between the addBatch and executeBatch were executed is nil. We are using JTDS driver 1.2 interfacing with SQL Server 2000. The database server is up and accepting connections.

Any clues on what might be happening is greatly appreciated.
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 390
Hi,

Welcome to javaranch.

Can you post some code where you are connecting with Database server ?


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Krishna Sundaresan
Greenhorn

Joined: Feb 19, 2007
Posts: 2
The connection is being provided by the following code. The URL that is being passed in is a JDBC URL.

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Invalid state, the Statement object is closed.
 
Similar Threads
JasperException - I got this error
Help Regarding WSJdbcResultSet
Writing to the output after forward
Solved : JTDS MSSQL Pagination problem.
The TDS protocol does not support JDBC datatype 2000