Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4447

Incompatible TypedQuery exception is thrown when application(Using JPA-Hibernate) bundle is refreshed/re-installed

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide

      Reproducer attached (Instruction in "Steps_to_reproduce.txt")

      Show
      Reproducer attached (Instruction in "Steps_to_reproduce.txt")
    • Sprint:
      6.3 Sprint 4 (Mar 28 - Apr 29)

      Description

      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")

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gnodet Guillaume Nodet
                  Reporter:
                  rhn-support-shsingh shailendra singh
                  Tester:
                  Tomáš Turek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: