-->
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.  [ 4 posts ] 
Author Message
 Post subject: NoSuchFieldError: ANALYZED
PostPosted: Tue Oct 13, 2009 8:44 pm 
Newbie

Joined: Thu Feb 28, 2008 12:18 pm
Posts: 10
Hi,

I'm just found one unknown behavior of the hib+lucense pack.
I'm using latest hib search 3.1.1 GA. But I'm getting the following error in linux environment. But same ear is working fine in Windows development environment(glassfish server).


Please let me know how to fix this. I read few similar threads in this forum, but no trace(same ear is working fine in dev env).

I'm using the following libs:

antlr-2.7.6.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-io-1.3.2.jar
dom4j-1.6.1.jar
ejb3-persistence-1.0.2.GA.jar
geronimo-stax-api_1.0_spec-1.0.1.jar
hibernate-annotations-3.4.0.GA.jar
hibernate-commons-annotations-3.1.0.GA.jar
hibernate-core-3.3.1.GA.jar
hibernate-entitymanager-3.4.0.GA.jar
hibernate-search-3.1.1.GA.jar
javassist-3.4.GA.jar
jsr250-api-1.0.jar
jta-1.1.jar
log4j-1.2.14.jar
lucene-analyzers-2.4.1.jar
lucene-core-2.4.1.jar
lucene-snowball-2.4.1.jar
slf4j-api-1.5.8.jar
slf4j-log4j12-1.5.8.jar
solr-common-1.3.0.jar
solr-commons-csv-1.3.0.jar
solr-core-1.3.0.jar
solr-lucene-analyzers-1.3.0.jar
solr-lucene-core-1.3.0.jar
solr-lucene-highlighter-1.3.0.jar
solr-lucene-queries-1.3.0.jar
solr-lucene-snowball-1.3.0.jar
solr-lucene-spellchecker-1.3.0.jar
xml-apis-1.0.b2.jar

EntityManagerFactory: java.lang.NoSuchFieldError 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:146)
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:79)
at org.hibernate.event.EventListeners$1.processListener(EventListeners.java


Top
 Profile  
 
 Post subject: Re: NoSuchFieldError: ANALYZED
PostPosted: Wed Oct 14, 2009 3:24 am 
Hibernate Team
Hibernate Team

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

this problem very much looks like a classpath problem. Are you sure that you don't have some conflicting jars in your ear or maybe in the shared lib directory of your container.

It might be that you even have the conflicting jar in your windows environment, but due to different order of jar files in the classpath the error does not occur on windows.

--Hardy


Top
 Profile  
 
 Post subject: Re: NoSuchFieldError: ANALYZED
PostPosted: Thu Oct 15, 2009 6:00 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
solr-lucene-core-1.3.0.jar

kick this out of classpath!
it's containing an outdated version of lucene, you don't need it and it is cousing this problem.

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


Top
 Profile  
 
 Post subject: Re: NoSuchFieldError: ANALYZED
PostPosted: Thu Oct 15, 2009 6:39 am 
Newbie

Joined: Thu Feb 28, 2008 12:18 pm
Posts: 10
Yes ,

After removing solr-lucene-core-1.3.0.jar it's workign fine.

Thanks grinovero

raghu.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.