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
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

    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