-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2
-
%
-
-
-
6.3 Sprint 4 (Mar 28 - Apr 29)
1) Application uses TypedQuery with hibernate.
2) It is deployed with no error on JBoss Fuse 6.2 and the application will initialize correctly.
3) When we try to reinstall/refresh the application bundle, below error is thrown.
Caused by: java.lang.IllegalArgumentException: Type specified for TypedQuery [entity.Employee] is incompatible with query return type [class entity.Employee] at org.hibernate.ejb.AbstractEntityManagerImpl.resultClassChecking(AbstractEntityManagerImpl.java:702) at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:303)
4) Refresh the "hibernate-core" bundle OR JBoss Fuse restart will resolve the issue.
Reproducer attached (Instruction in "Steps_to_reproduce.txt")
- is duplicated by
-
ENTESB-4495 Hibernate and Bundle ClassLoaders out of sync on Bundle Refresh
- Closed
- relates to
-
ENTESB-3599 JPA Hibernate application does not perform operation after undeploy/deploy of bundles, only re-installing feature 'hibernate' make operations possible.
- Closed