You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Mike Edwards <mi...@gmail.com> on 2008/05/27 19:02:04 UTC
BPEL Implementation: Latest changes mean no need for deploy.xml !!
Folks,
I've just deployed some changes to SVN for the BPEL implementation that remove the need to supply a
deploy.xml file alongside your BPEL process script.
So now, all you need is your BPEL process script, the related WSDL - and the composite file that
defines the SCA component(s) - and you're done.
Enjoy!
Yours, Mike.
Re: BPEL Implementation: Latest changes mean no need for deploy.xml
!!
Posted by Mike Edwards <mi...@gmail.com>.
Sebastien,
Which operating system are you running on?
The new code compiles the BPEL process to the CBP file and then reads it in. The error is with
reading in the file.
What I don't see below is an error from the new code saying that it is unable to load the file,
which is curious.
Yours, Mike.
Jean-Sebastien Delfino wrote:
> Mike Edwards wrote:
>> Luciano Resende wrote:
>>> Very good news Mike !!! I hope to start working on the db issues as
>>> soon as I get some free cycles.
>>>
>>
>> Luciano,
>>
>> There is something that you might be able to help me with right away.
>>
>> I am running into intermittent problems with transactions in the
>> registration of a BPEL process with the ODE server. The transaction
>> causing the problem seems to be the one in the
>> BPELImplementationProvider start() method.
>>
>> What is this transaction for?
>>
>> try {
>> txMgr.begin();
>>
>> odeServer.registerTuscanyRuntimeComponent(implementation.getProcess(),
>> component);
>>
>> odeServer.deploy(new ODEDeployment(deploymentDir), implementation );
>> txMgr.commit();
>> } catch (Exception e) {
>> e.printStackTrace();
>> txMgr.rollback();
>> }
>>
>>
>> Will it cause a problem if I remove this transaction? To me it does
>> not seem to provide any value when the Process is being supplied by
>> Tuscany. I can't see any requirement for it in the ODE documentation.
>>
>>
>> Yours, Mike.
>>
>
> Rebuiling from scratch gives me the error below. Anybody else seeing
> this? Could it be related to the transaction problem discussed here?
>
> Running helloworld.BPELHelloWorldTestCase
> org.apache.tuscany.sca.implementation.bpel.ode.ODEDeploymentException:
> >>> DEPLOY: Unexpected exception: Error reloading compiled process
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
> the file appears to be corrupted.
> at
> org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.deploy(EmbeddedODEServer.java:285)
>
> at
> org.apache.tuscany.sca.implementation.bpel.provider.BPELImplementationProvider.start(BPELImplementationProvider.java:100)
>
> at
> org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:631)
>
> at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:245)
>
> at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
>
> at
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:242)
>
> at
> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:70)
>
> at
> helloworld.BPELHelloWorldTestCase.setUp(BPELHelloWorldTestCase.java:42)
> at junit.framework.TestCase.runBare(TestCase.java:125)
> 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
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
>
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
>
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
>
> Caused by: org.apache.ode.bpel.iapi.BpelEngineException: Error reloading
> compiled process
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
> the file appears to be corrupted.
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:689)
>
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:654)
>
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:666)
>
> at
> org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
> at
> org.apache.ode.bpel.engine.BpelProcess.hydrate(BpelProcess.java:547)
> at
> org.apache.ode.bpel.engine.BpelServerImpl.register(BpelServerImpl.java:277)
> at
> org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.deploy(EmbeddedODEServer.java:280)
>
> ... 25 more
> Caused by: java.lang.NullPointerException
> at java.io.DataInputStream.read(DataInputStream.java:132)
> at org.apache.ode.bpel.o.Serializer.read(Serializer.java:80)
> at org.apache.ode.bpel.o.Serializer.<init>(Serializer.java:73)
> at
> org.apache.ode.bpel.engine.BpelProcess.deserializeCompiledProcess(BpelProcess.java:417)
>
> at
> org.apache.ode.bpel.engine.BpelProcess.access$800(BpelProcess.java:75)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:685)
>
> ... 31 more
> Cannot find the cbp file for process:
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld
>
> Cannot find the cbp file for process:
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld
>
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.207
> sec <<< FAILURE!
> testInvoke(helloworld.BPELHelloWorldTestCase) Time elapsed: 15.166 sec
> <<< ERROR!
> org.apache.ode.bpel.iapi.BpelEngineException: Error reloading compiled
> process
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
> the file appears to be corrupted.
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:689)
>
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:654)
>
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:666)
>
> at
> org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
> at
> org.apache.ode.bpel.engine.BpelProcess.getEndpointToMyRoleMap(BpelProcess.java:566)
>
> at
> org.apache.ode.bpel.engine.BpelProcess.initMyRoleMex(BpelProcess.java:192)
> at
> org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:128)
>
> at
> org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:135)
>
> at
> org.apache.tuscany.sca.implementation.bpel.provider.BPELInvoker.doTheWork(BPELInvoker.java:134)
>
> at
> org.apache.tuscany.sca.implementation.bpel.provider.BPELInvoker.invoke(BPELInvoker.java:109)
>
> at
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
>
> at
> org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
>
> at
> org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:103)
>
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:286)
>
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
>
> at $Proxy14.hello(Unknown Source)
> at
> helloworld.BPELHelloWorldTestCase.testInvoke(BPELHelloWorldTestCase.java:56)
>
> 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 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
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
>
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
>
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
>
> Caused by: java.lang.NullPointerException
> at java.io.DataInputStream.read(DataInputStream.java:132)
> at org.apache.ode.bpel.o.Serializer.read(Serializer.java:80)
> at org.apache.ode.bpel.o.Serializer.<init>(Serializer.java:73)
> at
> org.apache.ode.bpel.engine.BpelProcess.deserializeCompiledProcess(BpelProcess.java:417)
>
> at
> org.apache.ode.bpel.engine.BpelProcess.access$800(BpelProcess.java:75)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:685)
>
> ... 39 more
>
>
> Results :
>
> Tests in error:
> testInvoke(helloworld.BPELHelloWorldTestCase)
>
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
>
Re: BPEL test case failures on Linux - understand problem & working
a fix
Posted by Mike Edwards <mi...@gmail.com>.
Folks,
Apologies.
This looks like a Windows vs Linux problem associated with case sensitivity of filenames on Linux
not present on Windows.
Basically, the CBP file written to disk by the ODE processing is "helloworld.cbp" but a search is
made for a file "HelloWorld.cbp". On Windows, this is no problem, on Linux it matters a lot.
I'm working a fix now....
Yours, Mike.
PS If anyone understands the transaction failures stuff, I'll be grateful - it appears I am the only
person who is seeing these, so presumably it is a config problem with my machine....
Raymond Feng wrote:
> I'm seeing the same issue with:
>
> java version "1.6.0_06"
> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
> Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
>
> Maven version: 2.0.9
> Java version: 1.6.0_06
> OS name: "linux" version: "2.6.18-8.el5" arch: "i386" Family: "unix"
>
> Redhat Enterprise 5.x
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: "Jean-Sebastien Delfino" <js...@apache.org>
> Sent: Tuesday, May 27, 2008 7:12 PM
> To: <tu...@ws.apache.org>
> Subject: Re: BPEL Implementation: Latest changes mean no need for
> deploy.xml !!
>
>> Mike Edwards wrote:
>>> Luciano Resende wrote:
>>>> Very good news Mike !!! I hope to start working on the db issues as
>>>> soon as I get some free cycles.
>>>>
>>>
>>> Luciano,
>>>
>>> There is something that you might be able to help me with right away.
>>>
>>> I am running into intermittent problems with transactions in the
>>> registration of a BPEL process with the ODE server. The transaction
>>> causing the problem seems to be the one in the
>>> BPELImplementationProvider start() method.
>>>
>>> What is this transaction for?
>>>
>>> try {
>>> txMgr.begin();
>>>
>>> odeServer.registerTuscanyRuntimeComponent(implementation.getProcess(),
>>> component);
>>>
>>> odeServer.deploy(new ODEDeployment(deploymentDir), implementation );
>>> txMgr.commit();
>>> } catch (Exception e) {
>>> e.printStackTrace();
>>> txMgr.rollback();
>>> }
>>>
>>>
>>> Will it cause a problem if I remove this transaction? To me it does
>>> not seem to provide any value when the Process is being supplied by
>>> Tuscany. I can't see any requirement for it in the ODE documentation.
>>>
>>>
>>> Yours, Mike.
>>>
>>
>> Rebuiling from scratch gives me the error below. Anybody else seeing
>> this? Could it be related to the transaction problem discussed here?
>>
>> Running helloworld.BPELHelloWorldTestCase
>> org.apache.tuscany.sca.implementation.bpel.ode.ODEDeploymentException:
>> >>> DEPLOY: Unexpected exception: Error reloading compiled process
>> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
>> the file appears to be corrupted.
>> at
>> org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.deploy(EmbeddedODEServer.java:285)
>>
>> at
>> org.apache.tuscany.sca.implementation.bpel.provider.BPELImplementationProvider.start(BPELImplementationProvider.java:100)
>>
>> at
>> org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:631)
>>
>> at
>> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:245)
>>
>> at
>> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
>>
>> at
>> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:242)
>>
>> at
>> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:70)
>>
>> at
>> helloworld.BPELHelloWorldTestCase.setUp(BPELHelloWorldTestCase.java:42)
>> at junit.framework.TestCase.runBare(TestCase.java:125)
>> 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
>> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
>>
>> at
>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>>
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>>
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>>
>> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>> 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
>>
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
>>
>> Caused by: org.apache.ode.bpel.iapi.BpelEngineException: Error
>> reloading compiled process
>> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
>> the file appears to be corrupted.
>> at
>> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:689)
>>
>> at
>> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:654)
>>
>> at
>> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:666)
>>
>> at
>> org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.hydrate(BpelProcess.java:547)
>> at
>> org.apache.ode.bpel.engine.BpelServerImpl.register(BpelServerImpl.java:277)
>>
>> at
>> org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.deploy(EmbeddedODEServer.java:280)
>>
>> ... 25 more
>> Caused by: java.lang.NullPointerException
>> at java.io.DataInputStream.read(DataInputStream.java:132)
>> at org.apache.ode.bpel.o.Serializer.read(Serializer.java:80)
>> at org.apache.ode.bpel.o.Serializer.<init>(Serializer.java:73)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.deserializeCompiledProcess(BpelProcess.java:417)
>>
>> at
>> org.apache.ode.bpel.engine.BpelProcess.access$800(BpelProcess.java:75)
>> at
>> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:685)
>>
>> ... 31 more
>> Cannot find the cbp file for process:
>> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld
>>
>> Cannot find the cbp file for process:
>> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld
>>
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.207
>> sec <<< FAILURE!
>> testInvoke(helloworld.BPELHelloWorldTestCase) Time elapsed: 15.166
>> sec <<< ERROR!
>> org.apache.ode.bpel.iapi.BpelEngineException: Error reloading compiled
>> process
>> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
>> the file appears to be corrupted.
>> at
>> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:689)
>>
>> at
>> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:654)
>>
>> at
>> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:666)
>>
>> at
>> org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.getEndpointToMyRoleMap(BpelProcess.java:566)
>>
>> at
>> org.apache.ode.bpel.engine.BpelProcess.initMyRoleMex(BpelProcess.java:192)
>>
>> at
>> org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:128)
>>
>> at
>> org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:135)
>>
>> at
>> org.apache.tuscany.sca.implementation.bpel.provider.BPELInvoker.doTheWork(BPELInvoker.java:134)
>>
>> at
>> org.apache.tuscany.sca.implementation.bpel.provider.BPELInvoker.invoke(BPELInvoker.java:109)
>>
>> at
>> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
>>
>> at
>> org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
>>
>> at
>> org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:103)
>>
>> at
>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:286)
>>
>> at
>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
>>
>> at $Proxy14.hello(Unknown Source)
>> at
>> helloworld.BPELHelloWorldTestCase.testInvoke(BPELHelloWorldTestCase.java:56)
>>
>> 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 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
>> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
>>
>> at
>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>>
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>>
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>>
>> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>> 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
>>
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
>>
>> Caused by: java.lang.NullPointerException
>> at java.io.DataInputStream.read(DataInputStream.java:132)
>> at org.apache.ode.bpel.o.Serializer.read(Serializer.java:80)
>> at org.apache.ode.bpel.o.Serializer.<init>(Serializer.java:73)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.deserializeCompiledProcess(BpelProcess.java:417)
>>
>> at
>> org.apache.ode.bpel.engine.BpelProcess.access$800(BpelProcess.java:75)
>> at
>> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:685)
>>
>> ... 39 more
>>
>>
>> Results :
>>
>> Tests in error:
>> testInvoke(helloworld.BPELHelloWorldTestCase)
>>
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
>>
>> --
>> Jean-Sebastien
>
>
BPEL test case failures on Linux, was: Re: BPEL Implementation: Latest changes mean no need for deploy.xml !!
Posted by Raymond Feng <en...@gmail.com>.
I'm seeing the same issue with:
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
Maven version: 2.0.9
Java version: 1.6.0_06
OS name: "linux" version: "2.6.18-8.el5" arch: "i386" Family: "unix"
Redhat Enterprise 5.x
Thanks,
Raymond
--------------------------------------------------
From: "Jean-Sebastien Delfino" <js...@apache.org>
Sent: Tuesday, May 27, 2008 7:12 PM
To: <tu...@ws.apache.org>
Subject: Re: BPEL Implementation: Latest changes mean no need for deploy.xml
!!
> Mike Edwards wrote:
>> Luciano Resende wrote:
>>> Very good news Mike !!! I hope to start working on the db issues as
>>> soon as I get some free cycles.
>>>
>>
>> Luciano,
>>
>> There is something that you might be able to help me with right away.
>>
>> I am running into intermittent problems with transactions in the
>> registration of a BPEL process with the ODE server. The transaction
>> causing the problem seems to be the one in the BPELImplementationProvider
>> start() method.
>>
>> What is this transaction for?
>>
>> try {
>> txMgr.begin();
>>
>> odeServer.registerTuscanyRuntimeComponent(implementation.getProcess(),
>> component);
>>
>> odeServer.deploy(new ODEDeployment(deploymentDir), implementation );
>> txMgr.commit();
>> } catch (Exception e) {
>> e.printStackTrace();
>> txMgr.rollback();
>> }
>>
>>
>> Will it cause a problem if I remove this transaction? To me it does not
>> seem to provide any value when the Process is being supplied by Tuscany.
>> I can't see any requirement for it in the ODE documentation.
>>
>>
>> Yours, Mike.
>>
>
> Rebuiling from scratch gives me the error below. Anybody else seeing this?
> Could it be related to the transaction problem discussed here?
>
> Running helloworld.BPELHelloWorldTestCase
> org.apache.tuscany.sca.implementation.bpel.ode.ODEDeploymentException:
> >>> DEPLOY: Unexpected exception: Error reloading compiled process
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
> the file appears to be corrupted.
> at
> org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.deploy(EmbeddedODEServer.java:285)
> at
> org.apache.tuscany.sca.implementation.bpel.provider.BPELImplementationProvider.start(BPELImplementationProvider.java:100)
> at
> org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:631)
> at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:245)
> at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
> at
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:242)
> at
> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:70)
> at
> helloworld.BPELHelloWorldTestCase.setUp(BPELHelloWorldTestCase.java:42)
> at junit.framework.TestCase.runBare(TestCase.java:125)
> 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
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
> Caused by: org.apache.ode.bpel.iapi.BpelEngineException: Error reloading
> compiled process
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
> the file appears to be corrupted.
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:689)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:654)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:666)
> at
> org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
> at
> org.apache.ode.bpel.engine.BpelProcess.hydrate(BpelProcess.java:547)
> at
> org.apache.ode.bpel.engine.BpelServerImpl.register(BpelServerImpl.java:277)
> at
> org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.deploy(EmbeddedODEServer.java:280)
> ... 25 more
> Caused by: java.lang.NullPointerException
> at java.io.DataInputStream.read(DataInputStream.java:132)
> at org.apache.ode.bpel.o.Serializer.read(Serializer.java:80)
> at org.apache.ode.bpel.o.Serializer.<init>(Serializer.java:73)
> at
> org.apache.ode.bpel.engine.BpelProcess.deserializeCompiledProcess(BpelProcess.java:417)
> at
> org.apache.ode.bpel.engine.BpelProcess.access$800(BpelProcess.java:75)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:685)
> ... 31 more
> Cannot find the cbp file for process:
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld
> Cannot find the cbp file for process:
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.207 sec
> <<< FAILURE!
> testInvoke(helloworld.BPELHelloWorldTestCase) Time elapsed: 15.166 sec
> <<< ERROR!
> org.apache.ode.bpel.iapi.BpelEngineException: Error reloading compiled
> process
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
> the file appears to be corrupted.
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:689)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:654)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:666)
> at
> org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
> at
> org.apache.ode.bpel.engine.BpelProcess.getEndpointToMyRoleMap(BpelProcess.java:566)
> at
> org.apache.ode.bpel.engine.BpelProcess.initMyRoleMex(BpelProcess.java:192)
> at
> org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:128)
> at
> org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:135)
> at
> org.apache.tuscany.sca.implementation.bpel.provider.BPELInvoker.doTheWork(BPELInvoker.java:134)
> at
> org.apache.tuscany.sca.implementation.bpel.provider.BPELInvoker.invoke(BPELInvoker.java:109)
> at
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
> at
> org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
> at
> org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:103)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:286)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
> at $Proxy14.hello(Unknown Source)
> at
> helloworld.BPELHelloWorldTestCase.testInvoke(BPELHelloWorldTestCase.java:56)
> 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 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
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
> Caused by: java.lang.NullPointerException
> at java.io.DataInputStream.read(DataInputStream.java:132)
> at org.apache.ode.bpel.o.Serializer.read(Serializer.java:80)
> at org.apache.ode.bpel.o.Serializer.<init>(Serializer.java:73)
> at
> org.apache.ode.bpel.engine.BpelProcess.deserializeCompiledProcess(BpelProcess.java:417)
> at
> org.apache.ode.bpel.engine.BpelProcess.access$800(BpelProcess.java:75)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:685)
> ... 39 more
>
>
> Results :
>
> Tests in error:
> testInvoke(helloworld.BPELHelloWorldTestCase)
>
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
>
> --
> Jean-Sebastien
Re: BPEL Implementation: Latest changes mean no need for deploy.xml !!
Posted by Luciano Resende <lu...@gmail.com>.
I just updated to latest trunk revision and I don't see this problem.
Could this be related to the geronimo level changes you mentioned in
another thread (do you have any local changes related to this )?
On Tue, May 27, 2008 at 7:12 PM, Jean-Sebastien Delfino
<js...@apache.org> wrote:
> Mike Edwards wrote:
>>
>> Luciano Resende wrote:
>>>
>>> Very good news Mike !!! I hope to start working on the db issues as
>>> soon as I get some free cycles.
>>>
>>
>> Luciano,
>>
>> There is something that you might be able to help me with right away.
>>
>> I am running into intermittent problems with transactions in the
>> registration of a BPEL process with the ODE server. The transaction causing
>> the problem seems to be the one in the BPELImplementationProvider start()
>> method.
>>
>> What is this transaction for?
>>
>> try {
>> txMgr.begin();
>> odeServer.registerTuscanyRuntimeComponent(implementation.getProcess(),
>> component);
>>
>> odeServer.deploy(new ODEDeployment(deploymentDir), implementation );
>> txMgr.commit();
>> } catch (Exception e) {
>> e.printStackTrace();
>> txMgr.rollback();
>> }
>>
>>
>> Will it cause a problem if I remove this transaction? To me it does not
>> seem to provide any value when the Process is being supplied by Tuscany. I
>> can't see any requirement for it in the ODE documentation.
>>
>>
>> Yours, Mike.
>>
>
> Rebuiling from scratch gives me the error below. Anybody else seeing this?
> Could it be related to the transaction problem discussed here?
>
> Running helloworld.BPELHelloWorldTestCase
> org.apache.tuscany.sca.implementation.bpel.ode.ODEDeploymentException: >>>
> DEPLOY: Unexpected exception: Error reloading compiled process
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
> the file appears to be corrupted.
> at
> org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.deploy(EmbeddedODEServer.java:285)
> at
> org.apache.tuscany.sca.implementation.bpel.provider.BPELImplementationProvider.start(BPELImplementationProvider.java:100)
> at
> org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:631)
> at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:245)
> at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
> at
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:242)
> at
> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:70)
> at
> helloworld.BPELHelloWorldTestCase.setUp(BPELHelloWorldTestCase.java:42)
> at junit.framework.TestCase.runBare(TestCase.java:125)
> 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
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
> Caused by: org.apache.ode.bpel.iapi.BpelEngineException: Error reloading
> compiled process
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
> the file appears to be corrupted.
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:689)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:654)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:666)
> at org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
> at
> org.apache.ode.bpel.engine.BpelProcess.hydrate(BpelProcess.java:547)
> at
> org.apache.ode.bpel.engine.BpelServerImpl.register(BpelServerImpl.java:277)
> at
> org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.deploy(EmbeddedODEServer.java:280)
> ... 25 more
> Caused by: java.lang.NullPointerException
> at java.io.DataInputStream.read(DataInputStream.java:132)
> at org.apache.ode.bpel.o.Serializer.read(Serializer.java:80)
> at org.apache.ode.bpel.o.Serializer.<init>(Serializer.java:73)
> at
> org.apache.ode.bpel.engine.BpelProcess.deserializeCompiledProcess(BpelProcess.java:417)
> at
> org.apache.ode.bpel.engine.BpelProcess.access$800(BpelProcess.java:75)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:685)
> ... 31 more
> Cannot find the cbp file for process:
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld
> Cannot find the cbp file for process:
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.207 sec
> <<< FAILURE!
> testInvoke(helloworld.BPELHelloWorldTestCase) Time elapsed: 15.166 sec <<<
> ERROR!
> org.apache.ode.bpel.iapi.BpelEngineException: Error reloading compiled
> process
> {http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
> the file appears to be corrupted.
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:689)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:654)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:666)
> at org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
> at
> org.apache.ode.bpel.engine.BpelProcess.getEndpointToMyRoleMap(BpelProcess.java:566)
> at
> org.apache.ode.bpel.engine.BpelProcess.initMyRoleMex(BpelProcess.java:192)
> at
> org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:128)
> at
> org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:135)
> at
> org.apache.tuscany.sca.implementation.bpel.provider.BPELInvoker.doTheWork(BPELInvoker.java:134)
> at
> org.apache.tuscany.sca.implementation.bpel.provider.BPELInvoker.invoke(BPELInvoker.java:109)
> at
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
> at
> org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
> at
> org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:103)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:286)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
> at $Proxy14.hello(Unknown Source)
> at
> helloworld.BPELHelloWorldTestCase.testInvoke(BPELHelloWorldTestCase.java:56)
> 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 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
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
> Caused by: java.lang.NullPointerException
> at java.io.DataInputStream.read(DataInputStream.java:132)
> at org.apache.ode.bpel.o.Serializer.read(Serializer.java:80)
> at org.apache.ode.bpel.o.Serializer.<init>(Serializer.java:73)
> at
> org.apache.ode.bpel.engine.BpelProcess.deserializeCompiledProcess(BpelProcess.java:417)
> at
> org.apache.ode.bpel.engine.BpelProcess.access$800(BpelProcess.java:75)
> at
> org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:685)
> ... 39 more
>
>
> Results :
>
> Tests in error:
> testInvoke(helloworld.BPELHelloWorldTestCase)
>
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
>
> --
> Jean-Sebastien
>
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/
Re: BPEL Implementation: Latest changes mean no need for deploy.xml
!!
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Mike Edwards wrote:
> Luciano Resende wrote:
>> Very good news Mike !!! I hope to start working on the db issues as
>> soon as I get some free cycles.
>>
>
> Luciano,
>
> There is something that you might be able to help me with right away.
>
> I am running into intermittent problems with transactions in the
> registration of a BPEL process with the ODE server. The transaction
> causing the problem seems to be the one in the
> BPELImplementationProvider start() method.
>
> What is this transaction for?
>
> try {
> txMgr.begin();
>
> odeServer.registerTuscanyRuntimeComponent(implementation.getProcess(),
> component);
>
> odeServer.deploy(new ODEDeployment(deploymentDir), implementation );
> txMgr.commit();
> } catch (Exception e) {
> e.printStackTrace();
> txMgr.rollback();
> }
>
>
> Will it cause a problem if I remove this transaction? To me it does not
> seem to provide any value when the Process is being supplied by
> Tuscany. I can't see any requirement for it in the ODE documentation.
>
>
> Yours, Mike.
>
Rebuiling from scratch gives me the error below. Anybody else seeing
this? Could it be related to the transaction problem discussed here?
Running helloworld.BPELHelloWorldTestCase
org.apache.tuscany.sca.implementation.bpel.ode.ODEDeploymentException:
>>> DEPLOY: Unexpected exception: Error reloading compiled process
{http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
the file appears to be corrupted.
at
org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.deploy(EmbeddedODEServer.java:285)
at
org.apache.tuscany.sca.implementation.bpel.provider.BPELImplementationProvider.start(BPELImplementationProvider.java:100)
at
org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:631)
at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:245)
at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113)
at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:242)
at
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:70)
at
helloworld.BPELHelloWorldTestCase.setUp(BPELHelloWorldTestCase.java:42)
at junit.framework.TestCase.runBare(TestCase.java:125)
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
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
Caused by: org.apache.ode.bpel.iapi.BpelEngineException: Error reloading
compiled process
{http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
the file appears to be corrupted.
at
org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:689)
at
org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:654)
at
org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:666)
at
org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
at
org.apache.ode.bpel.engine.BpelProcess.hydrate(BpelProcess.java:547)
at
org.apache.ode.bpel.engine.BpelServerImpl.register(BpelServerImpl.java:277)
at
org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.deploy(EmbeddedODEServer.java:280)
... 25 more
Caused by: java.lang.NullPointerException
at java.io.DataInputStream.read(DataInputStream.java:132)
at org.apache.ode.bpel.o.Serializer.read(Serializer.java:80)
at org.apache.ode.bpel.o.Serializer.<init>(Serializer.java:73)
at
org.apache.ode.bpel.engine.BpelProcess.deserializeCompiledProcess(BpelProcess.java:417)
at
org.apache.ode.bpel.engine.BpelProcess.access$800(BpelProcess.java:75)
at
org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:685)
... 31 more
Cannot find the cbp file for process:
{http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld
Cannot find the cbp file for process:
{http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.207
sec <<< FAILURE!
testInvoke(helloworld.BPELHelloWorldTestCase) Time elapsed: 15.166 sec
<<< ERROR!
org.apache.ode.bpel.iapi.BpelEngineException: Error reloading compiled
process
{http://tuscany.apache.org/implementation/bpel/example/helloworld}HelloWorld-1;
the file appears to be corrupted.
at
org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:689)
at
org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:654)
at
org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:666)
at
org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
at
org.apache.ode.bpel.engine.BpelProcess.getEndpointToMyRoleMap(BpelProcess.java:566)
at
org.apache.ode.bpel.engine.BpelProcess.initMyRoleMex(BpelProcess.java:192)
at
org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:128)
at
org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:135)
at
org.apache.tuscany.sca.implementation.bpel.provider.BPELInvoker.doTheWork(BPELInvoker.java:134)
at
org.apache.tuscany.sca.implementation.bpel.provider.BPELInvoker.invoke(BPELInvoker.java:109)
at
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
at
org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
at
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:103)
at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:286)
at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
at $Proxy14.hello(Unknown Source)
at
helloworld.BPELHelloWorldTestCase.testInvoke(BPELHelloWorldTestCase.java:56)
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 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
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
Caused by: java.lang.NullPointerException
at java.io.DataInputStream.read(DataInputStream.java:132)
at org.apache.ode.bpel.o.Serializer.read(Serializer.java:80)
at org.apache.ode.bpel.o.Serializer.<init>(Serializer.java:73)
at
org.apache.ode.bpel.engine.BpelProcess.deserializeCompiledProcess(BpelProcess.java:417)
at
org.apache.ode.bpel.engine.BpelProcess.access$800(BpelProcess.java:75)
at
org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:685)
... 39 more
Results :
Tests in error:
testInvoke(helloworld.BPELHelloWorldTestCase)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
--
Jean-Sebastien
Re: BPEL Implementation: Latest changes mean no need for deploy.xml !!
Posted by Matthieu Riou <ma...@offthelip.org>.
Actually the process runtime also needs a transaction when you deploy a
process. It persists some data structures needed to optimize message routing
and correlation extraction (basically which receives we can route to).
Cheers,
Matthieu
On Tue, May 27, 2008 at 4:08 PM, Luciano Resende <lu...@gmail.com>
wrote:
> The transaction is needed by the ProcessStore in order to persist the
> process information.
> I will research and see if there are any workarounds.
>
> On Tue, May 27, 2008 at 2:21 PM, Mike Edwards
> <mi...@gmail.com> wrote:
> > Luciano Resende wrote:
> >>
> >> Very good news Mike !!! I hope to start working on the db issues as
> >> soon as I get some free cycles.
> >>
> >
> > Luciano,
> >
> > There is something that you might be able to help me with right away.
> >
> > I am running into intermittent problems with transactions in the
> > registration of a BPEL process with the ODE server. The transaction
> causing
> > the problem seems to be the one in the BPELImplementationProvider start()
> > method.
> >
> > What is this transaction for?
> >
> > try {
> > txMgr.begin();
> > odeServer.registerTuscanyRuntimeComponent(implementation.getProcess(),
> > component);
> >
> > odeServer.deploy(new ODEDeployment(deploymentDir), implementation );
> > txMgr.commit();
> > } catch (Exception e) {
> > e.printStackTrace();
> > txMgr.rollback();
> > }
> >
> >
> > Will it cause a problem if I remove this transaction? To me it does not
> > seem to provide any value when the Process is being supplied by Tuscany.
> I
> > can't see any requirement for it in the ODE documentation.
> >
> >
> > Yours, Mike.
> >
> >
>
>
>
> --
> Luciano Resende
> Apache Tuscany Committer
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://lresende.blogspot.com/
>
Re: BPEL Implementation: Latest changes mean no need for deploy.xml !!
Posted by Luciano Resende <lu...@gmail.com>.
The transaction is needed by the ProcessStore in order to persist the
process information.
I will research and see if there are any workarounds.
On Tue, May 27, 2008 at 2:21 PM, Mike Edwards
<mi...@gmail.com> wrote:
> Luciano Resende wrote:
>>
>> Very good news Mike !!! I hope to start working on the db issues as
>> soon as I get some free cycles.
>>
>
> Luciano,
>
> There is something that you might be able to help me with right away.
>
> I am running into intermittent problems with transactions in the
> registration of a BPEL process with the ODE server. The transaction causing
> the problem seems to be the one in the BPELImplementationProvider start()
> method.
>
> What is this transaction for?
>
> try {
> txMgr.begin();
> odeServer.registerTuscanyRuntimeComponent(implementation.getProcess(),
> component);
>
> odeServer.deploy(new ODEDeployment(deploymentDir), implementation );
> txMgr.commit();
> } catch (Exception e) {
> e.printStackTrace();
> txMgr.rollback();
> }
>
>
> Will it cause a problem if I remove this transaction? To me it does not
> seem to provide any value when the Process is being supplied by Tuscany. I
> can't see any requirement for it in the ODE documentation.
>
>
> Yours, Mike.
>
>
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/
Re: BPEL Implementation: Latest changes mean no need for deploy.xml
!!
Posted by Mike Edwards <mi...@gmail.com>.
Luciano Resende wrote:
> Very good news Mike !!! I hope to start working on the db issues as
> soon as I get some free cycles.
>
Luciano,
There is something that you might be able to help me with right away.
I am running into intermittent problems with transactions in the registration of a BPEL process with
the ODE server. The transaction causing the problem seems to be the one in the
BPELImplementationProvider start() method.
What is this transaction for?
try {
txMgr.begin();
odeServer.registerTuscanyRuntimeComponent(implementation.getProcess(), component);
odeServer.deploy(new ODEDeployment(deploymentDir), implementation );
txMgr.commit();
} catch (Exception e) {
e.printStackTrace();
txMgr.rollback();
}
Will it cause a problem if I remove this transaction? To me it does not seem to provide any value
when the Process is being supplied by Tuscany. I can't see any requirement for it in the ODE
documentation.
Yours, Mike.
Re: BPEL Implementation: Latest changes mean no need for deploy.xml !!
Posted by Luciano Resende <lu...@gmail.com>.
Very good news Mike !!! I hope to start working on the db issues as
soon as I get some free cycles.
On Tue, May 27, 2008 at 10:02 AM, Mike Edwards
<mi...@gmail.com> wrote:
> Folks,
>
> I've just deployed some changes to SVN for the BPEL implementation that
> remove the need to supply a deploy.xml file alongside your BPEL process
> script.
>
> So now, all you need is your BPEL process script, the related WSDL - and the
> composite file that defines the SCA component(s) - and you're done.
>
> Enjoy!
>
>
> Yours, Mike.
>
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/