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


Solutions on the web

Solution icon of sourceforge
Could not find prepared statement with handle 1.

Solution icon of web
Could not find prepared statement with handle 1.

Solution icon of sourceforge
Could not find prepared statement with handle 1.

Solution icon of sourceforge
Could not find prepared statement with handle 18.(SQLState=S1000 ErrorCode=8179)

Solution icon of sourceforge
Could not find stored procedure 'dbo.spGetOrdersByItemID'.

Solution icon of sourceforge
Could not find stored procedure '#jtds000012'.

Solution icon of sourceforge
Could not find stored procedure '#jtds000019'.

Solution icon of sourceforge
Could not find stored procedure '#jtds00000E'.

Solution icon of stackoverflow
Could not find stored procedure 'xyz.StoreProcNamedFoo'.

Solution icon of googlegroups
via Google Groups by Unknown author, 4 months ago
The INSERT statement conflicted with the FOREIGN KEY constraint "fk_contentlet_lang". The conflict occurred in database "dotcms", table "dbo.language", column 'id'.

Stack trace

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 net.sourceforge.jtds.jdbc.JtdsPreparedStatement.execute(JtdsPreparedStatement.java:475)
	at com.wachovia.cmg.base.DBCallManager.execute(DBCallManager.java:228)
	at com.wachovia.cmg.base.DBCallManager.main(DBCallManager.java:515)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

4 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
3 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
22 more bugmates