java.sql.SQLException

Invalid parameter index 2.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4243

  • via Oracle Community by 807607, 1 year ago
    Invalid parameter index 2.
  • via Hibernate JIRA by Jason Stiefel, 1 year ago
    Invalid parameter index 2.
  • via Hibernate JIRA by Jason Stiefel, 1 year ago
    Invalid parameter index 2.
  • Stack trace

    • java.sql.SQLException: Invalid parameter index 2. at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.getParameter(JtdsPreparedStatement.java:239) at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.setParameter(JtdsPreparedStatement.java:311) at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.setBytes(JtdsPreparedStatement.java:468) at net.sf.hibernate.type.BinaryType.set(BinaryType.java:28) at net.sf.hibernate.type.SerializableType.set(SerializableType.java:28) at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:48) at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:35)

    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

    You’re the first here who have seen this exception.