From: Lipper, M. <mlipper@US-ABP.com> - 2003-06-24 15:43:47
|
I'm unable to login to CVS using: cvs -d :pserver:ano...@cv...:/cvsroot/dbunit login password: <blank> from WinCVS. Is the anonymous password still blank? -----Original Message----- From: Manuel Laflamme [mailto:man...@sy...] Sent: Tuesday, June 24, 2003 10:08 AM To: dbu...@li... Subject: RE: [dbunit-user] ClassCastException during IMPORT (Oracle/classes12.zip, w2k) Hi Matthew, I suggest you to try the version currently available from the CVS repository. In that version, DbUnit does not use PreparedStatement.setObject() and ResultSet.getObject() methods anymore. Now DbUnit uses setXXX() and getXXX() methods that corresponds to the column data type. This changes will also be part of the upcoming DbUnit 1.5.2 release. http://sourceforge.net/mailarchive/forum.php?thread_id=2591468&forum_id=9162 Manuel > -----Original Message----- > From: dbu...@li... > [mailto:dbu...@li...]On Behalf Of Lipper, > Matthew > Sent: Monday, June 23, 2003 4:07 PM > To: 'dbu...@li...' > Subject: [dbunit-user] ClassCastException during IMPORT > (Oracle/classes12.zip, w2k) > > > Hello list, > > I'm getting a ClassCastException from the Oracle JDBC driver > (classes12.zip) > when DBUnit attempts to execute the INSERT portion of a CLEAN_INSERT > statement. I've stepped through the source and traced up through DBUnit's > call (SimplePreparedStatement.java:77) to the Oracle driver; > parameters are > successfully bound for the first two fields of the table in question > (String->NUMBER, Timestamp->DATE), but the application barfs on the third > column for the call to OraclePreparedStatement.setObject( 2, > Double(-1234), > 6 ). The Oracle datatype is a FLOAT. > > I've been a happy DBUnit user for a while on Linux/Postgresql platform and > would like to use it for this project; unfortunately, time is tight and I > need to convince other developers of DBUnits excellent capabilities.I > noticed a similar question on this list that was not answered > which leads me > to believe that this is a documented scenario but I'm obviously missing > something .... > > Any ideas? > > Thanks, > > Matt > > Matthew Lipper > mlipper@US-ABP.com > ABP Investments U.S., Inc. > 917.368.3500 x578 > > P.S. > OS = Windoze Pro/Advanced Server 2000 > Oracle = 8.1.7 > driver = classes12.zip > jdk = 1.4.1 > junit = 3.8.1 > eclipse = 2.1 > ant = 1.5.1 > maven = 1-b10 > > The error was: > > java.lang.ClassCastException > at > oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePrepare > dStatement > .java:2030) > at > oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePrepare > dStatement > .java:2102) > at > org.dbunit.database.statement.SimplePreparedStatement.addValue(Sim > plePrepare > dStatement.java:77) > at > org.dbunit.operation.AbstractBatchOperation.execute(AbstractBatchO > peration.j > ava:133) > at > org.dbunit.operation.CompositeOperation.execute(CompositeOperation > .java:67) > at com.abp.icon.BaseTestCase.setUpDBUnit(BaseTestCase.java:224) > at com.abp.icon.BaseTestCase.setUp(BaseTestCase.java:142) > at > com.abp.icon.IconCalculatorTest.setUp(IconCalculatorTest.java:219) > at junit.framework.TestCase.runBare(TestCase.java:125) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Re > moteTestRu > nner.java:392) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteT > estRunner. > java:276) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(Remote > TestRunner > .java:167) > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > dbunit-user mailing list > dbu...@li... > https://lists.sourceforge.net/lists/listinfo/dbunit-user > ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ dbunit-user mailing list dbu...@li... https://lists.sourceforge.net/lists/listinfo/dbunit-user |