java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 241

JIRA | Nidhi Mehta | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    On master: Build git hash:b218f0acb0734b201dc75551eebd5bb5522bec57 pp = h2o.importFile(h,"/Users/nidhimehta/h2o/smalldata/airlines/AirlinesTest.csv.zip",key = "pp") aa = h2o.prcomp(pp[,3:9],key="aa",standardize=T,retx=T,max_pc=234) dd = h2o.importFile(h,"/Users/nidhimehta/h2o/smalldata/airlines/AirlinesTrain.csv.zip",key = "dd") dd = h2o.predict(aa,newdata=dd,num_pc = 2) | | 0% Polling fails: <simpleError in .h2o.__poll(client, job_key): Got exception 'class java.lang.RuntimeException', with msg 'java.lang.ArrayIndexOutOfBoundsException: 241' java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 241 at water.MRTask2.getResult(MRTask2.java:280) at water.MRTask2.doAll(MRTask2.java:221) at water.MRTask2.doAll(MRTask2.java:218) at hex.pca.PCAScore.execImpl(PCAScore.java:43) at water.Func.exec(Func.java:42) at water.Job$3.compute2(Job.java:333) at water.H2O$H2OCountedCompleter.compute(H2O.java:647) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) Caused by: java.lang.ArrayIndexOutOfBoundsException: 241 at hex.pca.PCAScore$PCAScoreTask.processRow(PCAScore.java:96) at hex.FrameTask.map(FrameTask.java:726) at water.MRTask2.compute2(MRTask2.java:417) ... 6 more

    JIRA | 2 years ago | Nidhi Mehta
    java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 241
  2. 0

    On master: Build git hash:b218f0acb0734b201dc75551eebd5bb5522bec57 pp = h2o.importFile(h,"/Users/nidhimehta/h2o/smalldata/airlines/AirlinesTest.csv.zip",key = "pp") aa = h2o.prcomp(pp[,3:9],key="aa",standardize=T,retx=T,max_pc=234) dd = h2o.importFile(h,"/Users/nidhimehta/h2o/smalldata/airlines/AirlinesTrain.csv.zip",key = "dd") dd = h2o.predict(aa,newdata=dd,num_pc = 2) | | 0% Polling fails: <simpleError in .h2o.__poll(client, job_key): Got exception 'class java.lang.RuntimeException', with msg 'java.lang.ArrayIndexOutOfBoundsException: 241' java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 241 at water.MRTask2.getResult(MRTask2.java:280) at water.MRTask2.doAll(MRTask2.java:221) at water.MRTask2.doAll(MRTask2.java:218) at hex.pca.PCAScore.execImpl(PCAScore.java:43) at water.Func.exec(Func.java:42) at water.Job$3.compute2(Job.java:333) at water.H2O$H2OCountedCompleter.compute(H2O.java:647) at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) Caused by: java.lang.ArrayIndexOutOfBoundsException: 241 at hex.pca.PCAScore$PCAScoreTask.processRow(PCAScore.java:96) at hex.FrameTask.map(FrameTask.java:726) at water.MRTask2.compute2(MRTask2.java:417) ... 6 more

    JIRA | 2 years ago | Nidhi Mehta
    java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 241

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      241

      at hex.pca.PCAScore$PCAScoreTask.processRow()
    2. hex.pca
      PCAScore$PCAScoreTask.processRow
      1. hex.pca.PCAScore$PCAScoreTask.processRow(PCAScore.java:96)
      1 frame
    3. hex
      FrameTask.map
      1. hex.FrameTask.map(FrameTask.java:726)
      1 frame
    4. water
      H2O$H2OCountedCompleter.compute
      1. water.MRTask2.compute2(MRTask2.java:417)
      2. water.H2O$H2OCountedCompleter.compute(H2O.java:647)
      2 frames
    5. jsr166y
      ForkJoinWorkerThread.run
      1. jsr166y.CountedCompleter.exec(CountedCompleter.java:429)
      2. jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
      3. jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974)
      4. jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
      5. jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
      5 frames