java.sql.SQLException: Invalid column type
Hello
Iam using jdk 1.2.2 and jdbc 1.1 Iam calling a stored procedure in the java code which returns a cursor. When I use the registerOutParameter, I get the following error:
SQLException : java.sql.SQLException: Invalid column type
The java code at which the error is thrown is as follows:
callStmt.registerOutParameter(1,Types.OTHER);
The complete error log shown on the weblogic console is as follows:
SQLException : java.sql.SQLException: Invalid column type
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:269)
at oracle.jdbc.driver.OracleStatement.get_internal_ty pe(OracleStatement.
java:6383)
: at oracle.jdbc.driver.OracleCallableStatement.registe rOutParameterBytes(
OracleCallableStatement.java:244)
at oracle.jdbc.driver.OracleCallableStatement.registe rOutParameter(Oracl
eCallableStatement.java:393)
at oracle.jdbc.driver.OracleCallableStatement.registe rOutParameter(Oracl
eCallableStatement.java:462)
at weblogic.jdbc.pool.Statement.registerOutParameter( Statement.java:640)
Plsss help me
|