Re: [OJB-developers] Informix setup
Brought to you by:
thma
From: Domagoj J. <do...@la...> - 2002-06-04 13:53:55
|
OK it's working now : PersistenceBroker Tests are passed , but some ODMG Tests are failed mostly with error : [junit] org.odmg.TransactionAbortedException: Can't convert from: byte array where original exception fired from : JdbcAccess::public void executeInsert(ClassDescriptor mif, Object obj) throws PersistenceBrokerException I am working with Informix Dynamic Server 2000, database is using UTF-8, and driver is aware of that. And I am still using version 0.8.375. The errors are the same for <JDBC_LEVEL> 1.0 and 2.0 and driver that I am using is JDBC 2.0 compatible (informix says that, but in API docs there are some JDBC 2.0 related methods marked with "not yet supported"). here is the "ant -debug junit" printout if you are interested in it : ---------------------------------------------------------------------------------------------------------------------------------- ..................... prepare-tests: FileSet: Setup file scanner in dir C:\java\ojb\src\test\ojb with patternSet{ includes: [repository*, *.properties] excludes: [] } [copy] repository_user.xml omitted as C:\java\ojb\build\test\ojb\repository_user.xml is up to date. [copy] repository_junit.xml omitted as C:\java\ojb\build\test\ojb\repository_junit.xml is up to date. [copy] repository_internal.xml omitted as C:\java\ojb\build\test\ojb\repository_internal.xml is up to date. [copy] OJB.properties omitted as C:\java\ojb\build\test\ojb\OJB.properties is up to date. [copy] repository.dtd omitted as C:\java\ojb\build\test\ojb\repository.dtd is up to date. [copy] repository.xml omitted as C:\java\ojb\build\test\ojb\repository.xml is up to date. [copy] log4j.properties omitted as C:\java\ojb\build\test\ojb\log4j.properties is up to date. FileSet: Setup file scanner in dir C:\java\ojb\src\test\ojb\broker with patternSet{ includes: [] excludes: [*.java] } [copy] omitted as C:\java\ojb\build\test\ojb\broker is up to date. FileSet: Setup file scanner in dir C:\java\ojb\src\test\ojb\odmg with patternSet{ includes: [] excludes: [*.java] } [copy] omitted as C:\java\ojb\build\test\ojb\odmg is up to date. [copy] Copying 1 file to C:\java\ojb\src\test\setup [copy] Copying C:\java\ojb\src\test\setup\db-setup.sql to C:\java\ojb\src\test\setup\db-setup.java Property ${jdbc.driver.class} has not been set [replace] Replacing in C:\java\ojb\src\test\setup\db-setup.java: $JDBCDRIVER$ --> ${jdbc.driver.class} Property ${jdbc.connection.url} has not been set [replace] Replacing in C:\java\ojb\src\test\setup\db-setup.java: $JDBCURL$ --> ${jdbc.connection.url} tests: [echo] using switches: -HSQLDB, -ORACLE, -MS_ACCESS, -INSTANTDB, -DB2, -POSTGRESQL, -MYSQL, +INFORMIX, -MSSQLSERVER2000 [java] Running in same VM org.hsqldb.util.CodeSwitcher src/test/setup -HSQLDB -MS_ACCESS -ORACLE -INSTANTDB -DB2 -POSTGRESQL -MYSQL +INFORMIX -MSSQLSERVER2000 FileSet: Setup file scanner in dir \java\ojb\lib with patternSet{ includes: [**/*.jar, **/*.zip] excludes: [] } force loading org.hsqldb.util.CodeSwitcher Finding class org.hsqldb.util.CodeSwitcher Class java.lang.Object loaded from parent loader Class java.lang.Throwable loaded from parent loader Class java.lang.Exception loaded from parent loader Class java.io.Reader loaded from parent loader Class java.io.FileReader loaded from parent loader Class java.io.Writer loaded from parent loader Class java.io.FileWriter loaded from parent loader Class java.io.BufferedReader loaded from parent loader Class java.io.LineNumberReader loaded from parent loader Class java.io.OutputStreamWriter loaded from parent loader Class java.lang.String loaded from parent loader Class java.util.Vector loaded from parent loader Class java.io.File loaded from parent loader Class java.lang.StringBuffer loaded from parent loader Class java.lang.System loaded from parent loader Class java.io.PrintStream loaded from parent loader [java] . [move] Moving 1 files to C:\java\ojb\src\test\setup [move] Attempting to rename: C:\java\ojb\src\test\setup\db-setup.java to C:\java\ojb\src\test\setup\database-setup.sql FileSet: Setup file scanner in dir C:\java\ojb\src\test\setup with patternSet{ includes: [] excludes: [] } [copy] db-setup.sql omitted as C:\java\ojb\build\test\setup\db-setup.sql is up to date. [copy] database-setup.sql added as C:\java\ojb\build\test\setup\database-setup.sql is outdated. [copy] omitted as C:\java\ojb\build\test\setup is up to date. [copy] Copying 1 file to C:\java\ojb\build\test\setup [copy] Copying C:\java\ojb\src\test\setup\database-setup.sql to C:\java\ojb\build\test\setup\database-setup.sql [delete] Deleting: C:\java\ojb\src\test\setup\database-setup.sql junit: FileSet: Setup file scanner in dir \java\ojb\lib with patternSet{ includes: [**/*.jar, **/*.zip] excludes: [] } FileSet: Setup file scanner in dir \java\ojb\lib with patternSet{ includes: [**/*.jar, **/*.zip] excludes: [] } [junit] Forking C:\IBMJAVA1_3\JRE\..\bin\java.exe -classpath C:\java\ojb\build\classes;C:\java\ojb\lib\antlr_compiletime.jar;C:\java\ojb\lib\ejb.jar;C:\java\ojb\lib\servlet.jar;C:\java\ojb\lib\jdbc2_0-stdext.jar;C:\java\ojb\lib\crimson.jar;C:\java\ojb\lib\antlr.jar;C:\java\ojb\lib\antlr.debug.jar;C:\java\ojb\lib\log4j.jar;C:\java\ojb\lib\hsqldb.jar;C:\java\ojb\lib\ant.jar;C:\java\ojb\lib\gnu-regexp-1.1.4.jar;C:\java\ojb\lib\jta-spec1_0_1.jar;C:\java\ojb\lib\junit.jar;C:\java\ojb\lib\proxy.jar;C:\java\ojb\build\test\ojb;C:\java\ifxjdbc\ifxjdbc.jar junit.textui.TestRunner test.ojb.broker.AllTests FileSet: Setup file scanner in dir \java\ojb\lib with patternSet{ includes: [**/*.jar, **/*.zip] excludes: [] } FileSet: Setup file scanner in dir \java\ojb\lib with patternSet{ includes: [**/*.jar, **/*.zip] excludes: [] } Execute:Java13CommandLauncher: C:\IBMJAVA1_3\JRE\..\bin\java.exe -classpath C:\java\ojb\build\classes;C:\java\ojb\lib\antlr_compiletime.jar;C:\java\ojb\lib\ejb.jar;C:\java\ojb\lib\servlet.jar;C:\java\ojb\lib\jdbc2_0-stdext.jar;C:\java\ojb\lib\crimson.jar;C:\java\ojb\lib\antlr.jar;C:\java\ojb\lib\antlr.debug.jar;C:\java\ojb\lib\log4j.jar;C:\java\ojb\lib\hsqldb.jar;C:\java\ojb\lib\ant.jar;C:\java\ojb\lib\gnu-regexp-1.1.4.jar;C:\java\ojb\lib\jta-spec1_0_1.jar;C:\java\ojb\lib\junit.jar;C:\java\ojb\lib\proxy.jar;C:\java\ojb\build\test\ojb;C:\java\ifxjdbc\ifxjdbc.jar junit.textui.TestRunner test.ojb.broker.AllTests [junit] .[BOOT] INFO: OJB.properties: file:/C:/java/ojb/build/test/ojb/OJB.properties [junit] [ojb.broker.ta.ConfigurationProperties] INFO: ojb.broker.ta.ConfigurationProperties read OJB.properties [junit] [ojb.broker.ta.ConfigurationProperties] INFO: OJB.properties: file:/C:/java/ojb/build/test/ojb/OJB.properties [junit] [BOOT] INFO: OJB.properties: file:/C:/java/ojb/build/test/ojb/OJB.properties [junit] [ojb.broker.ta.PersistenceBrokerFactoryFactory] INFO: Implementation of PersistencebrokerFactory: ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl [junit] ..... [junit] Time: 24,6 [junit] [junit] OK (47 tests) [junit] FileSet: Setup file scanner in dir \java\ojb\lib with patternSet{ includes: [**/*.jar, **/*.zip] excludes: [] } FileSet: Setup file scanner in dir \java\ojb\lib with patternSet{ includes: [**/*.jar, **/*.zip] excludes: [] } [junit] Forking C:\IBMJAVA1_3\JRE\..\bin\java.exe -classpath C:\java\ojb\build\classes;C:\java\ojb\lib\antlr_compiletime.jar;C:\java\ojb\lib\ejb.jar;C:\java\ojb\lib\servlet.jar;C:\java\ojb\lib\jdbc2_0-stdext.jar;C:\java\ojb\lib\crimson.jar;C:\java\ojb\lib\antlr.jar;C:\java\ojb\lib\antlr.debug.jar;C:\java\ojb\lib\log4j.jar;C:\java\ojb\lib\hsqldb.jar;C:\java\ojb\lib\ant.jar;C:\java\ojb\lib\gnu-regexp-1.1.4.jar;C:\java\ojb\lib\jta-spec1_0_1.jar;C:\java\ojb\lib\junit.jar;C:\java\ojb\lib\proxy.jar;C:\java\ojb\build\test\ojb;C:\java\ifxjdbc\ifxjdbc.jar junit.textui.TestRunner test.ojb.odmg.AllTests FileSet: Setup file scanner in dir \java\ojb\lib with patternSet{ includes: [**/*.jar, **/*.zip] excludes: [] } FileSet: Setup file scanner in dir \java\ojb\lib with patternSet{ includes: [**/*.jar, **/*.zip] excludes: [] } Execute:Java13CommandLauncher: C:\IBMJAVA1_3\JRE\..\bin\java.exe -classpath C:\java\ojb\build\classes;C:\java\ojb\lib\antlr_compiletime.jar;C:\java\ojb\lib\ejb.jar;C:\java\ojb\lib\servlet.jar;C:\java\ojb\lib\jdbc2_0-stdext.jar;C:\java\ojb\lib\crimson.jar;C:\java\ojb\lib\antlr.jar;C:\java\ojb\lib\antlr.debug.jar;C:\java\ojb\lib\log4j.jar;C:\java\ojb\lib\hsqldb.jar;C:\java\ojb\lib\ant.jar;C:\java\ojb\lib\gnu-regexp-1.1.4.jar;C:\java\ojb\lib\jta-spec1_0_1.jar;C:\java\ojb\lib\junit.jar;C:\java\ojb\lib\proxy.jar;C:\java\ojb\build\test\ojb;C:\java\ifxjdbc\ifxjdbc.jar junit.textui.TestRunner test.ojb.odmg.AllTests [junit] [BOOT] INFO: OJB.properties: file:/C:/java/ojb/build/test/ojb/OJB.properties [junit] .[ojb.broker.ta.ConfigurationProperties] INFO: ojb.broker.ta.ConfigurationProperties read OJB.properties [junit] [ojb.broker.ta.ConfigurationProperties] INFO: OJB.properties: file:/C:/java/ojb/build/test/ojb/OJB.properties [junit] [BOOT] INFO: OJB.properties: file:/C:/java/ojb/build/test/ojb/OJB.properties [junit] [ojb.broker.ta.PersistenceBrokerFactoryFactory] INFO: Implementation of PersistencebrokerFactory: ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl [junit] [ojb.broker.accesslayer.StatementsForClass] ERROR: The specified table (elvis) is not in the database. [junit] java.sql.SQLException: The specified table (elvis) is not in the database. [junit] at com.informix.jdbc.IfxSqli.addException(IfxSqli.java:3021) [junit] at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3335) [junit] at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2288) [junit] at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2208) [junit] at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1081) [junit] at com.informix.jdbc.IfxResultSet.executePrepare(IfxResultSet.java:197) [junit] at com.informix.jdbc.IfxPreparedStatement.setupExecutePrepare(IfxPreparedStatement.java:185) [junit] at com.informix.jdbc.IfxPreparedStatement.<init>(IfxPreparedStatement.java:167) [junit] at com.informix.jdbc.IfxSqliConnect.prepareStatement(IfxSqliConnect.java:1558) [junit] at ojb.broker.accesslayer.StatementsForClass.prepareStatement(StatementsForClass.java:147) [junit] at ojb.broker.accesslayer.StatementsForClass.getUpdateStmt(StatementsForClass.java:421) [junit] at ojb.broker.accesslayer.StatementManager.getUpdateStatement(StatementManager.java:484) [junit] at ojb.broker.accesslayer.JdbcAccess.executeUpdate(JdbcAccess.java:276) [junit] at ojb.broker.singlevm.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:1310) [junit] at ojb.broker.singlevm.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:1258) [junit] at ojb.odmg.states.StateOldDirty.commit(StateOldDirty.java:104) [junit] at ojb.odmg.ObjectEnvelopeTable.commit(ObjectEnvelopeTable.java:104) [junit] at ojb.odmg.TransactionImpl.doCommit(TransactionImpl.java:200) [junit] at ojb.odmg.TransactionImpl.commit(TransactionImpl.java:350) [junit] at test.ojb.odmg.OdmgExamples.testBrokerCrash(OdmgExamples.java:510) [junit] at java.lang.reflect.Method.invoke(Native Method) [junit] at junit.framework.TestCase.runTest(TestCase.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:140) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.textui.TestRunner.doRun(TestRunner.java:74) [junit] at junit.textui.TestRunner.start(TestRunner.java:234) [junit] at junit.textui.TestRunner.main(TestRunner.java:112) [junit] org.odmg.TransactionAbortedException: Can't convert from: byte array [junit] at ojb.odmg.ObjectEnvelopeTable.commit(ObjectEnvelopeTable.java:114) [junit] at ojb.odmg.TransactionImpl.doCommit(TransactionImpl.java:200) [junit] at ojb.odmg.TransactionImpl.commit(TransactionImpl.java:350) [junit] at test.ojb.odmg.DListTest.testAddingWithIndex(DListTest.java:209) [junit] at java.lang.reflect.Method.invoke(Native Method) [junit] at junit.framework.TestCase.runTest(TestCase.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:140) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.textui.TestRunner.doRun(TestRunner.java:74) [junit] at junit.textui.TestRunner.start(TestRunner.java:234) [junit] at junit.textui.TestRunner.main(TestRunner.java:112) [junit] org.odmg.TransactionAbortedException: Can't convert from: byte array [junit] at ojb.odmg.ObjectEnvelopeTable.commit(ObjectEnvelopeTable.java:114) [junit] at ojb.odmg.TransactionImpl.doCommit(TransactionImpl.java:200) [junit] at ojb.odmg.TransactionImpl.commit(TransactionImpl.java:350) [junit] at test.ojb.odmg.DListTest.testAdding(DListTest.java:126) [junit] at java.lang.reflect.Method.invoke(Native Method) [junit] at junit.framework.TestCase.runTest(TestCase.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:140) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:131) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) [junit] at junit.framework.TestSuite.run(TestSuite.java:168) [junit] at junit.textui.TestRunner.doRun(TestRunner.java:74) [junit] at junit.textui.TestRunner.start(TestRunner.java:234) [junit] at junit.textui.TestRunner.main(TestRunner.java:112) [junit] ..E.....E.E.F.E.E.E.F.F.F......................... [junit] ......................................... [junit] ........... [junit] Time: 18,07 [junit] There were 6 errors: [junit] 1) testNrmAndDlists(test.ojb.odmg.OdmgExamples) [junit] org.odmg.TransactionNotInProgressException [junit] at ojb.odmg.TransactionImpl.abort(TransactionImpl.java:371) [junit] at test.ojb.odmg.OdmgExamples.testNrmAndDlists(OdmgExamples.java:314) [junit] 2) testUnBind(test.ojb.odmg.NamedRoots) [junit] org.odmg.TransactionAbortedException: Can't convert from: byte array [junit] at ojb.odmg.ObjectEnvelopeTable.commit(ObjectEnvelopeTable.java:114) [junit] at ojb.odmg.TransactionImpl.doCommit(TransactionImpl.java:200) [junit] at ojb.odmg.TransactionImpl.commit(TransactionImpl.java:350) [junit] at test.ojb.odmg.NamedRoots.testUnBind(NamedRoots.java:335) [junit] 3) testLookup(test.ojb.odmg.NamedRoots) [junit] org.odmg.TransactionAbortedException: Can't convert from: byte array [junit] at ojb.odmg.ObjectEnvelopeTable.commit(ObjectEnvelopeTable.java:114) [junit] at ojb.odmg.TransactionImpl.doCommit(TransactionImpl.java:200) [junit] at ojb.odmg.TransactionImpl.commit(TransactionImpl.java:350) [junit] at test.ojb.odmg.NamedRoots.testLookup(NamedRoots.java:265) [junit] 4) testBind(test.ojb.odmg.NamedRoots) [junit] org.odmg.TransactionAbortedException: Can't convert from: byte array [junit] at ojb.odmg.ObjectEnvelopeTable.commit(ObjectEnvelopeTable.java:114) [junit] at ojb.odmg.TransactionImpl.doCommit(TransactionImpl.java:200) [junit] at ojb.odmg.TransactionImpl.commit(TransactionImpl.java:350) [junit] at test.ojb.odmg.NamedRoots.testBind(NamedRoots.java:135) [junit] 5) testDSet(test.ojb.odmg.DListTest) [junit] org.odmg.TransactionAbortedException: Can't convert from: byte array [junit] at ojb.odmg.ObjectEnvelopeTable.commit(ObjectEnvelopeTable.java:114) [junit] at ojb.odmg.TransactionImpl.doCommit(TransactionImpl.java:200) [junit] at ojb.odmg.TransactionImpl.commit(TransactionImpl.java:350) [junit] at test.ojb.odmg.DListTest.testDSet(DListTest.java:334) [junit] 6) testDBag(test.ojb.odmg.DListTest) [junit] org.odmg.TransactionAbortedException: Can't convert from: byte array [junit] at ojb.odmg.ObjectEnvelopeTable.commit(ObjectEnvelopeTable.java:114) [junit] at ojb.odmg.TransactionImpl.doCommit(TransactionImpl.java:200) [junit] at ojb.odmg.TransactionImpl.commit(TransactionImpl.java:350) [junit] at test.ojb.odmg.DListTest.testDBag(DListTest.java:302) [junit] There were 4 failures: [junit] 1) testDoubleBindInOneTx(test.ojb.odmg.NamedRoots)junit.framework.AssertionFailedError: Can't convert from: byte array [junit] at test.ojb.odmg.NamedRoots.testDoubleBindInOneTx(NamedRoots.java:223) [junit] 2) testAddingWithIndex(test.ojb.odmg.DListTest)junit.framework.AssertionFailedError: NRM problem: Can't convert from: byte array [junit] at test.ojb.odmg.DListTest.testAddingWithIndex(DListTest.java:214) [junit] 3) testAdding(test.ojb.odmg.DListTest)junit.framework.AssertionFailedError: NRM problem: Can't convert from: byte array [junit] at test.ojb.odmg.DListTest.testAdding(DListTest.java:131) [junit] 4) testAdding(test.ojb.odmg.DMapTest)junit.framework.AssertionFailedError: Can't convert from: byte array [junit] at test.ojb.odmg.DMapTest.testAdding(DMapTest.java:144) [junit] [junit] FAILURES!!! [junit] Tests run: 93, Failures: 4, Errors: 6 [junit] Total time: 50 seconds |