My Oracle Support Banner

Assertion botch: negative time With 11.2 JDBC Drivers (Doc ID 1206581.1)

Last updated on MAY 25, 2023

Applies to:

JDBC - Version 11.2.0.1.0 to 11.2.0.1.0 [Release 11.2]
Information in this document applies to any platform.

Symptoms

On using the latest driver 11.2.0.1 to insert or update the date values which are near to end of the day i.e.  like “0001-04-28 23:38:19”, “0001-04-02 23:53:01”, with Timezone set to "(GMT +05:30) Chennai, Kolkata, Mumbai, New Delhi" gets the following exception

java.lang.RuntimeException: Assertion botch: negative time
at oracle.jdbc.driver.DateCommonBinder.setOracleHMS(OraclePreparedStatement.java:17446)
at oracle.jdbc.driver.TimestampBinder.bind(OraclePreparedStatement.java:17951)
at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:3014)
at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2247)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3444)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3530)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1062)

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.