一個困擾我三天的問題,請高手指點!(關於SUN實現CachedRowSet 的用法)

netdragon發表於2004-11-24
我用的是Oracle 9.0.2 的ojdbc14.jarJDBC驅動,用populate(rs)時報以下錯誤:
java.sql.SQLException: Unable to get connection

at com.sun.rowset.internal.CachedRowSetWriter.writeData(Unknown Source)

at com.sun.rowset.CachedRowSetImpl.acceptChanges(Unknown Source)

at gov.chinatax.hr.common.resacc.db.RowSetTest.test(RowSetTest.java:43)

at gov.chinatax.hr.common.resacc.db.RowSetTest.main(RowSetTest.java:64)

javax.sql.rowset.spi.SyncProviderException: Unable to get connection

at com.sun.rowset.CachedRowSetImpl.acceptChanges(Unknown Source)

at gov.chinatax.hr.common.resacc.db.RowSetTest.test(RowSetTest.java:43)

at gov.chinatax.hr.common.resacc.db.RowSetTest.main(RowSetTest.java:64)

用crs.execute()時報以下錯誤:

ava.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.locatorsUpdateCopy()Z

at com.sun.rowset.CachedRowSetImpl.initMetaData(Unknown Source)

at com.sun.rowset.CachedRowSetImpl.populate(Unknown Source)

at com.sun.rowset.internal.CachedRowSetReader.readData(Unknown Source)

at com.sun.rowset.CachedRowSetImpl.execute(Unknown Source)

at gov.chinatax.hr.common.resacc.db.RowSetTest.test(RowSetTest.java:39)

at gov.chinatax.hr.common.resacc.db.RowSetTest.main(RowSetTest.java:69)

Exception in thread "main"
線上等答!!!
謝謝了。

相關文章