This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes the question about CachedRowSet and CachedRowSetImpl Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 125
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: the question about CachedRowSet and CachedRowSetImpl
 
Similar Threads
Null pointer exception using CachedRowSetImpl in Servlet
Problem with serialization
CachedRowSet is abstract; cannot be instantiated?
Please Help: CachedRowSetImpl (JSR-114) with Oracle Type4 Driver
using datasource help