Ok, found it, not a Cocoon or Rhino issue.
Someone had patched in the past a Cocoon class on our side and I did not 
reapply the patch...

Pity that we cannot extend FOM_WebContinuation$UserObject (without patching the 
class) to hold non Scriptable values (only used on the Java side)...

Thanks,
Laurent

-----Original Message-----
From: Laurent Medioni [mailto:[EMAIL PROTECTED] 
Sent: mardi, 29. juillet 2008 14:38
To: [email protected]
Subject: RE: Cocoon 2.1.11: Classcast when calling a continuation twice, Help !

Yes, I saw this issue.
It is not exactly the same origin (I do not use Form)... I will next try to 
revert to the previous Rhino, as suggested in the workaround.

I activated the continuation-sharing-bug-compatible="true" on the 
ContinuationManager but it did not solved the issue...

Thanks,
Laurent

-----Original Message-----
From: Jasha Joachimsthal [mailto:[EMAIL PROTECTED] 
Sent: mardi, 29. juillet 2008 14:04
To: [email protected]
Subject: RE: Cocoon 2.1.11: Classcast when calling a continuation twice, Help !

Yes in some (maybe most) cases it works in 2.1.11. However there is an open 
issue [1] on continuations. Maybe that's also a cause of your problem. I can't 
remember in which cases it failed exactly. I thought it happened when you had a 
cross sitemap continuation or tried to pass a continuation form one form to 
another. 

[1] https://issues.apache.org/jira/browse/COCOON-1579

Regards,

Jasha Joachimsthal 

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-3329 +1 
(707) 773-4646



> -----Original Message-----
> From: "DAVIGNON Andre - CETE NP/DIODé/PANDOC" 
> [mailto:[EMAIL PROTECTED] 
> Sent: dinsdag 29 juli 2008 13:34
> To: [email protected]
> Subject: Re: Cocoon 2.1.11: Classcast when calling a 
> continuation twice, Help !
> 
> Hi,
> 
> I upgraded a cocoon app with continuations from 2.1.8 to 
> 2.1.11 without this kind of problem.
> 
> Regards.
> 
> André
> 
> 
> Le 29/07/2008 13:29, > Laurent Medioni (par Internet, dépôt
> users-return-95911-andre.davignon=developpement-durable.gouv.f
> [EMAIL PROTECTED])
> a écrit  :
> > Hello,
> > Another one when migrating from 2.1.5 to 2.1.11...
> > 
> > When a continuation is requested for the first time: it works well.
> > 
> > When a continuation is requested for the second time:
> > error calling continuation
> > Caused by: java.lang.NullPointerException
> >     at
> > 
> org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.getObjectM
> > od
> > el(FOM_Cocoon.java:663)
> >     at
> > 
> org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.popCallCon
> > te
> > xt(FOM_Cocoon.java:239)
> >     at
> > 
> org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpr
> > et
> > er.handleContinuation(FOM_JavaScriptInterpreter.java:852)
> >     at
> > 
> org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.in
> > vo
> > ke(CallFunctionNode.java:124)
> >     ... 27 more
> > 
> > After debugging a bit in FOM_WebContinuation it appears 
> that I have a 
> > ClassCast in getPageLocal because wk.getUserObject() returns a 
> > LinkedList and not a UserObject...
> > 
> > I am sure someone else would have noticed if continuations 
> were broken 
> > in 2.1.11 so I must have something wrong...
> > 
> > Anybody having working continuations with 2.1.11 ?
> > 
> > Thanks,
> > Laurent
> > 
> > ____________________________________________________________
> > 
> > * This email and any files transmitted with it are 
> CONFIDENTIAL and intended
> >   solely for the use of the individual or entity to which 
> they are addressed.
> > * Any unauthorized copying, disclosure, or distribution of 
> the material within
> >   this email is strictly forbidden.
> > * Any views or opinions presented within this e-mail are 
> solely those of the
> >   author and do not necessarily represent those of Odyssey 
> Financial 
> > Technologies SA unless otherwise specifically stated.
> > * An electronic message is not binding on its sender. Any 
> message referring to
> >   a binding engagement must be confirmed in writing and duly signed.
> > * If you have received this email in error, please notify 
> the sender immediately
> >   and delete the original.
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


____________________________________________________________

* This email and any files transmitted with it are CONFIDENTIAL and intended
  solely for the use of the individual or entity to which they are addressed.
* Any unauthorized copying, disclosure, or distribution of the material within
  this email is strictly forbidden.
* Any views or opinions presented within this e-mail are solely those of the
  author and do not necessarily represent those of Odyssey Financial
Technologies SA unless otherwise specifically stated.
* An electronic message is not binding on its sender. Any message referring to
  a binding engagement must be confirmed in writing and duly signed.
* If you have received this email in error, please notify the sender immediately
  and delete the original.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


____________________________________________________________

• This email and any files transmitted with it are CONFIDENTIAL and intended
  solely for the use of the individual or entity to which they are addressed.
• Any unauthorized copying, disclosure, or distribution of the material within
  this email is strictly forbidden.
• Any views or opinions presented within this e-mail are solely those of the
  author and do not necessarily represent those of Odyssey Financial
Technologies SA unless otherwise specifically stated.
• An electronic message is not binding on its sender. Any message referring to
  a binding engagement must be confirmed in writing and duly signed.
• If you have received this email in error, please notify the sender immediately
  and delete the original.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to