java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1). <snip>

Oracle Community | 666705 | 1 decade 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

    JDOQL matches clause fails against MySQL

    Oracle Community | 1 decade ago | 666705
    java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1). <snip>
  2. 0

    Hibernate Community • View topic - Polymorphic mapping: Parameter index out of range

    hibernate.org | 2 years ago
    java.sql.SQLException: Parameter index out of range (12 > 11).
  3. 0

    Getting error with update.

    GitHub | 2 years ago | wpoosanguansit
    java.sql.SQLException: Parameter index out of range (3 > number of parameters, which is 2).
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. java.sql.SQLException

      Parameter index out of range (2 > number of parameters, which is 1). <snip>

      at com.mysql.jdbc.PreparedStatement.setLong()
    2. MySQL jdbc
      PreparedStatement.setLong
      1. com.mysql.jdbc.PreparedStatement.setLong(PreparedStatement.java:2616)
      1 frame
    3. OpenJPA Aggregate Jar
      DelegatingPreparedStatement.setLong
      1. org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.setLong(DelegatingPreparedStatement.java:290)
      1 frame