org.fest.reflect.exception.ReflectionError: Unable to invoke method 'bindEntityProvider' with arguments [smx3.schema.provider.SchemaEntityProvider@3747c1db]

Hibernate JIRA | Mark Derricutt | 7 years ago
  1. 0

    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@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.

    Hibernate JIRA | 7 years ago | Mark Derricutt
    org.fest.reflect.exception.ReflectionError: Unable to invoke method 'bindEntityProvider' with arguments [smx3.schema.provider.SchemaEntityProvider@3747c1db]
  2. 0

    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@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.

    Hibernate JIRA | 7 years ago | Mark Derricutt
    org.fest.reflect.exception.ReflectionError: Unable to invoke method 'bindEntityProvider' with arguments [smx3.schema.provider.SchemaEntityProvider@3747c1db]
  3. 0

    no such method error

    docfetcher | 5 months ago | *anonymous
    java.lang.NoSuchMethodError: org.apache.lucene.store.FSDirectory.open(Ljava/io/File;)Lorg/apache/lucene/store/FSDirectory;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Search 4.1.1 NoSuchMethodError FSDirectory.open

    Stack Overflow | 4 years ago | Keerthiram Murugesan
    java.lang.NoSuchMethodError: org.apache.lucene.store.FSDirectory.open(Ljava/io/File;Lorg/apache/lucene/store/LockFactory;)Lorg/apache/lucene/store/FSDirectory;
  6. 0

    Errors when implementing search using API instead of command lines

    Google Groups | 5 months ago | Hadeel Maryoosh
    java.lang.NoSuchMethodError: org.apache.lucene.store.FSDirectory.open(Ljava/nio/file/Path;)Lorg/apache/lucene/store/FSDirectory;

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.lucene.store.FSDirectory.getDirectory(Ljava/io/File;)Lorg/apache/lucene/store/FSDirectory;

      at org.hibernate.search.store.DirectoryProviderHelper.createFSIndex()
    2. Hibernate Search Engine
      SearchFactoryImpl.<init>
      1. org.hibernate.search.store.DirectoryProviderHelper.createFSIndex(DirectoryProviderHelper.java:77)
      2. org.hibernate.search.store.FSDirectoryProvider.initialize(FSDirectoryProvider.java:44)
      3. org.hibernate.search.store.DirectoryProviderFactory.createDirectoryProvider(DirectoryProviderFactory.java:129)
      4. org.hibernate.search.store.DirectoryProviderFactory.createDirectoryProviders(DirectoryProviderFactory.java:63)
      5. org.hibernate.search.impl.SearchFactoryImpl.initDocumentBuilders(SearchFactoryImpl.java:404)
      6. org.hibernate.search.impl.SearchFactoryImpl.<init>(SearchFactoryImpl.java:119)
      6 frames
    3. org.hibernate.search
      FullTextIndexEventListener.initialize
      1. org.hibernate.search.event.ContextHolder.getOrBuildSearchFactory(ContextHolder.java:30)
      2. org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:79)
      2 frames
    4. Hibernate
      EventListeners.initializeListeners
      1. org.hibernate.event.EventListeners$1.processListener(EventListeners.java:198)
      2. org.hibernate.event.EventListeners.processListeners(EventListeners.java:181)
      3. org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:194)
      3 frames
    5. Hibernate
      AnnotationConfiguration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1352)
      2. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
      3. org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:812)
      3 frames
    6. smx3.entity
      EntityActivatorImpl.bindEntityProvider
      1. smx3.entity.EntityActivatorImpl.bindSessionFactory(EntityActivatorImpl.java:197)
      2. smx3.entity.EntityActivatorImpl.rebuildSessionFactory(EntityActivatorImpl.java:106)
      3. smx3.entity.EntityActivatorImpl.rebuildFromEntityProviders(EntityActivatorImpl.java:85)
      4. smx3.entity.EntityActivatorImpl.bindEntityProvider(EntityActivatorImpl.java:68)
      4 frames