Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4698

Hibernate search does not work in JBAS 6

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.2.1.CR2
    • Fix Version/s: 2.2.1.CR3
    • Component/s: Search
    • Labels:
      None
    • Environment:

      Jboss AS 6 M4,
      hibernate-search-3.2.1.Final,
      Jboss Seam 2.2.1.RC2

    • Steps to Reproduce:
      Hide

      Deploy any seam application that uses hibernate search

      Show
      Deploy any seam application that uses hibernate search
    • Affects:
      Release Notes, Compatibility/Configuration

      Description

      injection of FullTextEntityManager fails on jboss as 6
      @In
      FullTextEntityManager entityManager;

      exception:

      Caused by: java.lang.IllegalArgumentException: could not set field value: searchAction.entityManager
      at org.jboss.seam.Component.setFieldValue(Component.java:1930) [:2.2.1.CR2]
      at org.jboss.seam.Component.access$600(Component.java:127) [:2.2.1.CR2]
      at org.jboss.seam.Component$BijectedField.set(Component.java:2966) [:2.2.1.CR2]
      at org.jboss.seam.Component.injectAttributes(Component.java:1739) [:2.2.1.CR2]
      at org.jboss.seam.Component.inject(Component.java:1557) [:2.2.1.CR2]
      at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:61) [:2.2.1.CR2]
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [:2.2.1.CR2]
      at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97) [:2.2.1.CR2]
      at org.jboss.seam.util.Work.workInTransaction(Work.java:61) [:2.2.1.CR2]
      at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91) [:2.2.1.CR2]
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [:2.2.1.CR2]
      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [:2.2.1.CR2]
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [:2.2.1.CR2]
      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [:2.2.1.CR2]
      at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [:2.2.1.CR2]
      at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [:2.2.1.CR2]
      at com.parsekstores.catalog.SearchAction_$$javassist_seam_9.validate(SearchAction$$_javassist_seam_9.java)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_20]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_20]
      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_20]
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [:2.2.1.CR2]
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [:2.2.1.CR2]
      at org.jboss.seam.Component.callComponentMethod(Component.java:2275) [:2.2.1.CR2]
      at org.jboss.seam.Component.callCreateMethod(Component.java:2198) [:2.2.1.CR2]
      at org.jboss.seam.Component.newInstance(Component.java:2158) [:2.2.1.CR2]
      ... 85 more
      Caused by: java.lang.IllegalArgumentException: Could not set field value by reflection: SearchAction.entityManager on: com.parsekstores.catalog.SearchAction with value: class $Proxy266
      at org.jboss.seam.util.Reflections.set(Reflections.java:86) [:2.2.1.CR2]
      at org.jboss.seam.Component.setFieldValue(Component.java:1926) [:2.2.1.CR2]
      ... 110 more
      Caused by: java.lang.IllegalArgumentException: Can not set org.hibernate.search.jpa.FullTextEntityManager field com.parsekstores.catalog.SearchAction.entityManager to $Proxy266
      at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146) [:1.6.0_20]
      at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150) [:1.6.0_20]
      at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63) [:1.6.0_20]
      at java.lang.reflect.Field.set(Field.java:657) [:1.6.0_20]
      at org.jboss.seam.util.Reflections.set(Reflections.java:71) [:2.2.1.CR2]

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  manaRH Marek Novotny
                  Reporter:
                  ctomc Toma┼ż Cerar
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: