Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2442

java.lang.ClassCastException: class org.apache.lucene.codecs.lucene50.Lucene50PostingsFormat

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 11.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I've seen the following on NB8 and recently started getting it on NB11. I'm not too sure what's causing this but I figured I'd report it anyhow. I don't think it's caused by a plugin given the stack trace.

       

       

      java.lang.ClassCastException: class org.apache.lucene.codecs.lucene50.Lucene50PostingsFormat
          at java.base/java.lang.Class.asSubclass(Class.java:3593)
          at org.apache.lucene.util.SPIClassIterator.next(SPIClassIterator.java:158)
          at org.apache.lucene.util.NamedSPILoader.reload(NamedSPILoader.java:70)
          at org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:51)
          at org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:38)
          at org.apache.lucene.codecs.PostingsFormat$Holder.<clinit>(PostingsFormat.java:49)
      Caused: java.lang.ExceptionInInitializerError
          at org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:112)
          at org.apache.lucene.codecs.lucene54.Lucene54Codec.<init>(Lucene54Codec.java:161)
          at org.apache.lucene.codecs.lucene54.Lucene54Codec.<init>(Lucene54Codec.java:81)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
          at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
          at java.base/java.lang.Class.newInstance(Class.java:560)
          at org.apache.lucene.util.NamedSPILoader.reload(NamedSPILoader.java:72)
          at org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:49)
          at org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:38)
          at org.apache.lucene.codecs.Codec$Holder.<clinit>(Codec.java:47)
          at org.apache.lucene.codecs.Codec.getDefault(Codec.java:140)
          at org.apache.lucene.index.LiveIndexWriterConfig.<init>(LiveIndexWriterConfig.java:120)
          at org.apache.lucene.index.IndexWriterConfig.<init>(IndexWriterConfig.java:140)
          at org.apache.maven.index.context.NexusIndexWriter.defaultConfig(NexusIndexWriter.java:62)
          at org.apache.maven.index.context.DefaultIndexingContext.getWriterConfig(DefaultIndexingContext.java:543)
          at org.apache.maven.index.context.DefaultIndexingContext.openAndWarmup(DefaultIndexingContext.java:531)
          at org.apache.maven.index.context.DefaultIndexingContext.prepareIndex(DefaultIndexingContext.java:247)
          at org.apache.maven.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:162)
          at org.apache.maven.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:172)
          at org.apache.maven.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:183)
          at org.apache.maven.index.DefaultIndexer.createIndexingContext(DefaultIndexer.java:86)
          at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.addIndexingContextForced(NexusRepositoryIndexerImpl.java:277)
          at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.loadIndexingContext2(NexusRepositoryIndexerImpl.java:340)
          at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$700(NexusRepositoryIndexerImpl.java:122)
          at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:657)
          at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:652)
          at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
          at org.openide.util.Mutex.writeAccess(Mutex.java:246)
          at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:652)
          at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:42)
          at org.netbeans.modules.maven.ProjectOpenedHookImpl$2.run(ProjectOpenedHookImpl.java:207)
          at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
          at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
          at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

        Attachments

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

              Dates

              • Created:
                Updated:

                Issue deployment