java.lang.StringIndexOutOfBoundsException: String index out of range: 0

Google Groups | Matt Post | 4 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Re: [joshua-support] Getting an error while tuning

    Google Groups | 4 years ago | Matt Post
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  2. 0

    Trying to go through Joshua guide for creating Spanish->English vocabulary Error in Step 2:subsample

    Google Groups | 3 years ago | Unknown author
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  3. 0
    samebug tip
    Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range

    Stack Overflow | 4 years ago | vijay
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  6. 0

    Using elasticsearch_river to output all event types

    Google Groups | 5 years ago | Dominic Scheirlinck
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
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.StringIndexOutOfBoundsException

    String index out of range: 0

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:694)
    1 frame
  3. joshua.util
    FormatUtils.isNonterminal
    1. joshua.util.FormatUtils.isNonterminal(FormatUtils.java:39)
    1 frame
  4. joshua.corpus
    Vocabulary.id
    1. joshua.corpus.Vocabulary.nt(Vocabulary.java:224)
    2. joshua.corpus.Vocabulary.id(Vocabulary.java:151)
    2 frames
  5. joshua.decoder.ff
    MemoryBasedBatchGrammar.<init>
    1. joshua.decoder.ff.tm.format.HieroFormatReader.parseLine(HieroFormatReader.java:44)
    2. joshua.decoder.ff.tm.format.HieroFormatReader.parseLine(HieroFormatReader.java:16)
    3. joshua.decoder.ff.tm.GrammarReader.next(GrammarReader.java:121)
    4. joshua.decoder.ff.tm.GrammarReader.next(GrammarReader.java:17)
    5. joshua.decoder.ff.tm.hash_based.MemoryBasedBatchGrammar.<init>(MemoryBasedBatchGrammar.java:97)
    5 frames
  6. joshua.decoder
    JoshuaDecoder.main
    1. joshua.decoder.Decoder.initializeTranslationGrammars(Decoder.java:594)
    2. joshua.decoder.Decoder.initialize(Decoder.java:476)
    3. joshua.decoder.Decoder.<init>(Decoder.java:96)
    4. joshua.decoder.JoshuaDecoder.main(JoshuaDecoder.java:44)
    4 frames