java.lang.ArrayIndexOutOfBoundsException: 1

JIRA | Neeraja Madabhushi | 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

    Logs of jobs : http://172.16.2.161:8080/job/hdp2.1_hadoop2.4_nightly/278/artifact/h2o-test-integ/tests/hdfs-bigdata/results/failed/runit_GLM_IRLSM_airlines_billion_xlarge.R.out.txt http://172.16.2.161:8080/job/hdp2.1_hadoop2.4_nightly/278/artifact/h2o-test-integ/tests/hdfs-bigdata/results/failed/runit_GLM_LBFGS_airlines_billion_xlarge.R.out.txt myY = "C19" > myX = setdiff(names(data.hex), myY) > ## Build GLM Model and compare AUC with h2o1 > > glm_irlsm_time <- system.time(data_irlsm.glm <- h2o.glm(x = myX, y = myY, training_frame = data.train, validation_frame=data.valid, family = "gaussian", solver = "IRLSM")) | | | 0% | |= | 2% Got exception 'class java.lang.ArrayIndexOutOfBoundsException', with msg '1' java.lang.ArrayIndexOutOfBoundsException: 1 at hex.glm.GLMModel.generateSummary(GLMModel.java:556) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1097) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1076) at water.H2O$H2OCallback.onCompletion(H2O.java:756) at jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:386) at water.MRTask.compute2(MRTask.java:667) at water.H2O$H2OCountedCompleter.compute(H2O.java:698) 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) Error: '1' In addition: Warning message: In .h2o.startModelJob(conn, algo, params) : Dropping constant columns: C23. =========== > ## Response = Distance > > myY = "C19" > myX = setdiff(names(data.hex), myY) > ## Build GLM Model and compare AUC with h2o1 > glm_lbfgs_time <- system.time(data_lbfgs.glm <- h2o.glm(x = myX, y = myY, training_frame = data.train, validation_frame=data.valid, family = "gaussian", solver = "L_BFGS")) | | | 0% | |=== | 4% Got exception 'class java.lang.ArrayIndexOutOfBoundsException', with msg '1' java.lang.ArrayIndexOutOfBoundsException: 1 at hex.glm.GLMModel.generateSummary(GLMModel.java:556) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1097) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1076) at water.H2O$H2OCallback.onCompletion(H2O.java:756) at jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:386) at water.RPC$2.compute2(RPC.java:593) at water.H2O$H2OCountedCompleter.compute(H2O.java:698) 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) Error: '1' In addition: Warning message: In .h2o.startModelJob(conn, algo, params) : Dropping constant columns: C23. Timing stopped at: 0.348 0.089 133.166 Execution halted

    JIRA | 2 years ago | Neeraja Madabhushi
    java.lang.ArrayIndexOutOfBoundsException: 1
  2. 0

    Logs of jobs : http://172.16.2.161:8080/job/hdp2.1_hadoop2.4_nightly/278/artifact/h2o-test-integ/tests/hdfs-bigdata/results/failed/runit_GLM_IRLSM_airlines_billion_xlarge.R.out.txt http://172.16.2.161:8080/job/hdp2.1_hadoop2.4_nightly/278/artifact/h2o-test-integ/tests/hdfs-bigdata/results/failed/runit_GLM_LBFGS_airlines_billion_xlarge.R.out.txt myY = "C19" > myX = setdiff(names(data.hex), myY) > ## Build GLM Model and compare AUC with h2o1 > > glm_irlsm_time <- system.time(data_irlsm.glm <- h2o.glm(x = myX, y = myY, training_frame = data.train, validation_frame=data.valid, family = "gaussian", solver = "IRLSM")) | | | 0% | |= | 2% Got exception 'class java.lang.ArrayIndexOutOfBoundsException', with msg '1' java.lang.ArrayIndexOutOfBoundsException: 1 at hex.glm.GLMModel.generateSummary(GLMModel.java:556) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1097) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1076) at water.H2O$H2OCallback.onCompletion(H2O.java:756) at jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:386) at water.MRTask.compute2(MRTask.java:667) at water.H2O$H2OCountedCompleter.compute(H2O.java:698) 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) Error: '1' In addition: Warning message: In .h2o.startModelJob(conn, algo, params) : Dropping constant columns: C23. =========== > ## Response = Distance > > myY = "C19" > myX = setdiff(names(data.hex), myY) > ## Build GLM Model and compare AUC with h2o1 > glm_lbfgs_time <- system.time(data_lbfgs.glm <- h2o.glm(x = myX, y = myY, training_frame = data.train, validation_frame=data.valid, family = "gaussian", solver = "L_BFGS")) | | | 0% | |=== | 4% Got exception 'class java.lang.ArrayIndexOutOfBoundsException', with msg '1' java.lang.ArrayIndexOutOfBoundsException: 1 at hex.glm.GLMModel.generateSummary(GLMModel.java:556) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1097) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1076) at water.H2O$H2OCallback.onCompletion(H2O.java:756) at jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:386) at water.RPC$2.compute2(RPC.java:593) at water.H2O$H2OCountedCompleter.compute(H2O.java:698) 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) Error: '1' In addition: Warning message: In .h2o.startModelJob(conn, algo, params) : Dropping constant columns: C23. Timing stopped at: 0.348 0.089 133.166 Execution halted

    JIRA | 2 years ago | Neeraja Madabhushi
    java.lang.ArrayIndexOutOfBoundsException: 1
  3. 0

    this (python): predictors = ['DayOfWeek', 'WC1', 'start station name', 'Temperature (C)', 'Days', 'Month', 'Humidity Fraction', 'Rain (mm)', 'Dew Point (C)'] train = h2o.import_file(h2o.locate("smalldata/glm_test/citibike_small_train.csv")) test = h2o.import_file(h2o.locate("smalldata/glm_test/citibike_small_test.csv")) glm0 = h2o.glm(x=train[predictors], y=train["bikes"], validation_x=test[predictors], validation_y=test["bikes"], family="poisson") produces this: INFO: Building H2O GLM model with these parameters: 08-25 13:32:10.011 172.16.2.27:40000 37735 FJ-0-15 INFO: {"_model_id":null,"_train":{"name":"py1b5de46a-82e4-4d65-a66f-c179359212df","type":"Key"},"_valid":{"name":"pyceb52abc-0bd3-4cc5-8e48-7a98b32c8e90","type":"Key"},"_nfolds":0,"_keep_cross_validation_predictions":false,"_fold_assignment":"AUTO","_distribution":"AUTO","_tweedie_power":1.5,"_ignored_columns":null,"_ignore_const_cols":true,"_weights_column":null,"_offset_column":null,"_fold_column":null,"_score_each_iteration":false,"_response_column":"bikes","_balance_classes":false,"_max_after_balance_size":5.0,"_class_sampling_factors":null,"_max_hit_ratio_k":10,"_max_confusion_matrix_size":20,"_checkpoint":null,"_standardize":true,"_family":"poisson","_link":"family_default","_solver":"IRLSM","_tweedie_variance_power":0.0,"_tweedie_link_power":1.0,"_alpha":null,"_lambda":null,"_prior":-1.0,"_lambda_search":false,"_nlambdas":100,"_non_negative":false,"_exactLambdas":false,"_lambda_min_ratio":-1.0,"_use_all_factor_levels":false,"_max_iterations":-1,"_intercept":true,"_beta_epsilon":1.0E-5,"_objective_epsilon":1.0E-5,"_gradient_epsilon":1.0E-4,"_beta_constraints":null,"_max_active_predictors":-1} 08-25 13:32:10.048 172.16.2.27:40000 37735 FJ-0-15 WARN: _training_frame: Dataset has less than 1/2 of the data after filtering out rows with NAs 08-25 13:32:10.083 172.16.2.27:40000 37735 FJ-0-15 INFO: GLM[dest=GLM_model_python_1440534726643_2, iteration=0, lambda = 0.0]: 0 / 346 cols are active likelihood = 9350.364048301797 08-25 13:32:10.088 172.16.2.27:40000 37735 FJ-0-15 INFO: GLM[dest=GLM_model_python_1440534726643_2, iteration=1, lambda = 0.0]: iteration computed in 2 + 1 ms 08-25 13:32:10.088 172.16.2.27:40000 37735 FJ-0-15 INFO: GLM[dest=GLM_model_python_1440534726643_2, iteration=1, lambda = 0.0]: converged (reached a fixed point with ~ 1e-14 precision), got 1 nzs 08-25 13:32:10.092 172.16.2.27:40000 37735 FJ-0-1 INFO: GLM[dest=GLM_model_python_1440534726643_2, iteration=1, lambda = 0.0]: hold-out set validation = mse = NaN, explained_dev = 0.0 barrier onExCompletion for hex.glm.GLM$GLMDriver@68e85e1 java.lang.ArrayIndexOutOfBoundsException: 1 at hex.glm.GLMModel.generateSummary(GLMModel.java:574) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1411) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1390) at water.H2O$H2OCallback.onCompletion(H2O.java:1061) at jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:386) at water.MRTask.compute2(MRTask.java:683) at water.H2O$H2OCountedCompleter.compute(H2O.java:1005) 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) junit and pyunit to follow.

    JIRA | 2 years ago | Eric Eckstrand
    java.lang.ArrayIndexOutOfBoundsException: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    this (python): predictors = ['DayOfWeek', 'WC1', 'start station name', 'Temperature (C)', 'Days', 'Month', 'Humidity Fraction', 'Rain (mm)', 'Dew Point (C)'] train = h2o.import_file(h2o.locate("smalldata/glm_test/citibike_small_train.csv")) test = h2o.import_file(h2o.locate("smalldata/glm_test/citibike_small_test.csv")) glm0 = h2o.glm(x=train[predictors], y=train["bikes"], validation_x=test[predictors], validation_y=test["bikes"], family="poisson") produces this: INFO: Building H2O GLM model with these parameters: 08-25 13:32:10.011 172.16.2.27:40000 37735 FJ-0-15 INFO: {"_model_id":null,"_train":{"name":"py1b5de46a-82e4-4d65-a66f-c179359212df","type":"Key"},"_valid":{"name":"pyceb52abc-0bd3-4cc5-8e48-7a98b32c8e90","type":"Key"},"_nfolds":0,"_keep_cross_validation_predictions":false,"_fold_assignment":"AUTO","_distribution":"AUTO","_tweedie_power":1.5,"_ignored_columns":null,"_ignore_const_cols":true,"_weights_column":null,"_offset_column":null,"_fold_column":null,"_score_each_iteration":false,"_response_column":"bikes","_balance_classes":false,"_max_after_balance_size":5.0,"_class_sampling_factors":null,"_max_hit_ratio_k":10,"_max_confusion_matrix_size":20,"_checkpoint":null,"_standardize":true,"_family":"poisson","_link":"family_default","_solver":"IRLSM","_tweedie_variance_power":0.0,"_tweedie_link_power":1.0,"_alpha":null,"_lambda":null,"_prior":-1.0,"_lambda_search":false,"_nlambdas":100,"_non_negative":false,"_exactLambdas":false,"_lambda_min_ratio":-1.0,"_use_all_factor_levels":false,"_max_iterations":-1,"_intercept":true,"_beta_epsilon":1.0E-5,"_objective_epsilon":1.0E-5,"_gradient_epsilon":1.0E-4,"_beta_constraints":null,"_max_active_predictors":-1} 08-25 13:32:10.048 172.16.2.27:40000 37735 FJ-0-15 WARN: _training_frame: Dataset has less than 1/2 of the data after filtering out rows with NAs 08-25 13:32:10.083 172.16.2.27:40000 37735 FJ-0-15 INFO: GLM[dest=GLM_model_python_1440534726643_2, iteration=0, lambda = 0.0]: 0 / 346 cols are active likelihood = 9350.364048301797 08-25 13:32:10.088 172.16.2.27:40000 37735 FJ-0-15 INFO: GLM[dest=GLM_model_python_1440534726643_2, iteration=1, lambda = 0.0]: iteration computed in 2 + 1 ms 08-25 13:32:10.088 172.16.2.27:40000 37735 FJ-0-15 INFO: GLM[dest=GLM_model_python_1440534726643_2, iteration=1, lambda = 0.0]: converged (reached a fixed point with ~ 1e-14 precision), got 1 nzs 08-25 13:32:10.092 172.16.2.27:40000 37735 FJ-0-1 INFO: GLM[dest=GLM_model_python_1440534726643_2, iteration=1, lambda = 0.0]: hold-out set validation = mse = NaN, explained_dev = 0.0 barrier onExCompletion for hex.glm.GLM$GLMDriver@68e85e1 java.lang.ArrayIndexOutOfBoundsException: 1 at hex.glm.GLMModel.generateSummary(GLMModel.java:574) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1411) at hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1390) at water.H2O$H2OCallback.onCompletion(H2O.java:1061) at jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:386) at water.MRTask.compute2(MRTask.java:683) at water.H2O$H2OCountedCompleter.compute(H2O.java:1005) 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) junit and pyunit to follow.

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

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      1

      at hex.glm.GLMModel.generateSummary()
    2. hex.glm
      GLM$GLMSingleLambdaTsk$3$1.callback
      1. hex.glm.GLMModel.generateSummary(GLMModel.java:556)
      2. hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1097)
      3. hex.glm.GLM$GLMSingleLambdaTsk$3$1.callback(GLM.java:1076)
      3 frames
    3. water
      H2O$H2OCallback.onCompletion
      1. water.H2O$H2OCallback.onCompletion(H2O.java:756)
      1 frame
    4. jsr166y
      CountedCompleter.tryComplete
      1. jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:386)
      1 frame
    5. water
      H2O$H2OCountedCompleter.compute
      1. water.MRTask.compute2(MRTask.java:667)
      2. water.H2O$H2OCountedCompleter.compute(H2O.java:698)
      2 frames
    6. 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