You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by sam tam <sa...@gmail.com> on 2007/06/15 16:06:43 UTC

llegalStateException: In-memory instances are never serialized -( BpelActivities20Test.java )

Hello ,

I finally got ODE builded successfully and started off with the module
bpel-test\ BasicActivities20Test.java

Initially i was missing some jar and i figured it out !

Now while am running this i get : llegalStateException: In-memory instances
are never serialized
This is caught in ProcessInstanceDaoImpl.java !

Below is the trace :

_______________________________________________________________________________________________________________

ERROR - GeronimoLog.error(108) | Scheduled job failed;
jobDetail={type=INVOKE_INTERNAL, mexid=4611686018427387903, pid={
http://ode/bpel/unit-test}HelloWorld2-1}
java.lang.IllegalStateException: In-memory instances are never serialized
    at org.apache.ode.bpel.memdao.ProcessInstanceDaoImpl.getExecutionState(
ProcessInstanceDaoImpl.java:128)
    at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.<init>(
BpelRuntimeContextImpl.java:130)
    at org.apache.ode.bpel.engine.BpelProcess.createRuntimeContext(
BpelProcess.java:602)
    at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
PartnerLinkMyRoleImpl.java:179)
    at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java
:154)
    at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(
BpelProcess.java:287)
    at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
BpelEngineImpl.java:311)
    at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
BpelServerImpl.java:390)
    at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:235)
    at org.apache.ode.il.MockScheduler.access$000(MockScheduler.java:43)
    at org.apache.ode.il.MockScheduler$2$1.call(MockScheduler.java:84)
    at org.apache.ode.il.MockScheduler.execTransaction(MockScheduler.java
:108)
    at org.apache.ode.il.MockScheduler$3.call(MockScheduler.java:121)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
ERROR - GeronimoLog.error(108) | Caught an exception during transaction
java.lang.RuntimeException: Scheduled transaction failed unexpectedly:
transaction will not be retried!.
    at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:237)
    at org.apache.ode.il.MockScheduler.access$000(MockScheduler.java:43)
    at org.apache.ode.il.MockScheduler$2$1.call(MockScheduler.java:84)
    at org.apache.ode.il.MockScheduler.execTransaction(MockScheduler.java
:108)
    at org.apache.ode.il.MockScheduler$3.call(MockScheduler.java:121)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.ode.bpel.iapi.Scheduler$JobProcessorException:
java.lang.IllegalStateException: In-memory instances are never serialized
    at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
BpelEngineImpl.java:321)
    at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
BpelServerImpl.java:390)
    at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:235)
    ... 9 more
Caused by: java.lang.IllegalStateException: In-memory instances are never
serialized
    at org.apache.ode.bpel.memdao.ProcessInstanceDaoImpl.getExecutionState(
ProcessInstanceDaoImpl.java:128)
    at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.<init>(
BpelRuntimeContextImpl.java:130)
    at org.apache.ode.bpel.engine.BpelProcess.createRuntimeContext(
BpelProcess.java:602)
    at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
PartnerLinkMyRoleImpl.java:179)
    at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java
:154)
    at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(
BpelProcess.java:287)
    at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
BpelEngineImpl.java:311)
    ... 11 more



_______________________________________________________________________________________________________

Kindly shed some info on this  !

Sam..

Re: llegalStateException: In-memory instances are never serialized -( BpelActivities20Test.java )

Posted by sam tam <sa...@gmail.com>.
Thank You Matthieu !

I cleaned - updated and builded again . Now Bpel-test module works fine !

Sam..

On 6/16/07, Matthieu Riou <ma...@gmail.com> wrote:
>
> There was a couple of bugs in the test framework that appeared because of
> other modifications. Now the whole test case is passing for me (even if a
> few others are still failing).
>
> Matthieu
>
> On 6/15/07, sam tam <sa...@gmail.com> wrote:
> >
> > Hello ,
> >
> > I finally got ODE builded successfully and started off with the module
> > bpel-test\ BasicActivities20Test.java
> >
> > Initially i was missing some jar and i figured it out !
> >
> > Now while am running this i get : llegalStateException: In-memory
> > instances
> > are never serialized
> > This is caught in ProcessInstanceDaoImpl.java !
> >
> > Below is the trace :
> >
> >
> >
> _______________________________________________________________________________________________________________
> >
> > ERROR - GeronimoLog.error(108) | Scheduled job failed;
> > jobDetail={type=INVOKE_INTERNAL, mexid=4611686018427387903, pid={
> > http://ode/bpel/unit-test}HelloWorld2-1}
> > java.lang.IllegalStateException: In-memory instances are never
> serialized
> >     at
> org.apache.ode.bpel.memdao.ProcessInstanceDaoImpl.getExecutionState
> > (
> > ProcessInstanceDaoImpl.java:128)
> >     at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.<init>(
> > BpelRuntimeContextImpl.java:130)
> >     at org.apache.ode.bpel.engine.BpelProcess.createRuntimeContext(
> > BpelProcess.java:602)
> >     at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
> > PartnerLinkMyRoleImpl.java:179)
> >     at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(
> > BpelProcess.java
> > :154)
> >     at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(
> > BpelProcess.java:287)
> >     at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> > BpelEngineImpl.java:311)
> >     at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
> > BpelServerImpl.java:390)
> >     at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:235)
> >     at org.apache.ode.il.MockScheduler.access$000(MockScheduler.java:43)
> >     at org.apache.ode.il.MockScheduler$2$1.call(MockScheduler.java:84)
> >     at org.apache.ode.il.MockScheduler.execTransaction(
> MockScheduler.java
> > :108)
> >     at org.apache.ode.il.MockScheduler$3.call(MockScheduler.java:121)
> >     at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
> >     at java.util.concurrent.FutureTask.run(Unknown Source)
> >     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> > Source)
> >     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
> >     at java.lang.Thread.run(Unknown Source)
> > ERROR - GeronimoLog.error(108) | Caught an exception during transaction
> > java.lang.RuntimeException: Scheduled transaction failed unexpectedly:
> > transaction will not be retried!.
> >     at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:237)
> >     at org.apache.ode.il.MockScheduler.access$000(MockScheduler.java:43)
> >     at org.apache.ode.il.MockScheduler$2$1.call(MockScheduler.java:84)
> >     at org.apache.ode.il.MockScheduler.execTransaction(
> MockScheduler.java
> > :108)
> >     at org.apache.ode.il.MockScheduler$3.call(MockScheduler.java:121)
> >     at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
> >     at java.util.concurrent.FutureTask.run(Unknown Source)
> >     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> > Source)
> >     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
> >     at java.lang.Thread.run(Unknown Source)
> > Caused by: org.apache.ode.bpel.iapi.Scheduler$JobProcessorException:
> > java.lang.IllegalStateException: In-memory instances are never
> serialized
> >     at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> > BpelEngineImpl.java:321)
> >     at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
> > BpelServerImpl.java:390)
> >     at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:235)
> >     ... 9 more
> > Caused by: java.lang.IllegalStateException: In-memory instances are
> never
> > serialized
> >     at
> org.apache.ode.bpel.memdao.ProcessInstanceDaoImpl.getExecutionState
> > (
> > ProcessInstanceDaoImpl.java:128)
> >     at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.<init>(
> > BpelRuntimeContextImpl.java:130)
> >     at org.apache.ode.bpel.engine.BpelProcess.createRuntimeContext(
> > BpelProcess.java:602)
> >     at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
> > PartnerLinkMyRoleImpl.java:179)
> >     at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(
> > BpelProcess.java
> > :154)
> >     at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(
> > BpelProcess.java:287)
> >     at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> > BpelEngineImpl.java:311)
> >     ... 11 more
> >
> >
> >
> >
> >
> _______________________________________________________________________________________________________
> >
> > Kindly shed some info on this  !
> >
> > Sam..
> >
>



-- 
Catch Me @: www.samjeyam.co.nr

The Engine is the Heart of the Plane
   but
       Pilot is the Soul...

\___(0)___/
      ./ \.

Re: llegalStateException: In-memory instances are never serialized -( BpelActivities20Test.java )

Posted by Matthieu Riou <ma...@gmail.com>.
There was a couple of bugs in the test framework that appeared because of
other modifications. Now the whole test case is passing for me (even if a
few others are still failing).

Matthieu

On 6/15/07, sam tam <sa...@gmail.com> wrote:
>
> Hello ,
>
> I finally got ODE builded successfully and started off with the module
> bpel-test\ BasicActivities20Test.java
>
> Initially i was missing some jar and i figured it out !
>
> Now while am running this i get : llegalStateException: In-memory
> instances
> are never serialized
> This is caught in ProcessInstanceDaoImpl.java !
>
> Below is the trace :
>
>
> _______________________________________________________________________________________________________________
>
> ERROR - GeronimoLog.error(108) | Scheduled job failed;
> jobDetail={type=INVOKE_INTERNAL, mexid=4611686018427387903, pid={
> http://ode/bpel/unit-test}HelloWorld2-1}
> java.lang.IllegalStateException: In-memory instances are never serialized
>     at org.apache.ode.bpel.memdao.ProcessInstanceDaoImpl.getExecutionState
> (
> ProcessInstanceDaoImpl.java:128)
>     at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.<init>(
> BpelRuntimeContextImpl.java:130)
>     at org.apache.ode.bpel.engine.BpelProcess.createRuntimeContext(
> BpelProcess.java:602)
>     at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
> PartnerLinkMyRoleImpl.java:179)
>     at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(
> BpelProcess.java
> :154)
>     at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(
> BpelProcess.java:287)
>     at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> BpelEngineImpl.java:311)
>     at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
> BpelServerImpl.java:390)
>     at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:235)
>     at org.apache.ode.il.MockScheduler.access$000(MockScheduler.java:43)
>     at org.apache.ode.il.MockScheduler$2$1.call(MockScheduler.java:84)
>     at org.apache.ode.il.MockScheduler.execTransaction(MockScheduler.java
> :108)
>     at org.apache.ode.il.MockScheduler$3.call(MockScheduler.java:121)
>     at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>     at java.util.concurrent.FutureTask.run(Unknown Source)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>     at java.lang.Thread.run(Unknown Source)
> ERROR - GeronimoLog.error(108) | Caught an exception during transaction
> java.lang.RuntimeException: Scheduled transaction failed unexpectedly:
> transaction will not be retried!.
>     at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:237)
>     at org.apache.ode.il.MockScheduler.access$000(MockScheduler.java:43)
>     at org.apache.ode.il.MockScheduler$2$1.call(MockScheduler.java:84)
>     at org.apache.ode.il.MockScheduler.execTransaction(MockScheduler.java
> :108)
>     at org.apache.ode.il.MockScheduler$3.call(MockScheduler.java:121)
>     at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>     at java.util.concurrent.FutureTask.run(Unknown Source)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>     at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.ode.bpel.iapi.Scheduler$JobProcessorException:
> java.lang.IllegalStateException: In-memory instances are never serialized
>     at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> BpelEngineImpl.java:321)
>     at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
> BpelServerImpl.java:390)
>     at org.apache.ode.il.MockScheduler.doExecute(MockScheduler.java:235)
>     ... 9 more
> Caused by: java.lang.IllegalStateException: In-memory instances are never
> serialized
>     at org.apache.ode.bpel.memdao.ProcessInstanceDaoImpl.getExecutionState
> (
> ProcessInstanceDaoImpl.java:128)
>     at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.<init>(
> BpelRuntimeContextImpl.java:130)
>     at org.apache.ode.bpel.engine.BpelProcess.createRuntimeContext(
> BpelProcess.java:602)
>     at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
> PartnerLinkMyRoleImpl.java:179)
>     at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(
> BpelProcess.java
> :154)
>     at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(
> BpelProcess.java:287)
>     at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> BpelEngineImpl.java:311)
>     ... 11 more
>
>
>
>
> _______________________________________________________________________________________________________
>
> Kindly shed some info on this  !
>
> Sam..
>