java.sql.SQLException: Could not find prepared statement with handle 1.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via jtds by torres4321
, 1 year ago
Could not find prepared statement with handle 1.
via Stack Overflow by David Williams
, 2 years ago
Could not find stored procedure 'xyz.StoreProcNamedFoo'.
via jtds by hnkamat
, 1 year ago
The identifier that starts with '"' is too long. Maximum length is 28.
via jtds by mhilpert
, 1 year ago
Your transaction (process ID #17) was deadlocked with another process and has been chosen as the deadlock victim. Rerun your transaction.
via jtds by joeolcsak
, 1 year ago
Operand type clash: varchar is incompatible with cursor
via jtds by adh
, 3 weeks ago
Transaction (Process ID 123) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
java.sql.SQLException: Could not find prepared statement with handle 1.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2224)
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:628)
at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:525)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:487)
at com.wachovia.cmg.base.DBCallManager.execute(DBCallManager.java:228)
at com.wachovia.cmg.base.DBCallManager.main(DBCallManager.java:515)

Users with the same issue

72 times, 5 months ago
3 times, 7 months ago
Once, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.