0 Replies Latest reply on Aug 30, 2007 1:46 PM by Sergio R Pantano

    Seam-gen and Hibernate Search

    Sergio R Pantano Newbie

      I created classes with Seam-Gen (Seam 1.2.1) and I try use Hibernate Search the follow errors appears:


      14:41:05,194 INFO [STDOUT] Hibernate: insert into RCR.CONF_SYSTEM (SYSTEM_NAME, ID_SYSTEM) values (?, ?)
      14:41:05,209 FATAL [application] java.lang.reflect.InvocationTargetException
      javax.faces.el.EvaluationException: java.lang.reflect.InvocationTargetException
       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
       at javax.faces.component.UICommand.broadcast(UICommand.java:383)
       at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
       at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
      

      ...
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      

      ...
      at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
       ... 61 more
      Caused by: java.lang.NoSuchMethodError: org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
       at org.hibernate.search.engine.DocumentBuilder.getDocument(DocumentBuilder.java:234)
       at org.hibernate.search.event.FullTextIndexEventListener.onPostInsert(FullTextIndexEventListener.java:154)
       at org.hibernate.action.EntityInsertAction.postInsert(EntityInsertAction.java:127)
       at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:106)
       at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
      

      ...
      at org.jboss.seam.persistence.EntityManagerProxy.flush(EntityManagerProxy.java:83)
       at org.jboss.seam.framework.EntityHome.persist(EntityHome.java:49)
       at com.bcsinfo.security.view.web.util.AuditLogHome.persist(AuditLogHome.java:79)
       ... 92 more
      14:41:05,209 WARN [lifecycle] #{sistemHome.persist}: java.lang.reflect.InvocationTargetException
      javax.faces.FacesException: #{sistemHome.persist}: java.lang.reflect.InvocationTargetException
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
       at javax.faces.component.UICommand.broadcast(UICommand.java:383)
      

      ...
      at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
       at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
       ... 61 more
      Caused by: java.lang.NoSuchMethodError: org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
       at org.hibernate.search.engine.DocumentBuilder.getDocument(DocumentBuilder.java:234)
       at org.hibernate.search.event.FullTextIndexEventListener.onPostInsert(FullTextIndexEventListener.java:154)
       at org.hibernate.action.EntityInsertAction.postInsert(EntityInsertAction.java:127)
       at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:106)
      


      the Seam-gem (1.2.1) and Hibernate Search works togheter?