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

