Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6382534

CachedRowSetImpl - failed paging on populate()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 2.0
    • core-libs
    • x86
    • generic

      When CachedRowSetImpl is populated from ResultSet, setPageSize() returns OK, with subsequent nextPage() failing with

      Caused by: java.sql.SQLException: Populate the data before calling nextPage
      at com.sun.rowset.CachedRowSetImpl.nextPage(CachedRowSetImpl.java:7308)

      similar issues reported @

      http://forum.java.sun.com/thread.jspa?threadID=695106&messageID=4037128
      http://forum.java.sun.com/thread.jspa?threadID=694441&messageID=4034351

      code is based on the javadoc ( is updated javadoc available yet?)

           CachedRowSet crs = new CachedRowSetImpl();
           crs.setPageSize(4);
           crs.populate(rsHandle, 10);
            ...

           crs.nextPage();

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: