java.lang.IndexOutOfBoundsException: Index: 22, Size: 22 java.util.ArrayList.rangeCheck(ArrayList.java:653) java.util.ArrayList.get(ArrayList.java:429) weka.core.Attribute.value(Attribute.java:735) weka.core.AbstractInstance.stringValue(AbstractInstance.java:668) weka.core.AbstractInstance.stringValue(AbstractInstance.java:644) weka.core.AbstractInstance.toString(AbstractInstance.java:756) weka.core.DenseInstance.toStringNoWeight(DenseInstance.java:330) weka.core.AbstractInstance.toStringMaxDecimalDigits(AbstractInstance.java:692) weka.core.AbstractInstance.toString(AbstractInstance.java:712) java.lang.String.valueOf(String.java:2981) java.lang.StringBuffer.append(StringBuffer.java:265) weka.core.Instances.stringWithoutHeader(Instances.java:1734) weka.core.Instances.toString(Instances.java:1718) java.lang.String.valueOf(String.java:2981) java.io.PrintStream.println(PrintStream.java:821) weka.core.Tee.println(Tee.java:484) myWeka.myWeka.main(myWeka.java:262)

Stack Overflow | eggwhite | 3 months ago
  1. 0

    Java Weka prediction throws Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 22, Size: 22

    Stack Overflow | 3 months ago | eggwhite
    java.lang.IndexOutOfBoundsException: Index: 22, Size: 22 java.util.ArrayList.rangeCheck(ArrayList.java:653) java.util.ArrayList.get(ArrayList.java:429) weka.core.Attribute.value(Attribute.java:735) weka.core.AbstractInstance.stringValue(AbstractInstance.java:668) weka.core.AbstractInstance.stringValue(AbstractInstance.java:644) weka.core.AbstractInstance.toString(AbstractInstance.java:756) weka.core.DenseInstance.toStringNoWeight(DenseInstance.java:330) weka.core.AbstractInstance.toStringMaxDecimalDigits(AbstractInstance.java:692) weka.core.AbstractInstance.toString(AbstractInstance.java:712) java.lang.String.valueOf(String.java:2981) java.lang.StringBuffer.append(StringBuffer.java:265) weka.core.Instances.stringWithoutHeader(Instances.java:1734) weka.core.Instances.toString(Instances.java:1718) java.lang.String.valueOf(String.java:2981) java.io.PrintStream.println(PrintStream.java:821) weka.core.Tee.println(Tee.java:484) myWeka.myWeka.main(myWeka.java:262)
  2. 0

    GitHub comment 15#149827907

    GitHub | 1 year ago | silverroses
    java.lang.IndexOutOfBoundsException: Index: 13004, Size: 3 java.util.ArrayList.RangeCheck(ArrayList.java:547) java.util.ArrayList.get(ArrayList.java:322) weka.core.Attribute.value(Attribute.java:808) weka.core.AbstractInstance.stringValue(AbstractInstance.java:668) weka.core.AbstractInstance.stringValue(AbstractInstance.java:644) weka.core.AbstractInstance.toString(AbstractInstance.java:756) weka.core.DenseInstance.toStringNoWeight(DenseInstance.java:316) weka.core.AbstractInstance.toStringMaxDecimalDigits(AbstractInstance.java:692) weka.core.AbstractInstance.toString(AbstractInstance.java:712) trainableSegmentation.WekaSegmentation.writeDataToARFF(WekaSegmentation.java:3679) trainableSegmentation.WekaSegmentation.saveData(WekaSegmentation.java:783) trainableSegmentation.Weka_Segmentation.saveTrainingData(Weka_Segmentation.java:2035) trainableSegmentation.Weka_Segmentation$1$1.run(Weka_Segmentation.java:410) java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:662)
  3. 0

    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 Error

    GitHub | 1 year ago | beemi
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Demo image chooser doesn't work except for the first data set (backdoor).

    GitHub | 2 years ago | Baltoli
    java.lang.IndexOutOfBoundsException: Index: 5, Size: 1
  6. 0

    FATAL Exception - caused client to crash

    GitHub | 2 years ago | kreezxil
    java.lang.IndexOutOfBoundsException: Index: 43, Size: 39

  1. filpgame 1 times, last 1 week ago
  2. Aria Pahlavan 6 times, last 1 week ago
  3. bmacedo 4 times, last 1 week ago
  4. MoYapro 5 times, last 2 weeks ago
  5. Alexandru Popa 12 times, last 2 weeks ago
63 more registered users
32 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.IndexOutOfBoundsException

    Index: 22, Size: 22 java.util.ArrayList.rangeCheck(ArrayList.java:653) java.util.ArrayList.get(ArrayList.java:429) weka.core.Attribute.value(Attribute.java:735) weka.core.AbstractInstance.stringValue(AbstractInstance.java:668) weka.core.AbstractInstance.stringValue(AbstractInstance.java:644) weka.core.AbstractInstance.toString(AbstractInstance.java:756) weka.core.DenseInstance.toStringNoWeight(DenseInstance.java:330) weka.core.AbstractInstance.toStringMaxDecimalDigits(AbstractInstance.java:692) weka.core.AbstractInstance.toString(AbstractInstance.java:712) java.lang.String.valueOf(String.java:2981) java.lang.StringBuffer.append(StringBuffer.java:265) weka.core.Instances.stringWithoutHeader(Instances.java:1734) weka.core.Instances.toString(Instances.java:1718) java.lang.String.valueOf(String.java:2981) java.io.PrintStream.println(PrintStream.java:821) weka.core.Tee.println(Tee.java:484) myWeka.myWeka.main(myWeka.java:262)

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.rangeCheck(ArrayList.java:653)
    2. java.util.ArrayList.get(ArrayList.java:429)
    2 frames
  3. weka-dev
    AbstractInstance.toString
    1. weka.core.Attribute.value(Attribute.java:735)
    2. weka.core.AbstractInstance.stringValue(AbstractInstance.java:668)
    3. weka.core.AbstractInstance.stringValue(AbstractInstance.java:644)
    4. weka.core.AbstractInstance.toString(AbstractInstance.java:756)
    5. weka.core.DenseInstance.toStringNoWeight(DenseInstance.java:330)
    6. weka.core.AbstractInstance.toStringMaxDecimalDigits(AbstractInstance.java:692)
    7. weka.core.AbstractInstance.toString(AbstractInstance.java:712)
    7 frames
  4. Java RT
    StringBuffer.append
    1. java.lang.String.valueOf(String.java:2981)
    2. java.lang.StringBuffer.append(StringBuffer.java:265)
    2 frames
  5. weka-dev
    Instances.toString
    1. weka.core.Instances.stringWithoutHeader(Instances.java:1734)
    2. weka.core.Instances.toString(Instances.java:1718)
    2 frames
  6. Java RT
    PrintStream.println
    1. java.lang.String.valueOf(String.java:2981)
    2. java.io.PrintStream.println(PrintStream.java:821)
    2 frames
  7. weka-dev
    Tee.println
    1. weka.core.Tee.println(Tee.java:484)
    1 frame
  8. myWeka
    myWeka.main
    1. myWeka.myWeka.main(myWeka.java:262)
    1 frame