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

    • % %
    • Hide

      Reproducer attached (Instruction in "Steps_to_reproduce.txt")

      Show
      Reproducer attached (Instruction in "Steps_to_reproduce.txt")
    • 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")

      Attachments

        Issue Links

          Activity

            People

              g_nodet Guillaume Nodet (Inactive)
              rhn-support-shsingh Shailendra Singh
              Tomas Turek Tomas Turek
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: