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

Google Groups | Unknown author | 3 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

    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
  2. 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
  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

    Hibernate SQL Exception java.lang.StringIndexOutOfBoundsException: String index out of range

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

    swagger codegen fails due to java exception

    GitHub | 2 years ago | vnugent
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0

  1. poroszd 11 times, last 2 weeks ago
  2. olle.hallin 1 times, last 3 weeks ago
  3. linxiaolong 1 times, last 3 months ago
  4. jokester 1 times, last 3 months ago
  5. tyson925 1 times, last 4 months ago
12 more registered users
18 unregistered visitors
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:658)
    1 frame
  3. joshua.util
    FormatUtils.isNonterminal
    1. joshua.util.FormatUtils.isNonterminal(FormatUtils.java:24)
    1 frame
  4. joshua.corpus
    BasicPhrase.<init>
    1. joshua.corpus.Vocabulary.nt(Vocabulary.java:245)
    2. joshua.corpus.Vocabulary.id(Vocabulary.java:152)
    3. joshua.corpus.AbstractPhrase.splitSentence(AbstractPhrase.java:51)
    4. joshua.corpus.BasicPhrase.<init>(BasicPhrase.java:40)
    4 frames
  5. joshua.subsample
    Subsampler.main
    1. joshua.subsample.PhraseReader.readPhrase(PhraseReader.java:49)
    2. joshua.subsample.BiCorpus$1.next(BiCorpus.java:140)
    3. joshua.subsample.BiCorpus$1.next(BiCorpus.java:116)
    4. joshua.subsample.BiCorpus.<init>(BiCorpus.java:79)
    5. joshua.subsample.BiCorpus.<init>(BiCorpus.java:60)
    6. joshua.subsample.BiCorpusFactory.unalignedFromFiles(BiCorpusFactory.java:59)
    7. joshua.subsample.BiCorpusFactory.fromFiles(BiCorpusFactory.java:54)
    8. joshua.subsample.Subsampler.subsample(Subsampler.java:142)
    9. joshua.subsample.Subsampler.subsample(Subsampler.java:103)
    10. joshua.subsample.SubsamplerCLI.runSubsampler(SubsamplerCLI.java:106)
    11. joshua.subsample.SubsamplerCLI.runMain(SubsamplerCLI.java:130)
    12. joshua.subsample.Subsampler.main(Subsampler.java:241)[mattmann-0420740:data/spanish-english/data]
    12 frames