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