File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the question about CachedRowSet and CachedRowSetImpl

 
tanyh tanyh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 128
Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it appropriate to release a CachedRowset immediately after creating the instance of it?
 
tanyh tanyh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!Please try it again! I think it not to found file(*.properties)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic