aspose file tools
The moose likes JDBC and Relational Databases 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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