java.lang.IllegalArgumentException: Expected %TRUE or %FALSE. Got: class java.lang.ClassCastException

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

    Something like this: scale(iris[,1:4],center=c(4,3,2,1), scale=c(1,1,1,1)) gives this: /99/Rapids, route: /99/Rapids, parms: {ast=(= !nary_op_10 (scale ([ %file4b3c3d449a_csv_6.hex_7 () (: #0 #3)) (llist #4 #3 #2 #1) (llist #1 #1 #1 #1)))} java.lang.ClassCastException: water.rapids.ASTLongList cannot be cast to water.rapids.ASTId at water.rapids.ASTScale.parseArg(ASTOp.java:931) at water.rapids.ASTScale.parse_impl(ASTOp.java:916) at water.rapids.ASTScale.parse_impl(ASTOp.java:906) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.ASTAssign.parse_impl(AST.java:701) at water.rapids.ASTAssign.parse_impl(AST.java:672) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.Exec.exec(Exec.java:64) at water.api.RapidsHandler.exec(RapidsHandler.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:56) at water.api.RequestServer.handle(RequestServer.java:677) at water.api.RequestServer.serve(RequestServer.java:614) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:438) at java.lang.Thread.run(Thread.java:745) java.lang.IllegalArgumentException: Expected %TRUE or %FALSE. Got: class java.lang.ClassCastException at water.rapids.ASTScale.parseArg(ASTOp.java:934) at water.rapids.ASTScale.parse_impl(ASTOp.java:916) at water.rapids.ASTScale.parse_impl(ASTOp.java:906) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.ASTAssign.parse_impl(AST.java:701) at water.rapids.ASTAssign.parse_impl(AST.java:672) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.Exec.exec(Exec.java:64) at water.api.RapidsHandler.exec(RapidsHandler.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:56) at water.api.RequestServer.handle(RequestServer.java:677) at water.api.RequestServer.serve(RequestServer.java:614) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:438) at java.lang.Thread.run(Thread.java:745)

    JIRA | 2 years ago | Eric Eckstrand
    java.lang.IllegalArgumentException: Expected %TRUE or %FALSE. Got: class java.lang.ClassCastException
  2. 0

    Something like this: scale(iris[,1:4],center=c(4,3,2,1), scale=c(1,1,1,1)) gives this: /99/Rapids, route: /99/Rapids, parms: {ast=(= !nary_op_10 (scale ([ %file4b3c3d449a_csv_6.hex_7 () (: #0 #3)) (llist #4 #3 #2 #1) (llist #1 #1 #1 #1)))} java.lang.ClassCastException: water.rapids.ASTLongList cannot be cast to water.rapids.ASTId at water.rapids.ASTScale.parseArg(ASTOp.java:931) at water.rapids.ASTScale.parse_impl(ASTOp.java:916) at water.rapids.ASTScale.parse_impl(ASTOp.java:906) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.ASTAssign.parse_impl(AST.java:701) at water.rapids.ASTAssign.parse_impl(AST.java:672) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.Exec.exec(Exec.java:64) at water.api.RapidsHandler.exec(RapidsHandler.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:56) at water.api.RequestServer.handle(RequestServer.java:677) at water.api.RequestServer.serve(RequestServer.java:614) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:438) at java.lang.Thread.run(Thread.java:745) java.lang.IllegalArgumentException: Expected %TRUE or %FALSE. Got: class java.lang.ClassCastException at water.rapids.ASTScale.parseArg(ASTOp.java:934) at water.rapids.ASTScale.parse_impl(ASTOp.java:916) at water.rapids.ASTScale.parse_impl(ASTOp.java:906) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.ASTAssign.parse_impl(AST.java:701) at water.rapids.ASTAssign.parse_impl(AST.java:672) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.Exec.exec(Exec.java:64) at water.api.RapidsHandler.exec(RapidsHandler.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:56) at water.api.RequestServer.handle(RequestServer.java:677) at water.api.RequestServer.serve(RequestServer.java:614) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:438) at java.lang.Thread.run(Thread.java:745)

    JIRA | 2 years ago | Eric Eckstrand
    java.lang.IllegalArgumentException: Expected %TRUE or %FALSE. Got: class java.lang.ClassCastException
  3. 0

    python code like this: iris = h2o.import_frame(path=h2o.locate("smalldata/iris/iris_wheader.csv")) iris = iris + 2 foo = h2o.min(iris) #or sum, max, median foo.show() gives: {ast= (, (= !py8515eaa4-e5e4-45c5-894d-3b7412b6e0c6 (min (= !py7eb9e2f9-726e-4e89-bf36-4509ab6975ac (+ 'pydd4356a0-c2a5-4a3c-a9ae-04926a33e09f' #2 ) ) %FALSE ) ) (del 'pydd4356a0-c2a5-4a3c-a9ae-04926a33e09f' #0) )} java.lang.IllegalArgumentException: Expected the na.rm value to be one of $TRUE, $FALSE, $T, $F at water.rapids.ASTReducerOp.parse_impl(ASTOp.java:1539) at water.rapids.ASTReducerOp.parse_impl(ASTOp.java:1512) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.ASTAssign.parse_impl(AST.java:702) at water.rapids.ASTAssign.parse_impl(AST.java:673) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.ASTStatement.parse_impl(AST.java:460) at water.rapids.ASTStatement.parse_impl(AST.java:451) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.Exec.exec(Exec.java:64) at water.api.RapidsHandler.exec(RapidsHandler.java:34) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:57) at water.api.RequestServer.handle(RequestServer.java:662) at water.api.RequestServer.serve(RequestServer.java:598) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:433) at java.lang.Thread.run(Thread.java:745) The ast appears to be valid. Also, the same sequence of operations in R successfully computes. Here's what the ast in R looks like: {ast=(= !rapids_13_sid_b0d5a06cde2721abd5249b96e1b147a3 (min (+ %iris_wheader.hex_11_sid_b0d5a06cde2721abd5249b96e1b147a3 #2) %FALSE))}

    JIRA | 2 years ago | Eric Eckstrand
    java.lang.IllegalArgumentException: Expected the na.rm value to be one of $TRUE, $FALSE, $T, $F
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    data = h2o.import_frame(path=h2o.locate("smalldata/airlines/allyears2k_headers.csv")) aggregates = {"Month": ["nrow", 0, "all"], "Cancelled": ["sum", 1, "all"]} bpd = h2o.group_by(data, cols=["Month"], aggregates=aggregates) bpd.show() java.lang.IllegalArgumentException: *Unimplemented* failed lookup on token: ``. Contact support@h2o.ai for more information. at water.rapids.Exec.lookup(Exec.java:117) at water.rapids.Exec.parse(Exec.java:100) at water.rapids.ASTGroupBy.parse_impl(ASTGroupBy.java:74) at water.rapids.ASTGroupBy.parse_impl(ASTGroupBy.java:49) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.ASTAssign.parse_impl(AST.java:701) at water.rapids.ASTAssign.parse_impl(AST.java:672) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.Exec.exec(Exec.java:64) at water.api.RapidsHandler.exec(RapidsHandler.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:56) at water.api.RequestServer.handle(RequestServer.java:675) at water.api.RequestServer.serve(RequestServer.java:613) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:438) at java.lang.Thread.run(Thread.java:745)

    JIRA | 2 years ago | Anqi Fu
    java.lang.IllegalArgumentException: *Unimplemented* failed lookup on token: ``. Contact support@h2o.ai for more information.
  6. 0

    side note: why is there not more stuff in the python logs? I'm assuming the tests print more stuff..seems like full python stdout/stderr isn't in this file (*py.out.txt) 8768-0b73eca8bfd2 (cbind %FALSE 'py753fe16c-2840-4612-b0ce-81c6775715a0' 'pya0c5290e-25eb-429c-86e2-b377bb3be52c' 'pyec362ee9-670e-40c5-bbbb-d6ea88e41660' 'py3aa50861-f416-44f9-a36e-2ad71571f9c7' 'py97352f49-6e76-4abc-8928-2be968c397d1' 'py3ae9cc4e-7fd8-4706-a1a1-2f7f93e17181' 'pya6b25d28-3bc2-48bf-bab7-3cc9dc8f8d12' 'py7d173f43-acb0-460b-9c1a-2afb163222fc' 'py1a0f8a7b-876e-4756-ab2d-1fdceb946fca' 'pyeb55401b-4199-4507-90e8-cce020fc8bd9')) (colnames= %py6d42d09e-533c-49ac-8768-0b73eca8bfd2 (: #0 #9) (slist "C1" "C2" "C3" "C4" "C5" "C6" "C7" "C8" "C9" "C10")} 06-14 12:32:24.544 172.16.2.172:56789 15739 # Session INFO: Method: POST , URI: /99/Rapids, route: /99/Rapids, parms: {ast=(= !py45f221b9-508f-4a3f-8c22-da4fd4b04b20 (var %py6d42d09e-533c-49ac-8768-0b73eca8bfd2 () %FALSE "everything"))} 06-14 12:32:24.553 172.16.2.172:56789 15739 # Session INFO: Method: POST , URI: /99/Rapids, route: /99/Rapids, parms: {ast=(removeframe 'py6d42d09e-533c-49ac-8768-0b73eca8bfd2')} 06-14 12:32:24.555 172.16.2.172:56789 15739 # Session INFO: Method: GET , URI: /3/Frames/py45f221b9-508f-4a3f-8c22-da4fd4b04b20, route: /3/Frames/(?<frameid>.*), parms: {frame_id=py45f221b9-508f-4a3f-8c22-da4fd4b04b20} 06-14 12:32:24.560 172.16.2.172:56789 15739 # Session INFO: Method: POST , URI: /99/Rapids, route: /99/Rapids, parms: {ast=(removeframe 'py45f221b9-508f-4a3f-8c22-da4fd4b04b20')} 06-14 12:32:24.564 172.16.2.172:56789 15739 # Session INFO: Method: POST , URI: /99/Rapids, route: /99/Rapids, parms: {ast=([ '$04ff16010000ffffffffa611ee1e011f4e8b66483be107a6$['' #0 "null")} 06-14 12:32:24.564 172.16.2.172:56789 15739 # Session ERRR: java.lang.ArrayIndexOutOfBoundsException java.lang.ArrayIndexOutOfBoundsException 06-14 12:32:24.564 172.16.2.172:56789 15739 # Session WARN: Caught exception: java.lang.ArrayIndexOutOfBoundsException; Stacktrace: [water.api.RapidsHandler.exec(RapidsHandler.java:132), sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:606), water.api.Handler.handle(Handler.java:56), water.api.RequestServer.handle(RequestServer.java:677), water.api.RequestServer.serve(RequestServer.java:614), water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:438), java.lang.Thread.run(Thread.java:745)] 06-14 12:32:24.678 172.16.2.172:56789 15739 # Session INFO: Method: POST , URI: /99/Rapids, route: /99/Rapids, parms: {ast=(, (gput py2121b522-eda2-489f-bde0-0eddfefa514e (cbind %FALSE '$04ff14010000ffffffffa611ee1e011f4e8b66483be107a6$['' '$04ff15010000ffffffffa611ee1e011f4e8b66483be107a6$['' '$04ff16010000ffffffffa611ee1e011f4e8b66483be107a6$['' '$04ff17010000ffffffffa611ee1e011f4e8b66483be107a6$['' '$04ff18010000ffffffffa611ee1e011f4e8b66483be107a6$['' '$04ff19010000ffffffffa611ee1e011f4e8b66483be107a6$['' '$04ff1a010000ffffffffa611ee1e011f4e8b66483be107a6$['' '$04ff1b010000ffffffffa611ee1e011f4e8b66483be107a6$['' '$04ff1c010000ffffffffa611ee1e011f4e8b66483be107a6$['' '$04ff1d010000ffffffffa611ee1e011f4e8b66483be107a6$['')) (colnames= %py2121b522-eda2-489f-bde0-0eddfefa514e (: #0 #9) (slist "C1" "C2" "C3" "C4" "C5" "C6" "C7" "C8" "C9" "C10")} java.lang.IllegalArgumentException: *Unimplemented* failed lookup on token: `$04ff15010000ffffffffa611ee1e011f4e8b66483be107a6$[`. Contact support@h2o.ai for more information. at water.rapids.Exec.lookup(Exec.java:117) at water.rapids.Exec.parse(Exec.java:100) at water.rapids.ASTCbind.parse_impl(ASTOp.java:2274) at water.rapids.ASTCbind.parse_impl(ASTOp.java:2261) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.ASTGPut.parse_impl(ASTOp.java:2538) at water.rapids.ASTGPut.parse_impl(ASTOp.java:2528) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.ASTStatement.parse_impl(AST.java:458) at water.rapids.ASTStatement.parse_impl(AST.java:449) at water.rapids.Exec.parse(Exec.java:101) at water.rapids.Exec.exec(Exec.java:64) at water.api.RapidsHandler.exec(RapidsHandler.java:37) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:56) at water.api.RequestServer.handle(RequestServer.java:677) at water.api.RequestServer.serve(RequestServer.java:614) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:438) at java.lang.Thread.run(Thread.java:745) 06-14 12:32:24.679 172.16.2.172:56789 15739 # Session WARN: Caught exception: *Unimplemented* failed lookup on token: `$04ff15010000ffffffffa611ee1e011f4e8b66483be107a6$[`. Contact support@h2o.ai for more information.; Stacktrace: [water.api.RapidsHandler.exec(RapidsHandler.java:132), sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:606), water.api.Handler.handle(Handler.java:56), water.api.RequestServer.handle(RequestServer.java:677), water.api.RequestServer.serve(RequestServer.java:614), water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:438), java.lang.Thread.run(Thread.java:745)] 06-14 12:32:24.683 172.16.2.172:56789 15739 # Session INFO: Method: POST , URI: /99/Rapids, route: /99/Rapids, parms: {ast=(, (gput h2o java out http://mr-0xb1:8080/job/h2o_master_DEV_pyunit_small/14549/artifact/h2o-py/tests/results/java_0_0.out.txt python out http://mr-0xb1:8080/job/h2o_master_DEV_pyunit_small/14549/artifact/h2o-py/tests/results/testdir_munging_unop_pyunit_frame_reducers2.py.out.txt H2O PYTHON PACKAGE VERSION: 3.1.0.99999 -------------------------- ------------------------------------ H2O cluster uptime: 2 minutes 3 seconds 929 milliseconds H2O cluster version: 3.1.0.99999 H2O cluster name: H2O_runit_jenkins_4765563 H2O cluster total nodes: 1 H2O cluster total memory: 2.67 GB H2O cluster total cores: 4 H2O cluster allowed cores: 4 H2O cluster healthy: True H2O Connection ip: 127.0.0.1 H2O Connection port: 56789 -------------------------- ------------------------------------ -------------------------- ------------------------------------ H2O cluster uptime: 2 minutes 3 seconds 990 milliseconds H2O cluster version: 3.1.0.99999 H2O cluster name: H2O_runit_jenkins_4765563 H2O cluster total nodes: 1 H2O cluster total memory: 2.67 GB H2O cluster total cores: 4 H2O cluster allowed cores: 4 H2O cluster healthy: True H2O Connection ip: 127.0.0.1 H2O Connection port: 56789 -------------------------- ------------------------------------ Parse Progress: [ ] 00% Parse Progress: [##################################################] 100% Uploaded py652c76e4-5bb3-452e-a841-8ea9ab952a1b into cluster with 10 rows and 10 cols Traceback (most recent call last): File "pyunit_frame_reducers2.py", line 49, in <module> h2o.run_test(sys.argv, expr_reducers) File "../../../h2o/h2o.py", line 382, in run_test test_to_run(ip, port) File "pyunit_frame_reducers2.py", line 45, in expr_reducers h2o.np_comparison_check(h2o.var(h2o_data), np.cov(np_data, rowvar=0, ddof=1), 10), \ File "../../../h2o/h2o.py", line 365, in np_comparison_check h2o_val = h2o_data[r,c] if isinstance(h2o_data,H2OFrame) else h2o_data[r] File "../../../h2o/frame.py", line 523, in __getitem__ if isinstance(res,H2OVec): return res[i[0]] File "../../../h2o/frame.py", line 1356, in __getitem__ if isinstance(i, int): return Expr("[", self, Expr(i), length=1).eager() # Single row select, makes a scalar File "../../../h2o/expr.py", line 366, in eager j = h2o.rapids(cmd) File "../../../h2o/h2o.py", line 489, in rapids result = H2OConnection.post_json("Rapids", ast=urllib.quote(expr), _rest_version=99) File "../../../h2o/connection.py", line 362, in post_json return __H2OCONN__._rest_json(url_suffix, "POST", file_upload_info, **kwargs) File "../../../h2o/connection.py", line 365, in _rest_json raw_txt = self._do_raw_rest(url_suffix, method, file_upload_info, **kwargs) File "../../../h2o/connection.py", line 423, in _do_raw_rest .format(http_result.status_code,http_result.reason,method,url,detailed_error_msgs)) EnvironmentError: h2o-py got an unexpected HTTP status code: 412 Precondition Failed (method = POST; url = http://127.0.0.1:56789/99/Rapids). detailed error messages: java.lang.ArrayIndexOutOfBoundsException Exception EnvironmentError: EnvironmentError('h2o-py got an unexpected HTTP status code:\n 412 Precondition Failed (method = POST; url = http://127.0.0.1:56789/99/Rapids). \ndetailed error messages: *Unimplemented* failed lookup on token: `$04ff15010000ffffffffa611ee1e011f4e8b66483be107a6$[`. Contact support@h2o.ai for more information.',) in <bound method H2OFrame.__del__ of <h2o.frame.H2OFrame instance at 0x3f2d440>> ignored

    JIRA | 2 years ago | Kevin Normoyle
    java.lang.IllegalArgumentException: *Unimplemented* failed lookup on token: `$04ff15010000ffffffffa611ee1e011f4e8b66483be107a6$[`. Contact support@h2o.ai for more information.

    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

      Expected %TRUE or %FALSE. Got: class java.lang.ClassCastException

      at water.rapids.ASTScale.parseArg()
    2. water.rapids
      Exec.exec
      1. water.rapids.ASTScale.parseArg(ASTOp.java:934)
      2. water.rapids.ASTScale.parse_impl(ASTOp.java:916)
      3. water.rapids.ASTScale.parse_impl(ASTOp.java:906)
      4. water.rapids.Exec.parse(Exec.java:101)
      5. water.rapids.ASTAssign.parse_impl(AST.java:701)
      6. water.rapids.ASTAssign.parse_impl(AST.java:672)
      7. water.rapids.Exec.parse(Exec.java:101)
      8. water.rapids.Exec.exec(Exec.java:64)
      8 frames
    3. water.api
      RapidsHandler.exec
      1. water.api.RapidsHandler.exec(RapidsHandler.java:37)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. water.api
      RequestServer.serve
      1. water.api.Handler.handle(Handler.java:56)
      2. water.api.RequestServer.handle(RequestServer.java:677)
      3. water.api.RequestServer.serve(RequestServer.java:614)
      3 frames
    6. water
      NanoHTTPD$HTTPSession.run
      1. water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:438)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame