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


Solutions on the web

Solution icon of oraclecommunity
via Oracle Community by 666705, 1 year ago
Parameter index out of range (2 > number of parameters, which is 1). <snip>

Stack trace

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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago