Hi,

after modifying the
- oracle.profile 
  (Oracle -> oracle problem)
- ojbcore-schema.xml 
    <column name="KEY_OID" type="VARBINARY"/>
    <column name="VALUE_OID" type="VARBINARY"/>
- repository_internal.xml
    jdbc-type="BLOB"
  (problem with oracle and 2 LONGVARBINARY fields)
and 
- PlatformOracleImpl.java
   if (((sqlType == Types.VARBINARY) || (sqlType == Types.LONGVARBINARY)
|| (sqlType == Types.BLOB) ) 
                        && (value instanceof byte[])){

as suggested in the mail of
From: "David Churcher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, August 25, 2002 7:46 PM
Subject: Oracle Junit #1: build prepare-testdb fails

the build prepare-testdb runs fine.

But the performancetest (build performance) faild with the
following message:

[ojb] [org.apache.ojb.broker.accesslayer.AbstractConnectionFactory]
INFO: # Already created co
nnections: 1 returning : oracle.jdbc.driver.OracleConnection@a2d64
[ojb] [performance] ERROR: java.lang.Double
[ojb] java.lang.ClassCastException: java.lang.Double
[ojb]     at
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java
:1980)
[ojb]     at
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java
:2052)
[ojb]     at
org.apache.ojb.broker.platforms.PlatformDefaultImpl.setObjectForStatement(Unknown
 Source)
[ojb]     at
org.apache.ojb.broker.platforms.PlatformOracleImpl.setObjectForStatement(Unknown
Source)
[ojb]     at
org.apache.ojb.broker.accesslayer.StatementManager.bindInsert(Unknown
Source)
[ojb]     at
org.apache.ojb.broker.accesslayer.JdbcAccess.executeInsert(Unknown
Source)
[ojb]     at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(Unknown
Source)
[ojb]     at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(Unknown
Source)
[ojb]     at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(Unknown
Source)
[ojb]     at
org.apache.ojb.broker.PerformanceTest.insertNewArticles(Unknown Source)
[ojb]     at org.apache.ojb.broker.PerformanceTest.testBenchmark(Unknown
Source)
[ojb]     at java.lang.reflect.Method.invoke(Native Method)
[ojb]     at junit.framework.TestCase.runTest(TestCase.java:166)
[ojb]     at junit.framework.TestCase.runBare(TestCase.java:140)
[ojb]     at junit.framework.TestResult$1.protect(TestResult.java:106)
[ojb]     at
junit.framework.TestResult.runProtected(TestResult.java:124)
[ojb]     at junit.framework.TestResult.run(TestResult.java:109)
[ojb]     at junit.framework.TestCase.run(TestCase.java:131)
[ojb]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
[ojb]     at junit.framework.TestSuite.run(TestSuite.java:168)
[ojb]     at junit.textui.TestRunner.doRun(TestRunner.java:74)
[ojb]     at junit.textui.TestRunner.start(TestRunner.java:234)
[ojb]     at junit.textui.TestRunner.main(TestRunner.java:112)
[ojb]     at org.apache.ojb.broker.PerformanceTest.main(Unknown Source)
[ojb] F
[ojb] Time: 4,025
[ojb] There was 1 failure:
[ojb] 1)
testBenchmark(org.apache.ojb.broker.PerformanceTest)junit.framework.AssertionFailedEr
ror: java.lang.Double
[ojb]     at org.apache.ojb.broker.PerformanceTest.testBenchmark(Unknown
Source)
[ojb]     at org.apache.ojb.broker.PerformanceTest.main(Unknown Source)

[ojb] FAILURES!!!
[ojb] Tests run: 1,  Failures: 1,  Errors: 0

What can i do to run the performance tests?
By the way, the tests with "build junit" hangs.

Bernhard


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

Reply via email to