CachedRowSetXImpl.populate() error

I try to populate cached rowset from non-sql result set, in my case from SAP resource adapter. Object returning from this resource adapter is basically sql result set, which does not support all operations, in which case the adapter's rowset raises java.lang.UnsupportedOperationException.

When I execute CachedRowSetXImpl.populate(mySapRs) I see the following error (last 3 rows from stack):

java.lang.UnsupportedOperationException: isCurrency(int columnIndex) is not supported

at com.neopsis.sap.jra.outbound.SapResultSet.isCurrency(SapResultSet.java:479)

at com.sun.sql.rowset.CachedRowSetXImpl.initMetaData(CachedRowSetXImpl.java:871)

at com.sun.sql.rowset.CachedRowSetXImpl.populate(CachedRowSetXImpl.java:791)

IMO the initMetaData() method of CachedRowSetXImpl should deal with unsupported operations, I do not see any reason for propagating this kind of exception to the calling method.

Has anybody idea how to solve this problem? Do we have access to the sourcecode of CachedRowSetXImpl class?

Regards

Robert

[1079 byte] By [Nullpointera] at [2007-11-26 20:13:38]
# 1

>Do we have access to the sourcecode of CachedRowSetXImpl class?

Check Winston's blog. There was a preliminary source release recently...

This is planning info for VWP (from the wiki)

P2 8.5Replace com.sun.rave.sql.rowset impl w/ javax.sql.rowset David VC In progress - can't be completed until DnD data binding works again (targeted for M8) M994906

yossariana at 2007-7-9 23:19:53 > top of Java-index,Development Tools,Java Tools...