java.lang.ArrayIndexOutOfBoundsException: 2

JIRA | Eric Eckstrand | 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

    -Training dataset: cup98LRN_z.csv -Test dataset: cup98VAL_z.csv Response: TARGET_B do_classification: FALSE family: binomial When predicting on test dataset the following stacktrace is received: *** 01-31 19:30:41.531 172.16.2.186:54321 26081 # Session INFO: Method: POST , Path: /3/Predictions/models/GLMModel__8b35331030d14717502467db9b164a1f/frames/cup98VAL_z.hex, route: /3/Predictions/models/(?<model>.*)/frames/(?<frame>.*), parms: {model=GLMModel__8b35331030d14717502467db9b164a1f, frame=cup98VAL_z.hex} onExCompletion for hex.Model$BigScore@74ce8acd java.lang.ArrayIndexOutOfBoundsException: 2 at hex.glm.GLMModel.score0(GLMModel.java:95) at hex.Model$BigScore.map(Model.java:476) at water.MRTask.compute2(MRTask.java:428) at water.H2O$H2OCountedCompleter.compute(H2O.java:582) 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) onExCompletion for hex.Model$BigScore@74ce8acd 01-31 19:30:41.542 172.16.2.186:54321 26081 # Session WARN: Caught exception: water.DException$DistributedException: from /172.16.2.186:54321; by class hex.Model$BigScore; class java.lang.ArrayIndexOutOfBoundsException: 2; Stacktrace: [water.MRTask.getResult(MRTask.java:263), water.MRTask.doAll(MRTask.java:218), water.MRTask.doAll(MRTask.java:215), hex.Model.scoreImpl(Model.java:458), hex.Model.score(Model.java:397), water.api.ModelMetricsHandler.predict(ModelMetricsHandler.java:162), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:606), water.api.Handler.handle(Handler.java:57), water.api.RequestServer.handle(RequestServer.java:576), water.api.RequestServer.serve(RequestServer.java:536), water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:433), java.lang.Thread.run(Thread.java:745)] java.lang.ArrayIndexOutOfBoundsException: 2 at hex.glm.GLMModel.score0(GLMModel.java:95) at hex.Model$BigScore.map(Model.java:476) at water.MRTask.compute2(MRTask.java:428) at water.MRTask.compute2(MRTask.java:372) at water.MRTask.compute2(MRTask.java:372) at water.MRTask.compute2(MRTask.java:372) at water.MRTask.compute2(MRTask.java:372) at water.MRTask.compute2(MRTask.java:372) at water.MRTask.compute2(MRTask.java:372) at water.H2O$H2OCountedCompleter.compute(H2O.java:582) 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)

    JIRA | 2 years ago | Eric Eckstrand
    java.lang.ArrayIndexOutOfBoundsException: 2
  2. 0

    -Training dataset: cup98LRN_z.csv -Test dataset: cup98VAL_z.csv Response: TARGET_B do_classification: FALSE family: binomial When predicting on test dataset the following stacktrace is received: *** 01-31 19:30:41.531 172.16.2.186:54321 26081 # Session INFO: Method: POST , Path: /3/Predictions/models/GLMModel__8b35331030d14717502467db9b164a1f/frames/cup98VAL_z.hex, route: /3/Predictions/models/(?<model>.*)/frames/(?<frame>.*), parms: {model=GLMModel__8b35331030d14717502467db9b164a1f, frame=cup98VAL_z.hex} onExCompletion for hex.Model$BigScore@74ce8acd java.lang.ArrayIndexOutOfBoundsException: 2 at hex.glm.GLMModel.score0(GLMModel.java:95) at hex.Model$BigScore.map(Model.java:476) at water.MRTask.compute2(MRTask.java:428) at water.H2O$H2OCountedCompleter.compute(H2O.java:582) 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) onExCompletion for hex.Model$BigScore@74ce8acd 01-31 19:30:41.542 172.16.2.186:54321 26081 # Session WARN: Caught exception: water.DException$DistributedException: from /172.16.2.186:54321; by class hex.Model$BigScore; class java.lang.ArrayIndexOutOfBoundsException: 2; Stacktrace: [water.MRTask.getResult(MRTask.java:263), water.MRTask.doAll(MRTask.java:218), water.MRTask.doAll(MRTask.java:215), hex.Model.scoreImpl(Model.java:458), hex.Model.score(Model.java:397), water.api.ModelMetricsHandler.predict(ModelMetricsHandler.java:162), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:606), water.api.Handler.handle(Handler.java:57), water.api.RequestServer.handle(RequestServer.java:576), water.api.RequestServer.serve(RequestServer.java:536), water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:433), java.lang.Thread.run(Thread.java:745)] java.lang.ArrayIndexOutOfBoundsException: 2 at hex.glm.GLMModel.score0(GLMModel.java:95) at hex.Model$BigScore.map(Model.java:476) at water.MRTask.compute2(MRTask.java:428) at water.MRTask.compute2(MRTask.java:372) at water.MRTask.compute2(MRTask.java:372) at water.MRTask.compute2(MRTask.java:372) at water.MRTask.compute2(MRTask.java:372) at water.MRTask.compute2(MRTask.java:372) at water.MRTask.compute2(MRTask.java:372) at water.H2O$H2OCountedCompleter.compute(H2O.java:582) 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)

    JIRA | 2 years ago | Eric Eckstrand
    java.lang.ArrayIndexOutOfBoundsException: 2

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      2

      at hex.glm.GLMModel.score0()
    2. hex.glm
      GLMModel.score0
      1. hex.glm.GLMModel.score0(GLMModel.java:95)
      1 frame
    3. hex
      Model$BigScore.map
      1. hex.Model$BigScore.map(Model.java:476)
      1 frame
    4. water
      H2O$H2OCountedCompleter.compute
      1. water.MRTask.compute2(MRTask.java:428)
      2. water.MRTask.compute2(MRTask.java:372)
      3. water.MRTask.compute2(MRTask.java:372)
      4. water.MRTask.compute2(MRTask.java:372)
      5. water.MRTask.compute2(MRTask.java:372)
      6. water.MRTask.compute2(MRTask.java:372)
      7. water.MRTask.compute2(MRTask.java:372)
      8. water.H2O$H2OCountedCompleter.compute(H2O.java:582)
      8 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