Running a Stored Procedure with hibernate returns null and throws 'org.hibernate.exception.GenericJDBCException: could not execute query'
Issue
Certain stored procedure return null but this is not expected. Given the attached stack trace, why is this happening ?
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:75)
Environment
- Hibernate 3.2.4 SP1 shipped with Enterprise Application Platform 4.2.0 CPx and 4.3.0CPx
- use of stored procedure
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.