"java.sql.SQLException: Missing defines" when Registering an OUT Parameter Returning no value in JDBC driver

(Doc ID 2132473.1)

Last updated on MAY 02, 2016

Applies to:

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


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, 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)


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