Hi,
Is the OFBiz dev community aware that there are various unit-tests failing at the moment? I have tried both the "stable" branch and the trunk (Rev. 556234) - both fail. Are there any known issues with the unit test suite? Thanks. Luis |
Administrator
|
Hi Luis,
Using rev. 558463, I found the 5 following errors after an ant clean-all, ant run-install and an run-tests. 1___________________________________________________________________________________________________________________________________ [java] 2007-07-22 17:39:33,890 (main) [ GenericDelegator.java:577:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] Failure in create operation for entity [Testing]: org.ofbiz.entity.GenericEntityException: Exception while inserting the following entity: [GenericEntity:Testing][createdStamp,2007-07-22 17:39:33. 843(java.sql.Timestamp)][createdTxStamp,2007-07-22 17:39:33.843(java.sql.Timestamp)][lastUpdatedStamp,2007-07-22 17:39:33.843(java.sql.Timestamp)][lastUpdatedTxStamp,2007-07-22 17:39:33.843(java.sql.Timestamp )][testingId,10000(java.lang.String)][testingTypeId,NO-SUCH-KEY(java.lang.String)] (while inserting: [GenericEntity:Testing][createdStamp,2007-07-22 17:39:33.843(java.sql.Timestamp)][createdTxStamp,2007-07-22 17:39:33.843(java.sql.Timestamp)][lastUpdatedStamp,2007-07-22 17:39:33.843(java.sql.Timestamp)][lastUpdatedTxStamp,2007-07-22 17:39:33.843(java.sql.Timestamp)][testingId,10000(java.lang.String)][testingTypeI d,NO-SUCH-KEY(java.lang.String)] (SQL Exception while executing the following:INSERT INTO OFBIZ.TESTING (TESTING_ID, TESTING_TYPE_ID, TESTING_NAME, DESCRIPTION, COMMENTS, TESTING_SIZE, TESTING_DATE, LAST_UPDA TED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (INSERT on table 'TESTING' caused a violation of foreign key constraint 'ENTITY_ENTY_TYP' for key (N O-SUCH-KEY). The statement has been rolled back.))). Rolling back transaction. 2___________________________________________________________________________________________________________________________________ [java] 2007-07-22 17:39:42,593 (main) [ TestRunContainer.java:141:INFO ] [JUNIT] : org.ofbiz.entity.test.EntityTestSuite finished. [java] 2007-07-22 17:39:42,593 (main) [ TestRunContainer.java:145:INFO ] [JUNIT] : org.ofbiz.entity.test.EntityTestSuite starting... [java] 2007-07-22 17:39:44,765 (main) [ TestRunContainer.java:141:INFO ] [JUNIT] : org.ofbiz.entity.test.EntityTestSuite finished. [java] 2007-07-22 17:39:44,765 (main) [ TestRunContainer.java:145:INFO ] [JUNIT] : org.ofbiz.entity.test.EntityTestSuite starting... [java] 2007-07-22 17:39:44,765 (main) [ GenericDelegator.java:1774:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place. Wrap this call in a transaction. [java] Exception: java.lang.Exception [java] Message: Stack Trace [java] ---- stack trace --------------------------------------------------------------- [java] java.lang.Exception: Stack Trace [java] org.ofbiz.entity.GenericDelegator.findListIteratorByCondition(GenericDelegator.java:1773) [java] org.ofbiz.entity.GenericDelegator.findListIteratorByCondition(GenericDelegator.java:1751) [java] org.ofbiz.entity.test.EntityTestSuite.testEntityListIterator(EntityTestSuite.java:432) [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] java.lang.reflect.Method.invoke(Method.java:585) [java] junit.framework.TestCase.runTest(TestCase.java:154) [java] junit.framework.TestCase.runBare(TestCase.java:127) [java] junit.framework.TestResult$1.protect(TestResult.java:106) [java] junit.framework.TestResult.runProtected(TestResult.java:124) [java] junit.framework.TestResult.run(TestResult.java:109) [java] junit.framework.TestCase.run(TestCase.java:118) [java] junit.framework.TestSuite.runTest(TestSuite.java:208) [java] junit.framework.TestSuite.run(TestSuite.java:203) [java] junit.framework.TestSuite.runTest(TestSuite.java:208) [java] junit.framework.TestSuite.run(TestSuite.java:203) [java] org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:91) [java] org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:82) [java] org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) [java] org.ofbiz.base.start.Start.startServer(Start.java:314) [java] org.ofbiz.base.start.Start.start(Start.java:318) [java] org.ofbiz.base.start.Start.main(Start.java:404) [java] -------------------------------------------------------------------------------- 3___________________________________________________________________________________________________________________________________ [java] 2007-07-22 17:39:51,984 (main) [ SequenceUtil.java:254:INFO ] Got bank of sequenced IDs for [EntitySyncRemove]; curSeqId=12010, maxSeqId=12020, bankSize=10 [java] 2007-07-22 17:39:52,000 (main) [ TestRunContainer.java:141:INFO ] [JUNIT] : org.ofbiz.entity.test.EntityTestSuite finished. [java] 2007-07-22 17:39:52,000 (main) [ TestRunContainer.java:145:INFO ] [JUNIT] : org.ofbiz.entity.test.EntityTestSuite starting... [java] 2007-07-22 17:39:52,078 (main) [ TransactionUtil.java:255:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] [TransactionUtil.rollback] [java] Exception: java.lang.Exception [java] Message: Stack Trace [java] ---- stack trace --------------------------------------------------------------- [java] java.lang.Exception: Stack Trace [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254) [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236) [java] org.ofbiz.entity.test.EntityTestSuite.testTransactionUtilRollback(EntityTestSuite.java:461) [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] java.lang.reflect.Method.invoke(Method.java:585) [java] junit.framework.TestCase.runTest(TestCase.java:154) [java] junit.framework.TestCase.runBare(TestCase.java:127) [java] junit.framework.TestResult$1.protect(TestResult.java:106) [java] junit.framework.TestResult.runProtected(TestResult.java:124) [java] junit.framework.TestResult.run(TestResult.java:109) [java] junit.framework.TestCase.run(TestCase.java:118) [java] junit.framework.TestSuite.runTest(TestSuite.java:208) [java] junit.framework.TestSuite.run(TestSuite.java:203) [java] junit.framework.TestSuite.runTest(TestSuite.java:208) [java] junit.framework.TestSuite.run(TestSuite.java:203) [java] org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:91) [java] org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:82) [java] org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) [java] org.ofbiz.base.start.Start.startServer(Start.java:314) [java] org.ofbiz.base.start.Start.start(Start.java:318) [java] org.ofbiz.base.start.Start.main(Start.java:404) [java] -------------------------------------------------------------------------------- [java] [java] 2007-07-22 17:39:52,156 (main) [ TransactionUtil.java:265:INFO ] [TransactionUtil.rollback] transaction rolled back [java] 2007-07-22 17:39:52,156 (main) [ TestRunContainer.java:141:INFO ] [JUNIT] : org.ofbiz.entity.test.EntityTestSuite finished. 4___________________________________________________________________________________________________________________________________ [java] 2007-07-22 17:39:52,156 (main) [ TestRunContainer.java:145:INFO ] [JUNIT] : org.ofbiz.entity.test.EntityTestSuite starting... [java] 2007-07-22 17:40:12,187 (main) [InheritableTransactionContext.java:311:ERROR] Unable to roll back transaction [java] java.lang.IllegalStateException: Status is STATUS_NO_TRANSACTION [java] at org.apache.geronimo.transaction.manager.TransactionImpl.rollback(TransactionImpl.java:438) [java] at org.apache.geronimo.transaction.context.InheritableTransactionContext.rollbackAndThrow(InheritableTransactionContext.java:308) [java] at org.apache.geronimo.transaction.context.InheritableTransactionContext.complete(InheritableTransactionContext.java:199) [java] at org.apache.geronimo.transaction.context.InheritableTransactionContext.commit(InheritableTransactionContext.java:146) [java] at org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:81) [java] at org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:179) [java] at org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:165) [java] at org.ofbiz.entity.test.EntityTestSuite.testTransactionUtilMoreThanTimeout(EntityTestSuite.java:479) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at junit.framework.TestCase.runTest(TestCase.java:154) [java] at junit.framework.TestCase.runBare(TestCase.java:127) [java] at junit.framework.TestResult$1.protect(TestResult.java:106) [java] at junit.framework.TestResult.runProtected(TestResult.java:124) [java] at junit.framework.TestResult.run(TestResult.java:109) [java] at junit.framework.TestCase.run(TestCase.java:118) [java] at junit.framework.TestSuite.runTest(TestSuite.java:208) [java] at junit.framework.TestSuite.run(TestSuite.java:203) [java] at junit.framework.TestSuite.runTest(TestSuite.java:208) [java] at junit.framework.TestSuite.run(TestSuite.java:203) [java] at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:91) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:82) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) [java] at org.ofbiz.base.start.Start.startServer(Start.java:314) [java] at org.ofbiz.base.start.Start.start(Start.java:318) [java] at org.ofbiz.base.start.Start.main(Start.java:404) [java] 2007-07-22 17:40:12,187 (main) [ TransactionUtil.java:647:WARN ] [java] ---- exception report ---------------------------------------------------------- [java] WARNING: In getSetRollbackOnlyCause no stack placeholder was in place, here is the current location: [java] Exception: java.lang.Exception [java] Message: Current Stack Trace 5___________________________________________________________________________________________________________________________________ [java] 2007-07-22 17:40:33,578 (main) [ TestRunContainer.java:145:INFO ] [JUNIT] : org.ofbiz.testtools.SimpleMethodTest starting... [java] 2007-07-22 17:40:33,578 (main) [ SimpleMethod.java:936:ERROR] [java] ---- runtime exception report -------------------------------------------------- [java] Exception in thread "main" java.lang.IllegalArgumentException: Locale cannot be null [java] Error in simple-method operation [<call-service/>]: java.lang.IllegalArgumentException: Locale cannot be null [java] at org.ofbiz.base.util.UtilProperties.getResourceBundleMap(UtilProperties.java:514) [java] Exception: java.lang.IllegalArgumentException [java] at org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:417) [java] Message: Locale cannot be null [java] at org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:571) [java] ---- stack trace --------------------------------------------------------------- [java] at org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:105) [java] java.lang.IllegalArgumentException: Locale cannot be null [java] at org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:81) [java] org.ofbiz.base.util.UtilProperties.getResourceBundleMap(UtilProperties.java:514) [java] at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:63) [java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:417) [java] at junit.framework.TestSuite.runTest(TestSuite.java:208) [java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:481) [java] at junit.framework.TestSuite.run(TestSuite.java:203) [java] org.ofbiz.minilang.method.callops.FlexibleMessage.getMessage(FlexibleMessage.java:76) [java] at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:91) [java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:315) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:82) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:931) [java] at org.ofbiz.base.start.Start.startServer(Start.java:314) [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:568) [java] at org.ofbiz.base.start.Start.start(Start.java:318) [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:105) [java] at org.ofbiz.base.start.Start.main(Start.java:404) [java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:81) [java] org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:63) [java] junit.framework.TestSuite.runTest(TestSuite.java:208) [java] junit.framework.TestSuite.run(TestSuite.java:203) [java] org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:91) [java] org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:82) [java] org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) [java] org.ofbiz.base.start.Start.startServer(Start.java:314) [java] org.ofbiz.base.start.Start.start(Start.java:318) [java] org.ofbiz.base.start.Start.main(Start.java:404) [java] -------------------------------------------------------------------------------- [java] [java] 2007-07-22 17:41:03,578 (GenericXaResource-Thread) [ GenericXaResource.java:206:WARN ] Transaction timeout [30] Status: Transaction Active (0) Xid: [globalId=52d0000005748415420444f2057452043414c 4c2049543f0000000000000000000000000000000000000,branchId=100000005748415420444f2057452043414c4c2049543f00000000000000000000000000000 00000000] There tests got stuck .... Is it what you are referring too ? Jacques De : "Sotomayor, Luis" <[hidden email]> Hi, Is the OFBiz dev community aware that there are various unit-tests failing at the moment? I have tried both the "stable" branch and the trunk (Rev. 556234) - both fail. Are there any known issues with the unit test suite? Thanks. Luis |
Free forum by Nabble | Edit this page |