-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: noSuchFieldException in DocumentBuilderContainedEntity
PostPosted: Mon Feb 02, 2009 11:10 am 
Beginner
Beginner

Joined: Thu Sep 01, 2005 10:09 am
Posts: 39
HI I experience a strage exception since i moved to 3.1

Caused by: java.lang.NoSuchFieldError: ANALYZED
at org.hibernate.search.engine.DocumentBuilderContainedEntity.getIndex(DocumentBuilderContainedEntity.java:538)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.bindFieldAnnotation(DocumentBuilderContainedEntity.java:462)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.checkForField(DocumentBuilderContainedEntity.java:323)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.initializeMemberLevelAnnotations(DocumentBuilderContainedEntity.java:204)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.initializeClass(DocumentBuilderContainedEntity.java:139)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.init(DocumentBuilderContainedEntity.java:106)
at org.hibernate.search.engine.DocumentBuilderIndexedEntity.init(DocumentBuilderIndexedEntity.java:147)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.<init>(DocumentBuilderContainedEntity.java:93)
at org.hibernate.search.engine.DocumentBuilderIndexedEntity.<init>(DocumentBuilderIndexedEntity.java:128)
at org.hibernate.search.impl.SearchFactoryImpl.initDocumentBuilders(SearchFactoryImpl.java:409)
at org.hibernate.search.impl.SearchFactoryImpl.<init>(SearchFactoryImpl.java:119)
at org.hibernate.search.event.ContextHolder.getOrBuildSearchFactory(ContextHolder.java:30)
at org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:59)
at org.hibernate.event.EventListeners$1.processListener(EventListeners.java:198)
at org.hibernate.event.EventListeners.processListeners(EventListeners.java:181)
at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:194)
at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1338)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 43 more

the Field class in my jar doesnt have such a field. did I miss something ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2009 10:51 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

looks strange. Are you sure you don't have some classpath problems? Maybe some inconsistent jar files maybe? How does your annotated class look like?

--Hardy


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 04, 2009 12:24 pm 
Newbie

Joined: Fri Jan 26, 2007 6:39 pm
Posts: 3
I had this same issue, it turns out I was using an old version of Lucene (2.3.2). Upgrading to 2.4.0 solved the problem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 25, 2009 4:40 pm 
Newbie

Joined: Wed Mar 25, 2009 4:36 pm
Posts: 5
Hi
I have the same issue
I have lucene 2.4.0, hibernate search 3.0.1, jboss 5.0.1
On ubuntu i haven't this problem but when i move my EAR Project to jboss server on CentOS i have this issue... I don't understand
If someone can help me ...
Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 26, 2009 3:43 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

are you sure that there are no duplicated libraries in your classpath? Check and compare the shared libraries directories of the two servers.

--Hardy


Top
 Profile  
 
 Post subject: Re: noSuchFieldException in DocumentBuilderContainedEntity
PostPosted: Sun Jun 14, 2009 12:29 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
I got something similar (same stacktrace) and I found out this:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-380

Please make sure to have no version of solr-lucene-core around as it contains a copy of the same incompatible classes as you could have in an older Lucene version. Unfortunately it appears that solr-lucene-core is a maven transitive dependency of Search.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.