java.lang.IllegalArgumentException: Prepared statement has only 2 variables, 3 values provided

Stack Overflow | Derecho | 3 months ago
  1. 0

    Cassandra prepared statement not recognizing placeholders

    Stack Overflow | 3 months ago | Derecho
    java.lang.IllegalArgumentException: Prepared statement has only 2 variables, 3 values provided
  2. 0

    SQLite Update Statement error

    Stack Overflow | 10 months ago | kosala
    java.lang.IllegalArgumentException: Too many bind arguments. 3 arguments were provided but the statement needs 2 arguments.
  3. 0

    Error Parsing due to CSV Differences Before/After Saving (Java w/ Apache Commons CSV)

    Stack Overflow | 8 months ago | corneria
    java.lang.IllegalArgumentException: Index for header 'Title' is 7 but CSVRecord only has 6 values!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android AsyncTask fails

    Stack Overflow | 3 years ago | jcaruso
    java.lang.RuntimeException: An error occured while executing doInBackground()
  6. 0

    java.lang.IllegalArgumentException: Note that only a single statement can be processed at a time. Junk at the end of the statement: (= !binary_op_5_sid_b2f1a62fe47a188ed4c60a06816b442d (n ([ %iris_wheader.hex_1_sid_b2f1a62fe47a188ed4c60a06816b442d "null" #2) #1.4 #1.3)) ^----^ at water.rapids.Exec.throwErr(Exec.java:244) at water.rapids.Exec.exec(Exec.java:72) at water.api.RapidsHandler.exec(RapidsHandler.java:37) at sun.reflect.GeneratedMethodAccessor9.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:664) at water.api.RequestServer.serve(RequestServer.java:602) at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:434) at java.lang.Thread.run(Thread.java:745) http://mr-0xb1:8080/view/All/job/h2o_runit_nopass_serial/99/testReport/runit_NOPASS_pub_479_relational_ops/R/runit_NOPASS_pub_479_relational_ops_R/ Apparently happending in the "Comparing results to R" section > test.relvec <- function(conn) { + Log.info('Uploading iris_wheader.csv to H2O...') + irisH2O <- h2o.importFile(conn, normalizePath(locate('smalldata/iris/iris_wheader.csv'))) + + Log.info('Print head of dataset') + Log.info(head(irisH2O)) + + Log.info("Slice a subset of columns") + petallenH2O <- irisH2O[,3] + petalwidH2O <- irisH2O[,4] + + Log.info("Slice again and apply scale over columns") + compH2O1 <- petallenH2O == c(1.4, 1.3) + compH2O2 <- petallenH2O == c(1.3, 1.4) + compH2O3 <- petalwidH2O == c(0.4, 0.2, 0.2) + + irisR <- read.csv(locate("smalldata/iris/iris_wheader.csv"), header = TRUE) + petalR <- irisR[,3:4] + compR1 <- petalR[,1] == c(1.4, 1.3) + compR2 <- petalR[,1] == c(1.3, 1.4) + compR3 <- petalR[,2] == c(0.4, 0.2, 0.2) + + Log.info("Comparing results to R") + compH2O1.df <- as.logical(as.data.frame(compH2O1)) + compH2O2.df <- as.logical(as.data.frame(compH2O2)) + compH2O3.df <- as.logical(as.data.frame(compH2O3)) + + expect_that(compH2O1.df, equals(as.data.frame(compR1))) + expect_that(compH2O2.df, equals(as.data.frame(compR2))) + expect_that(compH2O3.df, equals(as.data.frame(compR3))) + + testEnd() + }

    JIRA | 2 years ago | Neeraja Madabhushi
    java.lang.IllegalArgumentException: Note that only a single statement can be processed at a time. Junk at the end of the statement: (= !binary_op_5_sid_b2f1a62fe47a188ed4c60a06816b442d (n ([ %iris_wheader.hex_1_sid_b2f1a62fe47a188ed4c60a06816b442d "null" #2) #1.4 #1.3)) ^----^

    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

      Prepared statement has only 2 variables, 3 values provided

      at com.datastax.driver.core.BoundStatement.bind()
    2. DataStax Java Driver for Apache Cassandra - Core
      DefaultPreparedStatement.bind
      1. com.datastax.driver.core.BoundStatement.bind(BoundStatement.java:189)
      2. com.datastax.driver.core.DefaultPreparedStatement.bind(DefaultPreparedStatement.java:126)
      2 frames