db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: Unit test errors with PostgreSQL
Date Sat, 19 Jun 2004 15:58:13 GMT
hi thomas,

could you please post the sql that produced the error ?

jakob

Am Samstag, 19. Juni 2004 16.49 schrieb Thomas Dudziak:
> I have 1 failure and 6 errors, all in PB Tests, when running against
> PostgreSQL (PostgreSQL 7.4.1 on Mandrake 10, JDK 1.4.2_04, JDBC level 3
> driver):
>
> testLikeEscapedCriteria1
> testKeyViolation
> testBlobInsertion
> testAbstractReferenceStore
> testAbstractReferenceQuery
> testAbstractReferenceDelete
> testWeakIdentityMap
>
> Here's the system.err output:
>
>
> org.postgresql.util.PSQLException: FEHLER: Fehler ?nterminated quoted
> string?bei ?\'?P93
>
> 	at
> org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)
> 	at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154)
> 	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101)
> 	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
> 	at
> org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.
>java:515) at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.
>java:50) at
> org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1State
>ment.java:231) at
> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccessImp
>l.java:283) at
> org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryObject.
>java:74) at
> org.apache.ojb.broker.accesslayer.RsIterator.&lt;init&gt;(RsIterator.java:1
>83) at
> org.apache.ojb.broker.core.RsIteratorFactoryImpl.createRsIterator(RsIterato
>rFactoryImpl.java:58) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(Per
>sistenceBrokerImpl.java:1824) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getIteratorFromQuery(Persi
>stenceBrokerImpl.java:1354) at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryR
>eferenceBroker.java:110) at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryR
>eferenceBroker.java:232) at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryR
>eferenceBroker.java:252) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getCollectionByQuery(Persi
>stenceBrokerImpl.java:1238) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery
>(DelegatingPersistenceBroker.java:332) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery
>(DelegatingPersistenceBroker.java:332) at
> org.apache.ojb.broker.QueryTest.testLikeEscapedCriteria1(QueryTest.java:285
>) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestR
>unner.java:326) at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTest
>Runner.java:560) org.apache.ojb.broker.PersistenceBrokerSQLException:
> org.postgresql.util.PSQLException: FEHLER: Fehler ?nterminated quoted
> string?bei ?\'?P93
>
> 	at
> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccessImp
>l.java:318) at
> org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryObject.
>java:74) at
> org.apache.ojb.broker.accesslayer.RsIterator.&lt;init&gt;(RsIterator.java:1
>83) at
> org.apache.ojb.broker.core.RsIteratorFactoryImpl.createRsIterator(RsIterato
>rFactoryImpl.java:58) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(Per
>sistenceBrokerImpl.java:1824) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getIteratorFromQuery(Persi
>stenceBrokerImpl.java:1354) at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryR
>eferenceBroker.java:110) at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryR
>eferenceBroker.java:232) at
> org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryR
>eferenceBroker.java:252) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getCollectionByQuery(Persi
>stenceBrokerImpl.java:1238) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery
>(DelegatingPersistenceBroker.java:332) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery
>(DelegatingPersistenceBroker.java:332) at
> org.apache.ojb.broker.QueryTest.testLikeEscapedCriteria1(QueryTest.java:285
>) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestR
>unner.java:326) at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTest
>Runner.java:560) Caused by: org.postgresql.util.PSQLException: FEHLER:
> Fehler
> ?nterminated quoted string?bei ?\'?P93
>
> 	at
> org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)
> 	at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154)
> 	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101)
> 	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
> 	at
> org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.
>java:515) at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.
>java:50) at
> org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1State
>ment.java:231) at
> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccessImp
>l.java:283) ... 28 more
> org.postgresql.util.PSQLException: FEHLER: Relation ?ot_exist?existiert
> nicht
>
> 	at
> org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)
> 	at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154)
> 	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101)
> 	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
> 	at
> org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.
>java:515) at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.
>java:50) at
> org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1State
>ment.java:231) at
> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeSQL(JdbcAccessImpl.
>java:350) at
> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeSQL(JdbcAccessImpl.
>java:328) at
> org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryObject.
>java:70) at
> org.apache.ojb.broker.accesslayer.RsIterator.&lt;init&gt;(RsIterator.java:1
>83) at
> org.apache.ojb.broker.accesslayer.SqlBasedRsIterator.&lt;init&gt;(SqlBasedR
>sIterator.java:36) at
> org.apache.ojb.broker.core.RsIteratorFactoryImpl.createRsIterator(RsIterato
>rFactoryImpl.java:67) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(Per
>sistenceBrokerImpl.java:1816) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getIteratorFromQuery(Persi
>stenceBrokerImpl.java:1354) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getObjectByQuery(Persisten
>ceBrokerImpl.java:1465) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getObjectByQuery(Del
>egatingPersistenceBroker.java:301) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getObjectByQuery(Del
>egatingPersistenceBroker.java:301) at
> org.apache.ojb.broker.PersistenceBrokerTest.testLocalTransactionDemarcation
>(PersistenceBrokerTest.java:425) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestR
>unner.java:326) at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTest
>Runner.java:560) !! The follwing SQLException is part of the Test !!
> org.postgresql.util.PSQLException: FEHLER: Einf?n oder Aktualisieren in
> Tabelle ?erson_project?verletzt Fremdschl?el-Constraint
> ?erson_project_fk_1?DSchl?el (person_id)=(119) ist nicht in Tabelle
> ?erson?vorhanden.
>
> 	at
> org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)
> 	at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:154)
> 	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:101)
> 	at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
> 	at
> org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.
>java:515) at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.
>java:50) at
> org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Stat
>ement.java:271) at
> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeUpdateSQL(JdbcAcces
>sImpl.java:417) at
> org.apache.ojb.broker.core.MtoNBroker.storeMtoNImplementor(MtoNBroker.java:
>84) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.storeAndLinkMtoN(Persisten
>ceBrokerImpl.java:889) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.storeCollections(Persisten
>ceBrokerImpl.java:803) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(PersistenceBroke
>rImpl.java:1682) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImp
>l.java:1575) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImp
>l.java:707) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPers
>istenceBroker.java:174) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPers
>istenceBroker.java:174) at
> org.apache.ojb.broker.PBRollbackTest.storeObjects(PBRollbackTest.java:320)
> 	at
> org.apache.ojb.broker.PBRollbackTest.testRollbackCausedBySQLException(PBRol
>lbackTest.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestR
>unner.java:326) at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTest
>Runner.java:560) org.postgresql.util.PSQLException: Backend start-up failed:
> org.postgresql.util.PSQLException: FATAL: Benutzer &raquo;!!TestCase:
> This should fail!!&laquo; existiert nicht
>
> 	at
> org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(AbstractJdbc1
>Connection.java:445) at
> org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Co
>nnection.java:213) at org.postgresql.Driver.connect(Driver.java:139)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:512)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:171)
> 	at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnecti
>onFromDriverManager(ConnectionFactoryAbstractImpl.java:253) at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl$ConPoolFactor
>y.makeObject(ConnectionFactoryPooledImpl.java:231) at
> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPo
>ol.java:816) at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl.getConnection
>FromPool(ConnectionFactoryPooledImpl.java:81) at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupConne
>ction(ConnectionFactoryAbstractImpl.java:116) at
> org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(Conne
>ctionManagerImpl.java:105) at
> org.apache.ojb.broker.accesslayer.StatementManager.getPreparedStatement(Sta
>tementManager.java:637) at
> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccessImp
>l.java:277) at
> org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryObject.
>java:74) at
> org.apache.ojb.broker.accesslayer.RsIterator.&lt;init&gt;(RsIterator.java:1
>83) at
> org.apache.ojb.broker.accesslayer.ReportQueryRsIterator.&lt;init&gt;(Report
>QueryRsIterator.java:43) at
> org.apache.ojb.broker.core.ReportRsIteratorFactoryImpl.createRsIterator(Rep
>ortRsIteratorFactoryImpl.java:59) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(Per
>sistenceBrokerImpl.java:1824) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIteratorFrom
>Query(PersistenceBrokerImpl.java:1871) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIteratorByQu
>ery(PersistenceBrokerImpl.java:1799) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getCount(PersistenceBroker
>Impl.java:1770) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCount(DelegatingP
>ersistenceBroker.java:327) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCount(DelegatingP
>ersistenceBroker.java:327) at
> org.apache.ojb.broker.metadata.MetadataTest.testLookupPB2(MetadataTest.java
>:299) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestR
>unner.java:326) at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTest
>Runner.java:560) org.apache.ojb.broker.PersistenceBrokerException: Used
> ConnectionManager instance could not obtain a connection
> 	at
> org.apache.ojb.broker.accesslayer.StatementManager.getPreparedStatement(Sta
>tementManager.java:641) at
> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccessImp
>l.java:277) at
> org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryObject.
>java:74) at
> org.apache.ojb.broker.accesslayer.RsIterator.&lt;init&gt;(RsIterator.java:1
>83) at
> org.apache.ojb.broker.accesslayer.ReportQueryRsIterator.&lt;init&gt;(Report
>QueryRsIterator.java:43) at
> org.apache.ojb.broker.core.ReportRsIteratorFactoryImpl.createRsIterator(Rep
>ortRsIteratorFactoryImpl.java:59) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(Per
>sistenceBrokerImpl.java:1824) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIteratorFrom
>Query(PersistenceBrokerImpl.java:1871) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIteratorByQu
>ery(PersistenceBrokerImpl.java:1799) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getCount(PersistenceBroker
>Impl.java:1770) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCount(DelegatingP
>ersistenceBroker.java:327) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCount(DelegatingP
>ersistenceBroker.java:327) at
> org.apache.ojb.broker.metadata.MetadataTest.testLookupPB2(MetadataTest.java
>:299) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestR
>unner.java:326) at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTest
>Runner.java:560) Caused by:
> org.apache.ojb.broker.accesslayer.LookupException: Could not borrow
> connection from pool -
> org.apache.ojb.broker.metadata.JdbcConnectionDescriptor:
> org.apache.ojb.broker.metadata.JdbcConnectionDescriptor@f9e48[
>    jcd-alias=default
>    default-connection=false
>    dbms=PostgreSQL
>    jdbc-level=3.0
>    driver=org.postgresql.Driver
>    protocol=jdbc
>    sub-protocol=postgresql
>    db-alias=ojbtest
>    user=!!TestCase: This should fail!!
>    password=*****
>    eager-release=false
>    ConnectionPoolDescriptor={testOnReturn=false, maxWait=5000,
> timeBetweenEvictionRunsMillis=-1, testOnBorrow=true,
> numTestsPerEvictionRun=10, maxActive=21, removeAbandonedTimeout=300,
> removeAbandoned=false, maxIdle=-1, testWhileIdle=false,
> whenExhaustedAction=0, logAbandoned=false,
> minEvictableIdleTimeMillis=600000}
>    batchMode=false
>    useAutoCommit=AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE
>    ignoreAutoCommitExceptions=false
>
> sequenceDescriptor=org.apache.ojb.broker.metadata.SequenceDescriptor@160bf5
>e[ sequenceManagerClass=class
> org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl
>       Properties={grabSize=20, globalSequenceStart=10000,
> autoNaming=true, globalSequenceId=false}
> ]
> ]
> 	at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl.getConnection
>FromPool(ConnectionFactoryPooledImpl.java:85) at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupConne
>ction(ConnectionFactoryAbstractImpl.java:116) at
> org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(Conne
>ctionManagerImpl.java:105) at
> org.apache.ojb.broker.accesslayer.StatementManager.getPreparedStatement(Sta
>tementManager.java:637) ... 28 more
> Caused by: org.apache.ojb.broker.accesslayer.LookupException: Error
> getting Connection from DriverManager with url (jdbc:postgresql:ojbtest)
> and driver (org.postgresql.Driver)
> 	at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnecti
>onFromDriverManager(ConnectionFactoryAbstractImpl.java:259) at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl$ConPoolFactor
>y.makeObject(ConnectionFactoryPooledImpl.java:231) at
> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPo
>ol.java:816) at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl.getConnection
>FromPool(ConnectionFactoryPooledImpl.java:81) ... 31 more
> Caused by: org.postgresql.util.PSQLException: Backend start-up failed:
> org.postgresql.util.PSQLException: FATAL: Benutzer &raquo;!!TestCase:
> This should fail!!&laquo; existiert nicht
>
> 	at
> org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(AbstractJdbc1
>Connection.java:445) at
> org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Co
>nnection.java:213) at org.postgresql.Driver.connect(Driver.java:139)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:512)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:171)
> 	at
> org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnecti
>onFromDriverManager(ConnectionFactoryAbstractImpl.java:253) ... 34 more
> [WARN] OptionConverter - -Could not find value for key
> jcs.default.elementattributes
> [WARN] CompositeCacheConfigurator - -Could not instantiate eAttr named
> 'jcs.default.elementattributes', using defaults.
> [WARN] OptionConverter - -Could not find value for key
> jcs.system.groupIdCache.elementattributes
> [WARN] CompositeCacheConfigurator - -Could not instantiate eAttr named
> 'jcs.system.groupIdCache.elementattributes', using defaults.
> [WARN] OptionConverter - -Could not find value for key
> jcs.region.org.apache.ojb.broker.cache.ObjectCacheTest$CacheObject.cacheatt
>ributes [WARN] CompositeCacheConfigurator - -Could not instantiate ccAttr
> named
> 'jcs.region.org.apache.ojb.broker.cache.ObjectCacheTest$CacheObject.cacheat
>tributes', using defaults.
> [WARN] OptionConverter - -Could not find value for key
> jcs.region.org.apache.ojb.broker.cache.ObjectCacheTest$CacheObject.elementa
>ttributes [WARN] CompositeCacheConfigurator - -Could not instantiate eAttr
> named
> 'jcs.region.org.apache.ojb.broker.cache.ObjectCacheTest$CacheObject.element
>attributes', using defaults.
> [WARN] OptionConverter - -Could not find value for key
> jcs.region.ojbDefault.elementattributes
> [WARN] CompositeCacheConfigurator - -Could not instantiate eAttr named
> 'jcs.region.ojbDefault.elementattributes', using defaults.
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message