java.lang.IndexOutOfBoundsException

Index: 0, Size: 0

Samebug tips1

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4329

  • via Unknown by Miller, Timothy,
  • via Unknown by Miller, Timothy,
  • via Unknown by Joern Kottmann,
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at opennlp.tools.ml.model.AbstractDataIndexer.sortAndMerge(AbstractDataIndexer.java:89) at opennlp.tools.ml.model.TwoPassDataIndexer.<init>(TwoPassDataIndexer.java:105) at opennlp.tools.ml.AbstractEventTrainer.getDataIndexer(AbstractEventTrainer.java:74) at opennlp.tools.ml.AbstractEventTrainer.train(AbstractEventTrainer.java:91) at opennlp.tools.ml.model.TrainUtil.train(TrainUtil.java:53) at opennlp.tools.sentdetect.SentenceDetectorME.train(SentenceDetectorME.java:326) at opennlp.tools.sentdetect.SDCrossValidator.evaluate(SDCrossValidator.java:103) at opennlp.tools.cmdline.sentdetect.SentenceDetectorCrossValidatorTool.run(SentenceDetectorCrossValidatorTool.java:78) at opennlp.tools.cmdline.CLI.main(CLI.java:224)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    slashslash
    2 times, last one
    SteVio1989SteVio1989
    19 times, last one
    Unknown UserUnknown User
    312 times, last one
    rocdayrocday
    Once,
    PilleoPilleo
    12 times, last one
    239 more bugmates