[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-420) Hibernate Search does not work with Lucene 3.0.0

Mark Derricutt (JIRA) noreply at atlassian.com
Thu Nov 26 16:14:08 EST 2009


Hibernate Search does not work with Lucene 3.0.0
------------------------------------------------

                 Key: HSEARCH-420
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-420
             Project: Hibernate Search
          Issue Type: Bug
    Affects Versions: 3.1.1.GA
            Reporter: Mark Derricutt


After updating my lucence dependency to the recently released 3.0.0 I see the following stack trace:

org.fest.reflect.exception.ReflectionError: Unable to invoke method 'bindEntityProvider' with arguments [smx3.schema.provider.SchemaEntityProvider at 3747c1db]
	at org.fest.reflect.method.Invoker.invoke(Invoker.java:101)
	at smx3.testing.SessionFactoryBuilder.buildSessionFactory(SessionFactoryBuilder.java:61)
	at smx3.partyresource.service.AgreementServiceImplTest.setup(AgreementServiceImplTest.java:38)
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 java.lang.reflect.Method.invoke(Method.java:597)
	at org.fest.reflect.method.Invoker.invoke(Invoker.java:99)
	... 28 more
Caused by: java.lang.NoSuchMethodError: org.apache.lucene.store.FSDirectory.getDirectory(Ljava/io/File;)Lorg/apache/lucene/store/FSDirectory;
	at org.hibernate.search.store.DirectoryProviderHelper.createFSIndex(DirectoryProviderHelper.java:77)
	at org.hibernate.search.store.FSDirectoryProvider.initialize(FSDirectoryProvider.java:44)
	at org.hibernate.search.store.DirectoryProviderFactory.createDirectoryProvider(DirectoryProviderFactory.java:129)
	at org.hibernate.search.store.DirectoryProviderFactory.createDirectoryProviders(DirectoryProviderFactory.java:63)
	at org.hibernate.search.impl.SearchFactoryImpl.initDocumentBuilders(SearchFactoryImpl.java:404)
	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: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:1352)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
	at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:812)
	at smx3.entity.EntityActivatorImpl.bindSessionFactory(EntityActivatorImpl.java:197)
	at smx3.entity.EntityActivatorImpl.rebuildSessionFactory(EntityActivatorImpl.java:106)
	at smx3.entity.EntityActivatorImpl.rebuildFromEntityProviders(EntityActivatorImpl.java:85)
	at smx3.entity.EntityActivatorImpl.bindEntityProvider(EntityActivatorImpl.java:68)

It would seem that Lucene 3.0.0 has broken APIs with 2.9.0 which worked fine with Hibernate Search.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list