1 Reply Latest reply: May 4, 2012 6:12 AM by Sanne Grinovero RSS

AbstractMethodError while using infinispan index

Dushyant Tiwari Newbie

I added lucene based indexes using the following configuration:

 

<indexing enabled="true"  indexLocalOnly="true" >

        <properties>

            <property name="hibernate.search.default.directory_provider" value="infinispan" />

         </properties>

</indexing>

 

This works well with ram but throws the following exception when value="infinispan" is used.

 

Caused by: java.lang.AbstractMethodError: org.hibernate.search.infinispan.CacheManagerServiceProvider.start(Ljava/util/Properties;)V

    at org.hibernate.search.engine.ServiceManager$ServiceProviderWrapper.increaseCounter(ServiceManager.java:135) ~[hibernate-search-engine-4.1.0.CR2.jar:4.1.0.CR2]

    at org.hibernate.search.engine.ServiceManager.requestService(ServiceManager.java:88) ~[hibernate-search-engine-4.1.0.CR2.jar:4.1.0.CR2]

    at org.hibernate.search.spi.SearchFactoryBuilder$BuildContext.requestService(SearchFactoryBuilder.java:635) ~[hibernate-search-engine-4.1.0.CR2.jar:4.1.0.CR2]

    at org.hibernate.search.infinispan.impl.InfinispanDirectoryProvider.start(InfinispanDirectoryProvider.java:83) ~[hibernate-search-infinispan-4.1.0.Final.jar:4.1.0.Final]

    at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:93) ~[hibernate-search-engine-4.1.0.CR2.jar:4.1.0.CR2]

    at org.hibernate.search.indexes.impl.IndexManagerHolder.createDirectoryManager(IndexManagerHolder.java:241) ~[hibernate-search-engine-4.1.0.CR2.jar:4.1.0.CR2]

    at org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:111) ~[hibernate-search-engine-4.1.0.CR2.jar:4.1.0.CR2]

    at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:411) ~[hibernate-search-engine-4.1.0.CR2.jar:4.1.0.CR2]

    at org.hibernate.search.spi.SearchFactoryBuilder.buildIncrementalSearchFactory(SearchFactoryBuilder.java:168) ~[hibernate-search-engine-4.1.0.CR2.jar:4.1.0.CR2]

    at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:148) ~[hibernate-search-engine-4.1.0.CR2.jar:4.1.0.CR2]

    at org.hibernate.search.impl.MutableSearchFactory.addClasses(MutableSearchFactory.java:193) ~[hibernate-search-engine-4.1.0.CR2.jar:4.1.0.CR2]

    at org.infinispan.query.backend.QueryInterceptor.enableClassesIncrementally(QueryInterceptor.java:256) ~[infinispan-query.jar:5.1.4.CR1]

    at org.infinispan.query.backend.QueryInterceptor.enableClassesIncrementally(QueryInterceptor.java:263) ~[infinispan-query.jar:5.1.4.CR1]

    at org.infinispan.query.backend.QueryInterceptor.enableClasses(QueryInterceptor.java:234) ~[infinispan-query.jar:5.1.4.CR1]

    at org.infinispan.query.SearchManagerImpl.buildQueryBuilderForClass(SearchManagerImpl.java:94) ~[infinispan-query.jar:5.1.4.CR1]

 

 

please suggest.