java.sql.SQLException: Was expecting a result set at net.sourceforge.jtds.jdbc. PreparedStatement_base. executeQuery(PreparedStatement_base.java:214)

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

    "ResultSet expected" problem

    jtds | 1 decade ago | alf239
    java.sql.SQLException: Was expecting a result set at net.sourceforge.jtds.jdbc. PreparedStatement_base. executeQuery(PreparedStatement_base.java:214)

    Root Cause Analysis

    1. java.sql.SQLException

      Was expecting a result set at net.sourceforge.jtds.jdbc. PreparedStatement_base. executeQuery(PreparedStatement_base.java:214)

      at TestJtds.main()
    2. Unknown
      TestJtds.main
      1. TestJtds.main(TestJtds.java:17)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames