I have an session bean that executes various search quesries for different search criteian. The problems i get following SQL exception
while executing the query on a preparedtstatement.
java.sql.SQLException: ORA-01475: must reparse cursor to change bind variable datatype
However, this behavior is random, and so i am not able to understand why it is occuring? I am using weblogic 7.0.1 and oracle 8.1. Can anybody help ?
[ March 30, 2004: Message edited by: Rashmi Tambe ]
Can anybody help ?
No, not without more information. But I will make a guess.
You are invoking the "setObject()" method (of interface PreparedStatement) many times. Usually, you are supplying the same type of object (for example, Timestamp), but sometimes you are sending a different type of object -- perhaps Date instead of "Timestamp".
Hopefully you can figure out how to proceed from here, or supply some more details. At least:
Here is the stack trace...
ava.sql.SQLException: ORA-01475: must reparse cursor to change bind variable datatype
Avi, u r right...I am invoking the "setObject()" method (of interface PreparedStatement) many times. here goes the code that is causing this problem
Howvere, the query does not contain date or timestamp data type parameters. They are simple string , booleans and integers.
I read it somewhere that this is a bug in the WebLogic jDriver for Oracle . I am still verifying it.