java.sql.SQLException: Invalid parameter index 5. 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.setDate(JtdsPreparedStatement. java:594)

jtds | carloscs | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Error in prepared statement

    jtds | 1 decade ago | carloscs
    java.sql.SQLException: Invalid parameter index 5. 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.setDate(JtdsPreparedStatement. java:594)

    Root Cause Analysis

    1. java.sql.SQLException

      Invalid parameter index 5. 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.setDate(JtdsPreparedStatement. java:594)

      at jdbctest.TestJdbc.main()
    2. jdbctest
      TestJdbc.main
      1. jdbctest.TestJdbc.main(TestJdbc.java:37)
      1 frame