java.lang.ArrayIndexOutOfBoundsException: -1

JIRA | Arno Candel | 10 months 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

    {code} library(h2o) h2o.init(nthreads=-1) htable = h2o.uploadFile("/users/arno/h2o-3/smalldata/gbm_test/moppe.csv") htable$premiekl = as.factor(htable$premiekl) htable$moptva = as.factor(htable$moptva) htable$zon = as.factor(htable$zon) h2o.gbm(x = 1:3,y = "medskad",training_frame = htable,distribution = "gamma",weights_column = "antskad", ntrees = 20,max_depth = 1,min_rows = 1,learn_rate = 1,min_split_improvement=1e-5) {code} DistributedException from /172.16.2.68:54321, caused by java.lang.ArrayIndexOutOfBoundsException: -1 {code} 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: DistributedException from /172.16.2.68:54321, caused by java.lang.ArrayIndexOutOfBoundsException: -1 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.MRTask.getResult(MRTask.java:477) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.MRTask.getResult(MRTask.java:485) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.MRTask.doAll(MRTask.java:389) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.MRTask.doAll(MRTask.java:384) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.tree.gbm.GBM$GBMDriver.buildNextKTrees(GBM.java:433) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.tree.SharedTree$Driver.scoreAndBuildTrees(SharedTree.java:355) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.tree.SharedTree$Driver.computeImpl(SharedTree.java:289) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.ModelBuilder$Driver.compute2(ModelBuilder.java:168) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.H2O$H2OCountedCompleter.compute(H2O.java:1194) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at jsr166y.CountedCompleter.exec(CountedCompleter.java:468) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.tree.gbm.GBM$GBMDriver$ComputeMinMax.map(GBM.java:336) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.MRTask.compute2(MRTask.java:630) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.H2O$H2OCountedCompleter.compute1(H2O.java:1197) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.tree.gbm.GBM$GBMDriver$ComputeMinMax$Icer.compute1(GBM$GBMDriver$ComputeMinMax$Icer.java) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.H2O$H2OCountedCompleter.compute(H2O.java:1193) {code}

    JIRA | 10 months ago | Arno Candel
    java.lang.ArrayIndexOutOfBoundsException: -1
  2. 0

    {code} library(h2o) h2o.init(nthreads=-1) htable = h2o.uploadFile("/users/arno/h2o-3/smalldata/gbm_test/moppe.csv") htable$premiekl = as.factor(htable$premiekl) htable$moptva = as.factor(htable$moptva) htable$zon = as.factor(htable$zon) h2o.gbm(x = 1:3,y = "medskad",training_frame = htable,distribution = "gamma",weights_column = "antskad", ntrees = 20,max_depth = 1,min_rows = 1,learn_rate = 1,min_split_improvement=1e-5) {code} DistributedException from /172.16.2.68:54321, caused by java.lang.ArrayIndexOutOfBoundsException: -1 {code} 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: DistributedException from /172.16.2.68:54321, caused by java.lang.ArrayIndexOutOfBoundsException: -1 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.MRTask.getResult(MRTask.java:477) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.MRTask.getResult(MRTask.java:485) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.MRTask.doAll(MRTask.java:389) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.MRTask.doAll(MRTask.java:384) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.tree.gbm.GBM$GBMDriver.buildNextKTrees(GBM.java:433) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.tree.SharedTree$Driver.scoreAndBuildTrees(SharedTree.java:355) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.tree.SharedTree$Driver.computeImpl(SharedTree.java:289) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.ModelBuilder$Driver.compute2(ModelBuilder.java:168) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.H2O$H2OCountedCompleter.compute(H2O.java:1194) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at jsr166y.CountedCompleter.exec(CountedCompleter.java:468) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.tree.gbm.GBM$GBMDriver$ComputeMinMax.map(GBM.java:336) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.MRTask.compute2(MRTask.java:630) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.H2O$H2OCountedCompleter.compute1(H2O.java:1197) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at hex.tree.gbm.GBM$GBMDriver$ComputeMinMax$Icer.compute1(GBM$GBMDriver$ComputeMinMax$Icer.java) 06-07 15:12:09.282 172.16.2.68:54321 90764 FJ-1-13 ERRR: at water.H2O$H2OCountedCompleter.compute(H2O.java:1193) {code}

    JIRA | 10 months ago | Arno Candel
    java.lang.ArrayIndexOutOfBoundsException: -1

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      -1

      at hex.tree.gbm.GBM$GBMDriver$ComputeMinMax.map()
    2. hex.tree.gbm
      GBM$GBMDriver$ComputeMinMax.map
      1. hex.tree.gbm.GBM$GBMDriver$ComputeMinMax.map(GBM.java:336)
      1 frame
    3. water
      H2O$H2OCountedCompleter.compute1
      1. water.MRTask.compute2(MRTask.java:630)
      2. water.H2O$H2OCountedCompleter.compute1(H2O.java:1197)
      2 frames
    4. hex.tree.gbm
      GBM$GBMDriver$ComputeMinMax$Icer.compute1
      1. hex.tree.gbm.GBM$GBMDriver$ComputeMinMax$Icer.compute1(GBM$GBMDriver$ComputeMinMax$Icer.java)
      1 frame
    5. water
      H2O$H2OCountedCompleter.compute
      1. water.H2O$H2OCountedCompleter.compute(H2O.java:1193)
      1 frame