
July 28th, 2004, 02:11 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
CachedRowSet acceptChanges does not work with DB2
Connecting against DB2 V8.1 with 2.0 "net" drivers...
Every time I use CachedRowSet to propagate changes (ie. acceptChanges method) with the default syncProvider (ie. I never set it) the following error pops up:
Code:
javax.sql.rowset.spi.SyncProviderException: X no of conflicts while synchronizing
at com.sun.rowset.internal.CachedRowSetWriter.writeData(CachedRowSetWriter.java:386)
at com.sun.rowset.CachedRowSetImpl.acceptChanges(CachedRowSetImpl.java:810)
at test.TestCachedRowSet.run(TestCachedRowSet.java:101)
at test.TestCachedRowSet.main(TestCachedRowSet.java:134
SQLException: X no of conflicts while synchronizing
If I catch the SyncProvider exception there are never in non-null values (objects) to resolve (ie. I added the sample code from the SyncResolver javadoc page).
Has anybody else noticed the same problem with DB2? Same code works great with MySQL. It feels like the DB2 drivers (may just the net) are behaving as expected.
Running SDK 1.4.2_01-b06 with the Tiger RowSet implementation (released in April this year, not the latest since it is unstable).
thanks - Matthew Young
|