java.lang.NullPointerException

GitHub | shijiebei2009 | 4 months 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.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at com.github.ddth.com.redir.RedisDirectory$RedisIndexInput.readByte()
  2. com.github.ddth
    RedisDirectory$RedisIndexInput.readByte
    1. com.github.ddth.com.redir.RedisDirectory$RedisIndexInput.readByte(RedisDirectory.java:660)
    1 frame
  3. Lucene
    CodecUtil.checkIndexHeader
    1. org.apache.lucene.store.BufferedChecksumIndexInput.readByte(BufferedChecksumIndexInput.java:41)
    2. org.apache.lucene.store.DataInput.readInt(DataInput.java:101)
    3. org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:195)
    4. org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:256)
    4 frames
  4. org.apache.lucene
    Lucene50SegmentInfoFormat.read
    1. org.apache.lucene.codecs.lucene50.Lucene50SegmentInfoFormat.read(Lucene50SegmentInfoFormat.java:86)
    1 frame
  5. Lucene
    DirectoryReader.open
    1. org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:326)
    2. org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:53)
    3. org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:50)
    4. org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:660)
    5. org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:50)
    6. org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63)
    6 frames
  6. com.github.ddth
    QndRedisDirSearch.main
    1. com.github.ddth.com.redir.qnd.QndRedisDirSearch.main(QndRedisDirSearch.java:25)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  8. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame