"SQL data type out of range" raised by TimesTen during database write through Hibernate

Solution Verified - Updated -

Issue

java.sql.SQLException: [TimesTen][TimesTen 11.2.2.4.10 ODBC Driver]SQL data type out of range
    at com.timesten.jdbc.JdbcOdbc.createSQLException(JdbcOdbc.java:3238)
    at com.timesten.jdbc.JdbcOdbc.standardError(JdbcOdbc.java:3387)
    at com.timesten.jdbc.JdbcOdbc.standardError(JdbcOdbc.java:3352)
    at com.timesten.jdbc.JdbcOdbcPreparedStatement.setNull(JdbcOdbcPreparedStatement.java:504)
    at org.jboss.jca.adapters.jdbc.CachedPreparedStatement.setNull(CachedPreparedStatement.java:123)
    at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.setNull(WrappedPreparedStatement.java:550)
    at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:80)
    at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:284)
    at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:279)
    at org.hibernate.type.AbstractSingleColumnStandardBasicType.nullSafeSet(AbstractSingleColumnStandardBasicType.java:57)
    at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2798)
    at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3076)
    ...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6
  • Hibernate 4 (EAP integrated or standalone applications)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In