"java.sql.SQLException: Missing defines" when Registering an OUT Parameter Returning no value in 12.1.0.2 JDBC driver (Doc ID 2132473.1)

Last updated on MAY 02, 2016

Applies to:

JDBC - Version 12.1.0.2.0 and later
Information in this document applies to any platform.

Symptoms

Register an OUT parameter but return no value for this parameter from a stored procedure. The driver will return the error "Missing Defines".
It occurs on JDBC thin 12.1.0.2, but not on 11g.

java.sql.SQLException: Missing defines
at oracle.jdbc.driver.Accessor.isNull(Accessor.java:744)
at oracle.jdbc.driver.CharCommonAccessor.getString(CharCommonAccessor.java:350)
at oracle.jdbc.driver.OracleCallableStatement.getString(OracleCallableStatement.java:661)
at oracle.jdbc.driver.OracleCallableStatementWrapper.getString(OracleCallableStatementWrapper.java:860)
at TestEmptyString.testEmptyString(TestEmptyString.java:55)
at TestEmptyString.main(TestEmptyString.java:95)



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms