Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4405

java.lang.NumberFormatException: For input string: "4g3 (1)"

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5
    • None
    • core/index
    • None
    • Windows 7 64 bit JDK

    • New

    Description

      When trying to instantiate IndexWriter, I get this exception. I have no other clues on why this might happen.

      Caused by: java.lang.NumberFormatException: For input string: "4g3 (1)"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Long.parseLong(Long.java:419)
      at org.apache.lucene.index.SegmentInfos.generationFromSegmentsFileName(SegmentInfos.java:214)
      at org.apache.lucene.index.SegmentInfos.getCurrentSegmentGeneration(SegmentInfos.java:149)
      at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:626)
      at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:575)
      at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:346)
      at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1115)

      Attachments

        Activity

          People

            Unassigned Unassigned
            rakris Radhakrishna Bhat
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: