You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "ant elder (JIRA)" <de...@tuscany.apache.org> on 2010/03/01 00:12:05 UTC

[jira] Created: (TUSCANY-3477) policy-transaction itest failing

policy-transaction itest failing
--------------------------------

                 Key: TUSCANY-3477
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3477
             Project: Tuscany
          Issue Type: Bug
            Reporter: ant elder
             Fix For: Java-SCA-2.0


The policy-transaction itest is failing with the following exception so i've added an @Ignore to the testcase for now:

testCustomer(org.apache.tuscany.sca.itest.policy.transaction.CustomerTestCase)  Time elapsed: 0.005 sec  <<< ERROR!
java.lang.IllegalStateException: Thread already associated with another transaction
	at org.apache.geronimo.transaction.manager.TransactionManagerImpl.resume(TransactionManagerImpl.java:180)
	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.suspendsTransactionPostInvoke(TransactionManagerHelper.java:85)
	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.handlesInbound(TransactionManagerHelper.java:199)
	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor$TransactionalInvocation.run(TransactionInterceptor.java:133)
	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor$TransactionalInvocation.run(TransactionInterceptor.java:1)
	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.run(TransactionManagerHelper.java:156)
	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.handlesOutbound(TransactionManagerHelper.java:142)
	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor.invoke(TransactionInterceptor.java:103)
	at org.apache.tuscany.sca.binding.sca.provider.SCABindingInvoker.invoke(SCABindingInvoker.java:76)
	at org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:236)
	at org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:106)
	at $Proxy10.find(Unknown Source)
	at org.apache.tuscany.sca.itest.policy.transaction.CustomerTestCase.testCustomer(CustomerTestCase.java:59)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:24)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.experimental.ParallelComputer$1$1.call(ParallelComputer.java:46)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TUSCANY-3477) policy-transaction itest failing

Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende reassigned TUSCANY-3477:
----------------------------------------

    Assignee: Luciano Resende

> policy-transaction itest failing
> --------------------------------
>
>                 Key: TUSCANY-3477
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3477
>             Project: Tuscany
>          Issue Type: Bug
>            Reporter: ant elder
>            Assignee: Luciano Resende
>             Fix For: Java-SCA-2.0
>
>
> The policy-transaction itest is failing with the following exception so i've added an @Ignore to the testcase for now:
> testCustomer(org.apache.tuscany.sca.itest.policy.transaction.CustomerTestCase)  Time elapsed: 0.005 sec  <<< ERROR!
> java.lang.IllegalStateException: Thread already associated with another transaction
> 	at org.apache.geronimo.transaction.manager.TransactionManagerImpl.resume(TransactionManagerImpl.java:180)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.suspendsTransactionPostInvoke(TransactionManagerHelper.java:85)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.handlesInbound(TransactionManagerHelper.java:199)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor$TransactionalInvocation.run(TransactionInterceptor.java:133)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor$TransactionalInvocation.run(TransactionInterceptor.java:1)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.run(TransactionManagerHelper.java:156)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.handlesOutbound(TransactionManagerHelper.java:142)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor.invoke(TransactionInterceptor.java:103)
> 	at org.apache.tuscany.sca.binding.sca.provider.SCABindingInvoker.invoke(SCABindingInvoker.java:76)
> 	at org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:236)
> 	at org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:106)
> 	at $Proxy10.find(Unknown Source)
> 	at org.apache.tuscany.sca.itest.policy.transaction.CustomerTestCase.testCustomer(CustomerTestCase.java:59)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> 	at org.junit.runners.Suite.runChild(Suite.java:128)
> 	at org.junit.runners.Suite.runChild(Suite.java:24)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> 	at org.junit.experimental.ParallelComputer$1$1.call(ParallelComputer.java:46)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TUSCANY-3477) policy-transaction itest failing

Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende resolved TUSCANY-3477.
--------------------------------------

    Resolution: Fixed

Fixed. There were some issues around the transaction invoker that were causing this and also IncompatibleIntentException exceptions... I have tided up the invoker and this is now working fine.

> policy-transaction itest failing
> --------------------------------
>
>                 Key: TUSCANY-3477
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3477
>             Project: Tuscany
>          Issue Type: Bug
>            Reporter: ant elder
>            Assignee: Luciano Resende
>             Fix For: Java-SCA-2.0
>
>
> The policy-transaction itest is failing with the following exception so i've added an @Ignore to the testcase for now:
> testCustomer(org.apache.tuscany.sca.itest.policy.transaction.CustomerTestCase)  Time elapsed: 0.005 sec  <<< ERROR!
> java.lang.IllegalStateException: Thread already associated with another transaction
> 	at org.apache.geronimo.transaction.manager.TransactionManagerImpl.resume(TransactionManagerImpl.java:180)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.suspendsTransactionPostInvoke(TransactionManagerHelper.java:85)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.handlesInbound(TransactionManagerHelper.java:199)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor$TransactionalInvocation.run(TransactionInterceptor.java:133)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor$TransactionalInvocation.run(TransactionInterceptor.java:1)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.run(TransactionManagerHelper.java:156)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper.handlesOutbound(TransactionManagerHelper.java:142)
> 	at org.apache.tuscany.sca.policy.transaction.runtime.TransactionInterceptor.invoke(TransactionInterceptor.java:103)
> 	at org.apache.tuscany.sca.binding.sca.provider.SCABindingInvoker.invoke(SCABindingInvoker.java:76)
> 	at org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:236)
> 	at org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:106)
> 	at $Proxy10.find(Unknown Source)
> 	at org.apache.tuscany.sca.itest.policy.transaction.CustomerTestCase.testCustomer(CustomerTestCase.java:59)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> 	at org.junit.runners.Suite.runChild(Suite.java:128)
> 	at org.junit.runners.Suite.runChild(Suite.java:24)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> 	at org.junit.experimental.ParallelComputer$1$1.call(ParallelComputer.java:46)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.