I haven't run the JUnit tests against Oracle. However our application wasn't
working with Oracle (after updating to 0.9.8) and it was working with SQL
Server.

To get it working with Oracle I modified OJB.  In the PlatformOracleImpl, I
added a noop beforeStatementClose method, since Oracle was failing in the
PlatformDefaultImpl's beforeStatementClose method with a
NullPointerException.  It didn't always fail when beforeStatementClose was
called, however it did always fail in the same spot with the same queries. 

It doesn't look like this code changed from 0.9.7, so I'm not sure what
broke, just what makes it work for us. 

Alan

-----Original Message-----
From: Will Jaynes [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 7:51 AM
To: [EMAIL PROTECTED]
Subject: junit tests on 0.9.8 for Oracle


When I run the junit tests on 0.9.8 against my Oracle db I get some 
errors and failures. I also get some errors and failures when running 
the junit tests on my CVS version of OJB. Is anyone succeeding with the 
junit tests against Oracle 8.1.7? If so could you please tell me about 
your configuration. Thanks.

(I am aware of the problem with the two LONGs in the OJB_DMAP_ENTRIES 
and have compensated for it by changing ojbcore-schema.xml. So the 
prepare-testdb task runs successfully.)

Here are the junit results I get for 0.9.8.

junit-no-compile-no-prepare:
     [junit] Running org.apache.ojb.broker.AllTests
     [junit] [BOOT] INFO: OJB.properties: 
file:/C:/Jakarta/jakarta-ojb-0.9.8/target/test/ojb/OJB.properties
     [junit] Tests run: 163, Failures: 0, Errors: 4, Time elapsed: 
190.835 sec
     [junit] TEST org.apache.ojb.broker.AllTests FAILED
     [junit] Running org.apache.ojb.odmg.AllTests
     [junit] [BOOT] INFO: OJB.properties: 
file:/C:/Jakarta/jakarta-ojb-0.9.8/target/test/ojb/OJB.properties
     [junit] Tests run: 144, Failures: 4, Errors: 30, Time elapsed: 
35.962 sec
     [junit] TEST org.apache.ojb.odmg.AllTests FAILED
     [junit] Running org.apache.ojb.soda.AllTests
     [junit] [BOOT] INFO: OJB.properties: 
file:/C:/Jakarta/jakarta-ojb-0.9.8/target/test/ojb/OJB.properties
     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 4.536 sec


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to