Skip to main content


1 reply [Last post]
Joined: 2003-06-10


I am having a problem with CachedRowSetImpl, PostgreSQL jdbc driver and jdk 1.6.0-rc-b92.
Previously I was using 1.6.0-beta2-b82 without troubles. After changing to b92, postgresql driver starts complaining that CachedRowSetImpl's internal ResultSet is TYPE_FORWARD_ONLY and needs a TYPE_SCROLL_SENSITIVE or TYPE_SCROLL_INSENSITIVE one. In fact, I verified that CachedRowSetImpl's getType() returns TYPE_SCROLL_INSENSITIVE but postgresql driver still see it as one of a different type.

Just changing back to b82, without any other change (same code, same postgresql driver, same Netbeans project), solves the problem and my code start to working OK again.

Any idea ?. Below is the the stack trace.

<br />
org.postgresql.util.PSQLException: Operation requires a scrollable ResultSet, but this ResultSet is FORWARD_ONLY.<br />
        at org.postgresql.jdbc2.AbstractJdbc2ResultSet.checkScrollable(<br />
        at org.postgresql.jdbc2.AbstractJdbc2ResultSet.absolute(<br />
        at com.sun.rowset.CachedRowSetImpl.populate(<br />
        at com.sun.rowset.CachedRowSetImpl.populate(<br />
        at com.sun.rowset.internal.CachedRowSetReader.readData(<br />
        at com.sun.rowset.CachedRowSetImpl.execute(<br />
        at com.sun.rowset.CachedRowSetImpl.execute(<br />
        at com.adminsa.beans.clickableList.ClickableList.populate(<br />
        at com.adminsa.beans.clickableList.ClickableList.setSqlQuery(<br />
        at com.adminsa.beans.clickableList.ClickableList.setTable(<br />
        at com.adminsa.accounting.gui.SumasYSaldosPanel.initComponents(<br />
        at com.adminsa.accounting.gui.SumasYSaldosPanel.(<br />
        at com.adminsa.accounting.gui.SumasYSaldosPanel$<br />
        at java.awt.event.InvocationEvent.dispatch(<br />
        at java.awt.EventQueue.dispatchEvent(<br />
        at java.awt.EventDispatchThread.pumpOneEventForFilters(<br />
        at java.awt.EventDispatchThread.pumpEventsForFilter(<br />
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(<br />
        at java.awt.EventDispatchThread.pumpEvents(<br />
        at java.awt.EventDispatchThread.pumpEvents(<br />
        at<br />


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-10

Answering to myself ...

I downloaded b82 and b92 sources and compared en both releases.

It is strange, at least to me, that both source files includes the following header:

* @(#) 1.18 06/03/24
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.

but have some differences !. I will try to find if any of these differences is causing my troubles. have too same version number and date but different code.

I will keep searching why my code fails with b92 and will inform my findings.