• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CachedRowSet - Can't get an instance

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are many examples of how to use sun.jdbc.RowSet.CashedRowSet along with links to where to get the supporting jar file. However the newer rowset.jar files that I can find at the sun web site don't work with these examples. At the bottom of this post are the links to the early reference download for rowset.jar that I used and a couple of articles that I am talking about.
The problem is that I can't get an instance of CashedRowSet.
The following is a code snippet:
import java.sql.*;
import javax.sql.*;
import sun.jdbc.rowset.*;
...
...
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(SQL);
CachedRowSet crs = new CachedRowSet();
crs.populate(rs);
rs.close();
conn.close();

It throws the exception: "javax.sql.rowset.CachedRowSet is abstract; cannot be instantiated."
Obviously with so many articles and examples out there it used to work.
Can anyone help ?
Articles:
"Get disconnected with CachedRowSet"
http://java.sun.com/developer/technicalArticles/javaserverpages/cachedrowset/
jGuru Q&A
http://www.jguru.com/faq/view.jsp?EID=776543
Early Access JDBC Rowset Implementations
http://java.sun.com/developer/earlyAccess/jdbc/jdbc-rowset.html
 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
post your email and I can send a jar that contains the implementation for CachedRowSet. I have faced this problem myself couple of months ago but eventually found a good jar.
 
Kevin Kruse
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am so happy to hear from you and that you have a rowset.jar file for me!
Please send it to krusek@comcast.net
This is Great!
Thanks you!
Kevin Kruse
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the JDBC Forum...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic