Sybase "Message Empty" / 7738 and "token datastream length was not correct" / 3805 errors during HQL query in Hibernate
Issue
- Performing an HQL query using an
INclause with a list of 2500+ values using Sybase -
The database driver 'jConnect (TM) for JDBC(TM)/7.07' raises an exception when the query is executed
... WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] SQL Error: 7738, SQLState: null ... ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] Message empty. ... WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] SQL Error: 3805, SQLState: ZZZZZ ... ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] The token datastream length was not correct. This is an internal protocol error.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7
- 6
- 5
- Hibernate
- 5
- 4
- 3
- Sybase ASE 15.7 / jConn 7.07
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.