wood burning stoves*
The moose likes JDBC and the fly likes Not All Varialbes Bound Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Not All Varialbes Bound Error" Watch "Not All Varialbes Bound Error" New topic
Author

Not All Varialbes Bound Error

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
My code worked OK until I changed this statement:

to


I got the runtime error:

Caused by: java.sql.SQLException: ORA-01008: not all variables bound

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:880)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2516)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2850)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:609)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:537)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at org.dhsinfo.message.dao.OracleRecipientDAO.findRecipients(OracleRecipientDAO.java:35)
... 32 more

My OracleRecipientDAO.java looks like:
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
never mind. I have found the mistake.
 
Don't get me started about those stupid light bulbs.
 
subject: Not All Varialbes Bound Error
 
Similar Threads
ORA-01002: fetch out of sequence when trying to insert CLOB data into Oracle
Inserting Blob throws Exception
Calling Stored Procedure from Spring StoredProcedure throws Exception
how can i pass the boolean data type from my java app to oracle function
Call Stored Procedure Returning Cursor as Output