My Oracle Support Banner

当注册一个OUT参数,并没有返回值时,12.1.0.2 JDBC驱动报"java.sql.SQLException: Missing defines" (Doc ID 2133405.1)

Last updated on MAY 02, 2016

适用于:

JDBC - 版本 12.1.0.2.0 和更高版本
本文档所含信息适用于所有平台

症状

注册一个OUT参数,但是存储过程并没有为这个参数返回值。驱动会报出"Missing defines"错误。
问题发生在JDBC thin 12.1.0.2上, 但是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)



原因

To view full details, 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 a vibrant support community of peers and Oracle experts.