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

Stack Overflow | Derecho | 8 months 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

    Cassandra prepared statement not recognizing placeholders

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

    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