This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes CachedRowSet is an abstract class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "CachedRowSet is an abstract class" Watch "CachedRowSet is an abstract class" New topic

CachedRowSet is an abstract class

Francois Bourgault
Ranch Hand

Joined: Oct 30, 2001
Posts: 67
Hi all,
This afternoon I was using the CacheRowSet() and it was working just fine. Now for the last 1/2 hour I get the following error;
Generated servlet error:
C:\Apache\jakarta-tomcat\work\localhost\myServlets\Src\calendar_0005fwk_0005fmt_0005fsummary$ class sun.jdbc.rowset.CachedRowSet is an abstract class. It can't be instantiated.
CachedRowSet aResultSet = new CachedRowSet();
Nothing has changed in my setup. I added the rowset.jar in the classpath and it used to work. Any idea what may caused the above error?
Francois Bourgault
Ranch Hand

Joined: Oct 30, 2001
Posts: 67
It works now. I was trying to do something like this:
ResultSet rs = stmt.executeQuery("SELECT * FROM EMPLOYEES");
CachedRowSet crs = new CachedRowSet();
this is taken from Sun's documentation - CachedRowSet. Oh Well!!!
Stanley Tan
Ranch Hand

Joined: May 17, 2001
Posts: 243
Well, it's in the documentation because it works that way too. Funny, cuz I used that code before and it worked for me.
Have you checked out Aspose?
subject: CachedRowSet is an abstract class
jQuery in Action, 3rd edition