java.lang.ArrayIndexOutOfBoundsException: 36

Stack Overflow | Walter Perdomo | 4 months ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    I use the h2o.glm algorithm for the Kaggle “Allstate Claims Severity” completion. It works create! Actually I played with the interactions Attribute. It works until the number of columns does not exceed 8. If I use 9 columns I get the error message "Error: java.lang.ArrayIndexOutOfBoundsException: 36 " (see below) I use the raw data set. First i think it is because of to low memory but i try it on a 16 GB Laptop and on an 8 GM Laptop and get the same error message with the same number of columns. Is my code wrong? Or if not is a workaround available? I also use h20.deepnet for this competition and it works also create. It is very fast and gives me much better results as mxnet or the other DL methods in R. Thank you very much Regards Bernd Here the Hard and software: Laptop with 16 GB RAM h2o Version :3.10.09 java version "1.8.0_65" Java(TM) SE Runtime Environment (build 1.8.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode) Here the code with error message rfHex <- h2o.glm(x=features, y="y", training_frame=dataHex[trind,], family = "gaussian", alpha = 1, interactions= c(113 ,1 ,2 ,3 ,4,5,6,7,8), lambda= 1e-05, seed=1) java.lang.ArrayIndexOutOfBoundsException: 36 java.lang.ArrayIndexOutOfBoundsException: 36 at hex.DataInfo.filterExpandedColumns(DataInfo.java:496) at hex.glm.ComputationState.applyStrongRules(ComputationState.java:174) at hex.glm.ComputationState.setLambda(ComputationState.java:74) at hex.glm.GLM$GLMDriver.computeSubmodel(GLM.java:972) at hex.glm.GLM$GLMDriver.computeImpl(GLM.java:1044) at hex.ModelBuilder$Driver.compute2(ModelBuilder.java:169) at hex.glm.GLM$GLMDriver.compute2(GLM.java:515) at water.H2O$H2OCountedCompleter.compute(H2O.java:1203) at jsr166y.CountedCompleter.exec(CountedCompleter.java:468) 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) Show Traceback Rerun with Debug Error: java.lang.ArrayIndexOutOfBoundsException: 36

    JIRA | 3 months ago | Avkash Chauhan
    java.lang.ArrayIndexOutOfBoundsException: 36
  3. 0

    H2O BUILD GIT HASH 80ac18184d459d8d7a8e0c29965fb6e6a0c17185 run glm on attached dataset- parseFiles source_keys: ["train-2.csv"] destination_key: "Key_Frame__train_2.hex" parse_type: "CSV" separator: 44 number_columns: 13 single_quotes: false column_names: ["nm","nmqm","wfl","rooms_ord","bj","bez_nom","wohngut_bi","wohnbest_bi","ww0_bi","zh0_bi","badkach0_bi","badextra_bi","kueche_bi"] column_types: ["Numeric","Numeric","Numeric","Enum","Numeric","Enum","Enum","Enum","Enum","Enum","Enum","Enum","Enum"] delete_on_done: true check_header: 1 chunk_size: 4194304 parseFiles source_keys: ["test-2.csv"] destination_key: "Key_Frame__test_2.hex" parse_type: "CSV" separator: 44 number_columns: 13 single_quotes: false column_names: ["nm","nmqm","wfl","rooms_ord","bj","bez_nom","wohngut_bi","wohnbest_bi","ww0_bi","zh0_bi","badkach0_bi","badextra_bi","kueche_bi"] column_types: ["Numeric","Numeric","Numeric","Enum","Numeric","Enum","Enum","Enum","Enum","Enum","Enum","Enum","Enum"] delete_on_done: true check_header: 1 chunk_size: 4194304 buildModel 'glm', {"destination_key":"glm-d42772df-5612-4b0c-ba4a-096904d213aa","training_frame":"Key_Frame__train_2.hex","validation_frame":"Key_Frame__test_2.hex","ignored_columns":["nm"],"dropNA20Cols":false,"score_each_iteration":false,"response_column":"nmqm","family":"gaussian","solver":"ADMM","alpha":[0.5],"lambda":[],"lambda_search":false,"nlambdas":-1,"standardize":true,"balance_classes":false,"max_confusion_matrix_size":20,"max_hit_ratio_k":10,"max_iterations":-1,"beta_epsilon":0.0001,"link":"family_default","tweedie_variance_power":"NaN","tweedie_link_power":"NaN","use_all_factor_levels":false,"class_sampling_factors":[],"max_after_balance_size":5,"prior":-1,"lambda_min_ratio":-1} Got exception 'class java.lang.ArrayIndexOutOfBoundsException', with msg '-36' java.lang.ArrayIndexOutOfBoundsException: -36 at hex.glm.GLMTask$GLMIterationTask.postGlobal(GLMTask.java:733) at water.MRTask.postLocal(MRTask.java:496) at water.MRTask.onCompletion(MRTask.java:453) at jsr166y.CountedCompleter.tryComplete(CountedCompleter.java:386) at water.MRTask.compute2(MRTask.java:439) at water.H2O$H2OCountedCompleter.compute(H2O.java:682) 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 | Nidhi Mehta
    java.lang.ArrayIndexOutOfBoundsException: -36

    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.ArrayIndexOutOfBoundsException

      36

      at gamesrc.engine.eng_graphic.sprite.sprsheet.obtenerSprite()
    2. gamesrc.engine.eng_graphic
      sprsheet.obtenerSprite
      1. gamesrc.engine.eng_graphic.sprite.sprsheet.obtenerSprite(sprsheet.java:89)
      1 frame
    3. gamesrc.engine.eng_animation
      AnimationLine.updateSpriteX
      1. gamesrc.engine.eng_animation.AnimationLine.updateSpriteX(AnimationLine.java:55)
      1 frame
    4. gamesrc.entityV2.player
      walter.actualizar
      1. gamesrc.entityV2.player.walter.animar(walter.java:367)
      2. gamesrc.entityV2.player.walter.actualizar(walter.java:81)
      2 frames
    5. gamesrc.gsys.ingame
      GestorJuego.actualizar
      1. gamesrc.gsys.ingame.GestorJuego.actualizar(GestorJuego.java:20)
      1 frame
    6. gamesrc.gsys
      GestorEstados.actualizar
      1. gamesrc.gsys.GestorEstados.actualizar(GestorEstados.java:45)
      1 frame
    7. gamesrc.main
      game_thread.run
      1. gamesrc.main.game_thread.update(game_thread.java:71)
      2. gamesrc.main.game_thread.run(game_thread.java:49)
      2 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame