Re: Build fails in transaction itest
Simon Nash wrote: I did a clean checkout and top-level build today. The build failed in itest/transaction with the following error. Has anyone else seen this? I get it consistently from a clean top-level build, but it always seems to go away when I rebuild just this module. Simon With a bit of experimentation I determined that adding a timeout of 1000 milliseconds to the receiveNoWait() call on line 122 of CheckingAccountServiceImpl.java resolved this intermittent failure for me. It seems that an immediate receive can sometimes execute before the message is available. I committed this change (workaround) in revision 628802. Would anyone like to look into a more scientific fix? Simon [INFO] [INFO] Building Apache Tuscany SCA Transaction Policy Integration Test [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 8 source files to F:\tuscany62\sca\itest\transaction\target\cla sses [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Compiling 2 source files to F:\tuscany62\sca\itest\transaction\target\tes t-classes [INFO] [surefire:test] [INFO] Surefire report directory: F:\tuscany62\sca\itest\transaction\target\sure fire-reports --- T E S T S --- Running org.apache.tuscany.sca.itest.transaction.ConcurrentXAResourceTestCase 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-1,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-3,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-2,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-4,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-5,5,main] running... 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.996 sec Running org.apache.tuscany.sca.itest.transaction.TransactionTestCase 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: No type specified on component property: SavingsAccountServiceComponent /accounts 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: No type specified on component property: CheckingAccountServiceComponen t/accounts 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException: The following are unfulfilled intents for component implementation - TransferServiceComponent Unfulfilled Intents = [{http://www.osoa.org/xmlns/sca/1.0}managedTransaction.glo bal] 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException: The are unfulfilled intents fo r binding in reference - savings Unfulfilled Intents = [{http://www.osoa.org/xmlns/sca/1.0}propagatesTransaction] 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException: The are unfulfilled intents fo r binding in reference - checking Unfulfilled Intents = [{http://www.osoa.org/xmlns/sca/1.0}propagatesTransaction] 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException: The
Re: Build fails in transaction itest
Hi, Simon. Thank you for investigating the problem. I debugged a bit more. The following sequence is failing with ActiveMQ randomly. 1) Send 3 messages to a queue and commit the session 2) receiveNoWait on one of the three messages I confirmed that 1) (composite-scoped component with @Init) is always done before 2). I assume the session.commit() should return only after the messages are made available for receive. But it seems that ActiveMQ doesn't guarantee it. Could it be an ActiveMQ bug? Adding the timeout as a workaround is fine with me. Thanks, Raymond - Original Message - From: Simon Nash [EMAIL PROTECTED] To: tuscany-dev@ws.apache.org Sent: Monday, February 18, 2008 8:47 AM Subject: Re: Build fails in transaction itest Simon Nash wrote: I did a clean checkout and top-level build today. The build failed in itest/transaction with the following error. Has anyone else seen this? I get it consistently from a clean top-level build, but it always seems to go away when I rebuild just this module. Simon With a bit of experimentation I determined that adding a timeout of 1000 milliseconds to the receiveNoWait() call on line 122 of CheckingAccountServiceImpl.java resolved this intermittent failure for me. It seems that an immediate receive can sometimes execute before the message is available. I committed this change (workaround) in revision 628802. Would anyone like to look into a more scientific fix? Simon [INFO] [INFO] Building Apache Tuscany SCA Transaction Policy Integration Test [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 8 source files to F:\tuscany62\sca\itest\transaction\target\cla sses [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Compiling 2 source files to F:\tuscany62\sca\itest\transaction\target\tes t-classes [INFO] [surefire:test] [INFO] Surefire report directory: F:\tuscany62\sca\itest\transaction\target\sure fire-reports --- T E S T S --- Running org.apache.tuscany.sca.itest.transaction.ConcurrentXAResourceTestCase 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-1,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-3,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-2,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-4,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-5,5,main] running... 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.996 sec Running org.apache.tuscany.sca.itest.transaction.TransactionTestCase 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: No type specified on component property: SavingsAccountServiceComponent /accounts 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: No type specified on component property: CheckingAccountServiceComponen t/accounts 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException: The following are unfulfilled intents for component implementation - TransferServiceComponent Unfulfilled Intents = [{http://www.osoa.org/xmlns/sca/1.0}managedTransaction.glo bal] 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException
Build fails in transaction itest
I did a clean checkout and top-level build today. The build failed in itest/transaction with the following error. Has anyone else seen this? I get it consistently from a clean top-level build, but it always seems to go away when I rebuild just this module. Simon [INFO] [INFO] Building Apache Tuscany SCA Transaction Policy Integration Test [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 8 source files to F:\tuscany62\sca\itest\transaction\target\cla sses [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Compiling 2 source files to F:\tuscany62\sca\itest\transaction\target\tes t-classes [INFO] [surefire:test] [INFO] Surefire report directory: F:\tuscany62\sca\itest\transaction\target\sure fire-reports --- T E S T S --- Running org.apache.tuscany.sca.itest.transaction.ConcurrentXAResourceTestCase 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-1,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-3,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-2,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-4,5,main] running... 16-Feb-2008 16:48:37 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: Thread[Thread-5,5,main] running... 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 16-Feb-2008 16:49:01 org.apache.tuscany.sca.itest.transaction.ConcurrentXAResour ceTestCase$TestThread run INFO: 1 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.996 sec Running org.apache.tuscany.sca.itest.transaction.TransactionTestCase 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: No type specified on component property: SavingsAccountServiceComponent /accounts 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: No type specified on component property: CheckingAccountServiceComponen t/accounts 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException: The following are unfulfilled intents for component implementation - TransferServiceComponent Unfulfilled Intents = [{http://www.osoa.org/xmlns/sca/1.0}managedTransaction.glo bal] 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException: The are unfulfilled intents fo r binding in reference - savings Unfulfilled Intents = [{http://www.osoa.org/xmlns/sca/1.0}propagatesTransaction] 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException: The are unfulfilled intents fo r binding in reference - checking Unfulfilled Intents = [{http://www.osoa.org/xmlns/sca/1.0}propagatesTransaction] 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException: The following are unfulfilled intents for component implementation - SavingsAccountServiceComponent Unfulfilled Intents = [{http://www.osoa.org/xmlns/sca/1.0}managedTransaction.glo bal] 16-Feb-2008 16:49:02 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuild erImpl$1 problem WARNING: Theres been an exception related to policies... org.apache.tuscany.sca. assembly.builder.impl.PolicyComputationException: The following are unfulfilled intents for binding in service - AccountService Unfulfilled