Luciano, I get the same failure.
Turning on full trace for ODE makes it appear that this failure occurs very late on in the processing of the client request by the BPEL processing. The frustrating thing at the moment is that even full trace gives no hint as to why the transaction commit fails. Perhaps I have not yet found the way to get the transaction manager to give "full" debug info.
Yours, Mike. Luciano Resende wrote:
I was taking a look at the recent BPEL changes, but realized that the BPEL sample is not working for me. Is anyone else seeing the stack below ? ------------------------------------------------------- T E S T S ------------------------------------------------------- Running helloworld.BPELHelloWorldTestCase Jun 29, 2009 8:16:02 AM org.apache.tuscany.sca.node.impl.NodeImpl start INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0 Jun 29, 2009 8:16:02 AM org.apache.tuscany.sca.node.impl.NodeFactoryImpl configureNode INFO: Loading contribution: file:/home/lresende/opensource/apache/tuscany/java-sca-2.x/samples/helloworld-bpel/target/classes/ Jun 29, 2009 8:16:03 AM org.apache.tuscany.sca.endpoint.impl.EndpointRegistryImpl addEndpoint INFO: Add endpoint - Endpoint: URI = BPELHelloWorldComponent#service-binding(helloPartnerLink/helloPartnerLink) Jun 29, 2009 8:16:05 AM java.util.jar.Attributes read WARNING: Duplicate name in Manifest: Manifest-Version Jun 29, 2009 8:16:06 AM org.apache.tuscany.sca.endpoint.impl.EndpointRegistryImpl addEndpointReference INFO: Add endpoint reference - Endpoint Reference: URI = BPELHelloWorldComponent#reference-binding($self$.helloPartnerLink/helloPartnerLink) NOT_CONFIGURED Target = Endpoint: URI = BPELHelloWorldComponent#service-binding(helloPartnerLink/helloPartnerLink) ERROR - GeronimoLog.error(108) | Error while executing transaction javax.transaction.RollbackException: Unable to commit: transaction marked for rollback at org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:271) at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:238) at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:226) at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:404) at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:401) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) 08:16:06,836 ERROR [SimpleScheduler] Error while executing transaction javax.transaction.RollbackException: Unable to commit: transaction marked for rollback at org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:271) at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:238) at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:226) at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:404) at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:401) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Jun 29, 2009 8:16:06 AM org.apache.tuscany.sca.node.impl.NodeImpl stop INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0 Jun 29, 2009 8:16:06 AM org.apache.tuscany.sca.endpoint.impl.EndpointRegistryImpl removeEndpoint INFO: Remove endpoint - Endpoint: URI = BPELHelloWorldComponent#service-binding(helloPartnerLink/helloPartnerLink) Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.441 sec <<< FAILURE! testInvoke(helloworld.BPELHelloWorldTestCase) Time elapsed: 0.472 sec <<< ERROR! java.lang.NullPointerException at org.apache.ode.bpel.engine.MessageImpl.getMessage(MessageImpl.java:104) at org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELInvoker.doTheWork(BPELInvoker.java:168) at org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELInvoker.invoke(BPELInvoker.java:105) at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:72) at org.apache.tuscany.sca.binding.sca.provider.SCABindingInvoker.invoke(SCABindingInvoker.java:61) at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:56) at org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:276) at org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:141) at $Proxy20.hello(Unknown Source) at helloworld.BPELHelloWorldTestCase.testInvoke(BPELHelloWorldTestCase.java:62) 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:585) 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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) 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:220) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) 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:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Results : Tests in error: testInvoke(helloworld.BPELHelloWorldTestCase) Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. Please refer to /home/lresende/opensource/apache/tuscany/java-sca-2.x/samples/helloworld-bpel/target/surefire-reports for the individual test results.
