java.lang.NoSuchMethodError: org.apache.lucene.analysis.KeywordAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V

Coderanch | adam bilyone | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Netbeans package search and class search not active

    Coderanch | 5 years ago | adam bilyone
    java.lang.NoSuchMethodError: org.apache.lucene.analysis.KeywordAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.lucene.analysis.KeywordAnalyzer.setOverridesTokenStreamMethod(Ljava/lang/Class;)V

      at org.apache.lucene.analysis.KeywordAnalyzer.<init>()
    2. Lucene
      KeywordAnalyzer.<init>
      1. org.apache.lucene.analysis.KeywordAnalyzer.<init>(KeywordAnalyzer.java:29)
      1 frame
    3. org.netbeans.modules
      RepositoryUpdater$FileListWork.getDone
      1. org.netbeans.modules.java.source.usages.DocumentUtil.createAnalyzer(DocumentUtil.java:118)
      2. org.netbeans.modules.java.source.usages.PersistentClassIndex.<init>(PersistentClassIndex.java:105)
      3. org.netbeans.modules.java.source.usages.PersistentClassIndex.create(PersistentClassIndex.java:190)
      4. org.netbeans.modules.java.source.usages.ClassIndexManager.createUsagesQuery(ClassIndexManager.java:204)
      5. org.netbeans.modules.java.source.indexing.JavaCustomIndexer$Factory$1$1.run(JavaCustomIndexer.java:814)
      6. org.netbeans.modules.java.source.indexing.JavaCustomIndexer$Factory$1$1.run(JavaCustomIndexer.java:811)
      7. org.netbeans.modules.parsing.lucene.support.IndexManager$1.call(IndexManager.java:103)
      8. org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:168)
      9. org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:356)
      10. org.netbeans.modules.parsing.lucene.support.IndexManager.writeAccess(IndexManager.java:100)
      11. org.netbeans.modules.java.source.indexing.JavaCustomIndexer$Factory$1.run(JavaCustomIndexer.java:811)
      12. org.netbeans.modules.java.source.indexing.JavaCustomIndexer$Factory$1.run(JavaCustomIndexer.java:808)
      13. org.netbeans.modules.java.source.usages.ClassIndexManager.prepareWriteLock(ClassIndexManager.java:120)
      14. org.netbeans.modules.java.source.indexing.JavaCustomIndexer$Factory.scanStarted(JavaCustomIndexer.java:808)
      15. org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.scanStarted(RepositoryUpdater.java:1695)
      16. org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.scanFiles(RepositoryUpdater.java:2179)
      17. org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:2374)
      17 frames