File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and Relational Databases and the fly likes the question about CachedRowSet and CachedRowSetImpl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "the question about CachedRowSet and CachedRowSetImpl" Watch "the question about CachedRowSet and CachedRowSetImpl" New topic
Author

the question about CachedRowSet and CachedRowSetImpl

tanyh tanyh
Greenhorn

Joined: Dec 14, 2004
Posts: 2
Enviroment:windows2000+weblogic8+oracle9i+jdk1.5
method:
import javax.sql.rowset.CachedRowSet;
import com.sun.rowset.CachedRowSetImpl;
implements the program:
CachedRowSet rowset = new CachedRowSetImpl();
rowset.release();
rowset.setCommand("Select * from table_one");
rowset.execute(connHandle);
error code:
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
at java.util.Properties.load(Properties.java:189)
at java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:96)
at com.sun.rowset.JdbcRowSetResourceBundle.<init>(Unknown Source)
at com.sun.rowset.JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(Unknown Sou
rce)
at com.sun.rowset.CachedRowSetImpl.<init>(Unknown Source)
Raj Chila
Ranch Hand

Joined: Mar 18, 2004
Posts: 128

is it appropriate to release a CachedRowset immediately after creating the instance of it?
tanyh tanyh
Greenhorn

Joined: Dec 14, 2004
Posts: 2
Thanks!Please try it again! I think it not to found file(*.properties)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: the question about CachedRowSet and CachedRowSetImpl