Hi to everybody,
i am changing the version of weblogic from 12.1.1 to 12.2.3.0.
I try also the application on weblogic 12.1.3 with java 8 and work.
I have this named Stored Procedure:
@NamedStoredProcedureQuery(name = "Named", procedureName = "Procedure", resultClasses = Test.class, parameters = {
@StoredProcedureParameter(name = "results_cursor", mode = REF_CURSOR, type = void.class),
@StoredProcedureParameter(name = "CODE", mode = IN, type = BigInteger.class),
The procedure is similar to something like that:
PROCEDURE Procedure(results_cursor OUT SYS_REFCURSOR, CODE IN NUMBER);
and after upgrade I get this kind of exception
Caused by: java.sql.SQLException: Invalid column type: 2012
at oracle.jdbc.driver.OracleStatement.getInternalType(OracleStatement.
va:3978)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInte
al(OracleCallableStatement.java:140)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInte
al(OracleCallableStatement.java:2401)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(Ora
eCallableStatement.java:2307)
at oracle.jdbc.driver.OracleCallableStatementWrapper.registerOutParame
r(OracleCallableStatementWrapper.java:1250)
at weblogic.jdbc.wrapper.CallableStatement_oracle_jdbc_driver_OracleCa
ableStatementWrapper.registerOutParameter(Unknown Source)
at org.hibernate.engine.jdbc.cursor.internal.StandardRefCursorSupport.
gisterRefCursorParameter(StandardRefCursorSupport.java:69)
... 118 common frames omitted
I read on stack overflow that is just necessary an upgrade on Oracle driver of Weblogic or as workaround use different way to register procedure. But it is really true?
This is the link: https://stackoverflow.com/questions/46175576/hibernate-fail-to-register-ref-cursor-parameter
Because in first case, I have to work on Weblogic, but this mean to ask to system manager to change the Weblogic installation, in second case it is not possible use JPA annotation.
Do i miss something? Does somebody has occured the same problem?
Thanks to everybody for any support.
Luca
PS: I check also the value of Oracle Cursor and seem to be or CURSOR = -10 and in Java.sql.Types.REF_CURSOR=2012.
Can be that the problem?