CachedRowSetImpl - failed paging on populate()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 6
    • Affects Version/s: 2.0
    • Component/s: 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();

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: