java.lang.IllegalArgumentException: Enum conversion only works on integer columns

JIRA | Neeraja Madabhushi | 2 years ago
  1. 0

    Steps to reproduce : 1) Import file iris 2) Parse file 3) Build GBM Model with below : buildModel 'gbm', {"destination_key":"gbm_1","training_frame":"iris.hex","response_column":"C1","do_classification":true} ================== On flow UI no error.......... ================== Console Logs ================== 01-08 14:30:27.638 172.16.2.16:54323 29621 # Session WARN: water.api.FramesHandler.getFromDKV(FramesHandler.java:142)water.api.FramesHandler.fetch(FramesHandler.java:198)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:66)water.api.RequestServer.handle(RequestServer.java:546)water.api.RequestServer.serve(RequestServer.java:510)water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:434)java.lang.Thread.run(Thread.java:745) 01-08 14:30:41.509 172.16.2.16:54323 29621 # Session INFO: Path: /3/Frames/iris.hex, route: /3/Frames/(?<key>.*), parms: {key=iris.hex} 01-08 14:31:03.667 172.16.2.16:54323 29621 # Session INFO: Path: /2/ModelBuilders/gbm, route: ^(/\d+)?/ModelBuilders/gbm, parms: {do_classification=true, destination_key=gbm_1, training_frame=iris.hex, response_column=C1} 01-08 14:31:03.699 172.16.2.16:54323 29621 FJ-0-11 INFO: Building H2O GBM model with these parameters: 01-08 14:31:03.703 172.16.2.16:54323 29621 # Session INFO: Path: /2/Jobs/$0301ac10021034d4ffffffff$_ba40eec2172479df25128050225d425a, route: ^(/\d+)?/Jobs/(?<key>.*), parms: {key=$0301ac10021034d4ffffffff$_ba40eec2172479df25128050225d425a} 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: { 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_destination_key": { 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "name": "gbm_1", 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "type": "Iced" 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: }, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_train": { 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "name": "iris.hex", 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "type": "Iced" 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: }, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_dropNA20Cols": false, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_score_each_iteration": false, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_max_confusion_matrix_size": 20, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_response_column": "C1", 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_convert_to_enum": true, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_balance_classes": false, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_max_after_balance_size": "Infinity", 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_max_hit_ratio_k": 10, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_ntrees": 50, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_max_depth": 5, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_min_rows": 10, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_nbins": 20, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_variable_importance": false, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_seed": 0, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_checkpoint": false, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_loss": "AUTO", 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_learn_rate": 0.1, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_group_split": true 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: } barrier onExCompletion for hex.tree.gbm.GBM$GBMDriver@1354377d java.lang.IllegalArgumentException: Enum conversion only works on integer columns at water.fvec.Vec.toEnum(Vec.java:888) at hex.SupervisedModelBuilder.init(SupervisedModelBuilder.java:59) at hex.tree.SharedTree.init(SharedTree.java:44) at hex.tree.gbm.GBM.init(GBM.java:51) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:104) at water.H2O$H2OCountedCompleter.compute(H2O.java:580) 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) 01-08 14:31:04.719 172.16.2.16:54323 29621 # Session INFO: Path: /2/Jobs/$0301ac10021034d4ffffffff$_ba40eec2172479df25128050225d425a, route: ^(/\d+)?/Jobs/(?<key>.*), parms: {key=$0301ac10021034d4ffffffff$_ba40eec2172479df25128050225d425a}

    JIRA | 2 years ago | Neeraja Madabhushi
    java.lang.IllegalArgumentException: Enum conversion only works on integer columns
  2. 0

    Steps to reproduce : 1) Import file iris 2) Parse file 3) Build GBM Model with below : buildModel 'gbm', {"destination_key":"gbm_1","training_frame":"iris.hex","response_column":"C1","do_classification":true} ================== On flow UI no error.......... ================== Console Logs ================== 01-08 14:30:27.638 172.16.2.16:54323 29621 # Session WARN: water.api.FramesHandler.getFromDKV(FramesHandler.java:142)water.api.FramesHandler.fetch(FramesHandler.java:198)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:66)water.api.RequestServer.handle(RequestServer.java:546)water.api.RequestServer.serve(RequestServer.java:510)water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:434)java.lang.Thread.run(Thread.java:745) 01-08 14:30:41.509 172.16.2.16:54323 29621 # Session INFO: Path: /3/Frames/iris.hex, route: /3/Frames/(?<key>.*), parms: {key=iris.hex} 01-08 14:31:03.667 172.16.2.16:54323 29621 # Session INFO: Path: /2/ModelBuilders/gbm, route: ^(/\d+)?/ModelBuilders/gbm, parms: {do_classification=true, destination_key=gbm_1, training_frame=iris.hex, response_column=C1} 01-08 14:31:03.699 172.16.2.16:54323 29621 FJ-0-11 INFO: Building H2O GBM model with these parameters: 01-08 14:31:03.703 172.16.2.16:54323 29621 # Session INFO: Path: /2/Jobs/$0301ac10021034d4ffffffff$_ba40eec2172479df25128050225d425a, route: ^(/\d+)?/Jobs/(?<key>.*), parms: {key=$0301ac10021034d4ffffffff$_ba40eec2172479df25128050225d425a} 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: { 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_destination_key": { 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "name": "gbm_1", 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "type": "Iced" 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: }, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_train": { 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "name": "iris.hex", 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "type": "Iced" 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: }, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_dropNA20Cols": false, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_score_each_iteration": false, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_max_confusion_matrix_size": 20, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_response_column": "C1", 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_convert_to_enum": true, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_balance_classes": false, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_max_after_balance_size": "Infinity", 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_max_hit_ratio_k": 10, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_ntrees": 50, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_max_depth": 5, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_min_rows": 10, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_nbins": 20, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_variable_importance": false, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_seed": 0, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_checkpoint": false, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_loss": "AUTO", 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_learn_rate": 0.1, 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: "_group_split": true 01-08 14:31:03.733 172.16.2.16:54323 29621 FJ-0-11 INFO: } barrier onExCompletion for hex.tree.gbm.GBM$GBMDriver@1354377d java.lang.IllegalArgumentException: Enum conversion only works on integer columns at water.fvec.Vec.toEnum(Vec.java:888) at hex.SupervisedModelBuilder.init(SupervisedModelBuilder.java:59) at hex.tree.SharedTree.init(SharedTree.java:44) at hex.tree.gbm.GBM.init(GBM.java:51) at hex.tree.SharedTree$Driver.compute2(SharedTree.java:104) at water.H2O$H2OCountedCompleter.compute(H2O.java:580) 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) 01-08 14:31:04.719 172.16.2.16:54323 29621 # Session INFO: Path: /2/Jobs/$0301ac10021034d4ffffffff$_ba40eec2172479df25128050225d425a, route: ^(/\d+)?/Jobs/(?<key>.*), parms: {key=$0301ac10021034d4ffffffff$_ba40eec2172479df25128050225d425a}

    JIRA | 2 years ago | Neeraja Madabhushi
    java.lang.IllegalArgumentException: Enum conversion only works on integer columns
  3. 0

    GitHub comment 7#233627166

    GitHub | 5 months ago | niepoprawnynick
    java.lang.IllegalArgumentException: This library works only on Android.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Always crashes

    GitHub | 12 months ago | tim424
    java.lang.IllegalArgumentException: This library works only on Android.
  6. 0

    IBM WebSphere Solr search crashing site

    Stack Overflow | 8 months ago | par5188
    java.lang.IllegalArgumentException: Missing value only works for numeric or STRING types

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

      Enum conversion only works on integer columns

      at water.fvec.Vec.toEnum()
    2. water.fvec
      Vec.toEnum
      1. water.fvec.Vec.toEnum(Vec.java:888)
      1 frame
    3. hex
      SupervisedModelBuilder.init
      1. hex.SupervisedModelBuilder.init(SupervisedModelBuilder.java:59)
      1 frame
    4. hex.tree
      SharedTree.init
      1. hex.tree.SharedTree.init(SharedTree.java:44)
      1 frame
    5. hex.tree.gbm
      GBM.init
      1. hex.tree.gbm.GBM.init(GBM.java:51)
      1 frame
    6. hex.tree
      SharedTree$Driver.compute2
      1. hex.tree.SharedTree$Driver.compute2(SharedTree.java:104)
      1 frame
    7. water
      H2O$H2OCountedCompleter.compute
      1. water.H2O$H2OCountedCompleter.compute(H2O.java:580)
      1 frame
    8. 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