This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JDBC and the fly likes Exception in Using CachedRowSet while populating the Resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Exception in Using CachedRowSet while populating the Resultset" Watch "Exception in Using CachedRowSet while populating the Resultset" New topic
Author

Exception in Using CachedRowSet while populating the Resultset

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
Hi All,

stmt = conn.prepareStatement(sqlStr.toString());
rs = stmt.executeQuery();
crs.populate(rs);

Due To last line i am getting an exception as:
java.sql.SQLException: Invalid column display size. Cannot be less than zero


but if i just execute teh resultset and iterate it ,all works fine.
m using PostGreSQL 8.1.
is there some pblm with postgresql when accessing from CachedRowSet.

Thanks
Amarshi Mohanty

SCJP (97%), SCWCD (95%))
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception in Using CachedRowSet while populating the Resultset
 
Similar Threads
CachedRowSet not populating?
CachedRowSet.acceptChanges();
CachedRowSet is an abstract class
Transaction Control using CachedRowSet
Problem with sun.jdbc.rowset.CachedRowSet