wood burning stoves*
The moose likes JDBC 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
JavaRanch » Java Forums » Databases » JDBC
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
 
Similar Threads
Problem with serialization
Null pointer exception using CachedRowSetImpl in Servlet
CachedRowSet is abstract; cannot be instantiated?
Please Help: CachedRowSetImpl (JSR-114) with Oracle Type4 Driver
using datasource help