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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 666705, 1 year ago
Parameter index out of range (2 > number of parameters, which is 1). <snip>
java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1). <snip>
at com.mysql.jdbc.PreparedStatement.setLong(PreparedStatement.java:2616)
at org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.setLong(DelegatingPreparedStatement.java:290)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.