Forums Register Login

Invalid state, the Statement object is closed.

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Hi,

Welcome to javaranch.

Can you post some code where you are connecting with Database server ?
+Pie Number of slices to send: Send
The connection is being provided by the following code. The URL that is being passed in is a JDBC URL.

It means our mission is in jeapordy! Quick, read this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 4328 times.
Similar Threads
JasperException - I got this error
The TDS protocol does not support JDBC datatype 2000
Solved : JTDS MSSQL Pagination problem.
Writing to the output after forward
Help Regarding WSJdbcResultSet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:29:53.