-
Bug
-
Resolution: Fixed
-
P4
-
2.0
-
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();
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();