You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Laurent Medioni <lm...@odyssey-group.com> on 2008/07/29 13:29:02 UTC
Cocoon 2.1.11: Classcast when calling a continuation twice, Help !
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.getObjectMod
el(FOM_Cocoon.java:663)
at
org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.popCallConte
xt(FOM_Cocoon.java:239)
at
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpret
er.handleContinuation(FOM_JavaScriptInterpreter.java:852)
at
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invo
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: RE: Cocoon 2.1.11: Classcast when calling a continuation twice, Help !
Posted by Laurent Medioni <lm...@odyssey-group.com>.
I am patching FOM_WebContinuation only to make FOM_WebContinuation$UserObject public so I can extend it...
We have an in-house pageflow implementation built on top of continuations and I can use the extended object in it, without interfering with the FOM internal stuff (it is still a UserObject for FOM).
Making FOM_WebContinuation$UserObject public answers my requirement but maybe only for my own very specific situation ?
Thanks,
Laurent
-----Original Message-----
From: "Jörg Heinicke" [mailto:Joerg.Heinicke@gmx.de]
Sent: mercredi, 30. juillet 2008 11:13
To: users@cocoon.apache.org
Subject: Re: RE: Cocoon 2.1.11: Classcast when calling a continuation twice, Help !
-------- Original-Nachricht --------
> Datum: Wed, 30 Jul 2008 09:53:46 +0200
> Von: "Laurent Medioni"
> Pity that we cannot extend FOM_WebContinuation$UserObject (without
> patching the class) to hold non Scriptable values (only used on the Java side)...
Any special requirements we can make that simpler for you? Can you provide a patch for increasing extensibility?
Joerg
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
____________________________________________________________
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: RE: Cocoon 2.1.11: Classcast when calling a continuation twice,
Help !
Posted by Jörg Heinicke <Jo...@gmx.de>.
-------- Original-Nachricht --------
> Datum: Wed, 30 Jul 2008 09:53:46 +0200
> Von: "Laurent Medioni"
> Pity that we cannot extend FOM_WebContinuation$UserObject (without
> patching the class) to hold non Scriptable values (only used on the Java side)...
Any special requirements we can make that simpler for you? Can you provide a patch for increasing extensibility?
Joerg
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Cocoon 2.1.11: Classcast when calling a continuation twice, Help !
Posted by Laurent Medioni <lm...@odyssey-group.com>.
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:lmedioni@odyssey-group.com]
Sent: mardi, 29. juillet 2008 14:38
To: users@cocoon.apache.org
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:j.joachimsthal@onehippo.com]
Sent: mardi, 29. juillet 2008 14:04
To: users@cocoon.apache.org
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:Andre.Davignon@developpement-durable.gouv.fr]
> Sent: dinsdag 29 juli 2008 13:34
> To: users@cocoon.apache.org
> 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
> r@cocoon.apache.org)
> 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: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
____________________________________________________________
* 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
____________________________________________________________
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Cocoon 2.1.11: Classcast when calling a continuation twice, Help !
Posted by Laurent Medioni <lm...@odyssey-group.com>.
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:j.joachimsthal@onehippo.com]
Sent: mardi, 29. juillet 2008 14:04
To: users@cocoon.apache.org
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:Andre.Davignon@developpement-durable.gouv.fr]
> Sent: dinsdag 29 juli 2008 13:34
> To: users@cocoon.apache.org
> 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
> r@cocoon.apache.org)
> 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: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
____________________________________________________________
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Cocoon 2.1.11: Classcast when calling a continuation twice, Help !
Posted by Jasha Joachimsthal <j....@onehippo.com>.
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:Andre.Davignon@developpement-durable.gouv.fr]
> Sent: dinsdag 29 juli 2008 13:34
> To: users@cocoon.apache.org
> 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
> r@cocoon.apache.org)
> 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: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon 2.1.11: Classcast when calling a continuation twice, Help
!
Posted by DAVIGNON Andre - CETE NP/DIODé/PANDOC <An...@developpement-durable.gouv.fr>.
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.fr@cocoon.apache.org)
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.getObjectMod
> el(FOM_Cocoon.java:663)
> at
> org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.popCallConte
> xt(FOM_Cocoon.java:239)
> at
> org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpret
> er.handleContinuation(FOM_JavaScriptInterpreter.java:852)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invo
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org