Hi David,
we have a huge product based on cocoon 2.1.11 / spring / hibernate and
started 5 years ago with the flowscript / continuations aproach.
meanwhile we introduced adapters to use javaclasses instead of
flowscripts. main reason for not using apples directly was, that we did
not want
Hi Gabriel,
we have a huge product based on cocoon 2.1.11 / spring / hibernate and
started 5 years ago with the flowscript / continuations aproach.
Thanks for that. Every now and then I need a reminder about why Cocoon
is worth continuing ;-)
Regards,
David Legg
the flowscript with?
I thought one of Cocoon's best contributions to humanity was flowscript
together with continuations so I'm curious to learn what you use
instead... are you using Apples?
Regards,
David Legg
-
To unsubscribe
remember adding the Spring configurator namespace to some bean
declaration files to enable placeholder processing, but I can't imagine
that there is a relation …
java.lang.NoClassDefFoundError:
org/mozilla/javascript/continuations/Continuation
at java.lang.Class.getDeclaredMethods0(Native
already worked.
I remember adding the Spring configurator namespace to some bean
declaration files to enable placeholder processing, but I can't imagine
that there is a relation …
java.lang.NoClassDefFoundError:
org/mozilla/javascript/continuations/Continuation
? All I can
tell is that the sitemap + flowscript already worked.
I remember adding the Spring configurator namespace to some bean
declaration files to enable placeholder processing, but I can't imagine
that there is a relation …
java.lang.NoClassDefFoundError:
org/mozilla/javascript/continuations
Hi Cocooners,
I'm profiling my Cocoon 2.2 webapp because I'm facing a memory leak.
I encountered in my Heap Memory a lot of Continuations that are never deleted.
I analyzed the memory after two hours of inactivity and, even after
having performed some Garbage Collections, I found Continuations
-with-continuations-tp20276019p20276019.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I was currently analysing some of my customers bug reports and in the
course of this had to find out that there is a small bug in the
JavaFlowInterpreter code.
The parameter timeToLive is fixed to 60 with no possibility of
changing this. If I should supply a patch, I willl gladly do
This has been brought up already a couple of times ...go for it
cheers
--
Torsten
On 12.06.2007, at 11:05, Christofer Dutz wrote:
Hi,
I was currently analysing some of my customers bug reports and in
the course of this had to find out that there is a small bug in
the JavaFlowInterpreter
Well the fix works great ;)
simply change Line 52 of
org.apache.cocoon.components.flow.java.JavaInterpreter from
private int timeToLive = 60;
to
private int timeToLive = 0;
makes the WebContinuationManager use the defaultTimeToLive configured in
the sitemap ... don't really know why the
Fair enough :)
On 12.06.2007, at 12:19, Christofer Dutz wrote:
Well the fix works great ;)
simply change Line 52 of
org.apache.cocoon.components.flow.java.JavaInterpreter from
private int timeToLive = 60;
to
private int timeToLive = 0;
makes the WebContinuationManager use the
Derek Hohls wrote:
That works now - only issue is that the continuation no. has
a } at the end - is this a problem:
You can leave the last '}' out, I think it was a typo in my earlier
reply :-)
Regards,
Niels
-
To
Working with Cocoon 2.1.8
I am getting the following error when I try to reference the
continuation variable, used for the form action.
javax.xml.transform.TransformerException: Could not find variable
with the name of continuation
Basically, I am calling the form creation match via
Derek Hohls wrote:
Working with Cocoon 2.1.8
I am getting the following error when I try to reference the
continuation variable, used for the form action.
javax.xml.transform.TransformerException: Could not find variable
with the name of continuation
Basically, I am calling the form
Thanks Niels but I am not sure that is the fault..
I now get the error:
org.xml.sax.SAXParseException: The value of attribute action
associated with an
element type ft:form-template must not contain the '' character.
when I try and use the CDATA wrapper in the stylesheet:
ft:form-template
Hi Derek,
Derek Hohls wrote:
Thanks Niels but I am not sure that is the fault..
I now get the error:
org.xml.sax.SAXParseException: The value of attribute action
associated with an
element type ft:form-template must not contain the '' character.
when I try and use the CDATA wrapper in the
Derek Hohls wrote:
ft:form-template action=![CDATA[#{$continuation/id}.continue}]]
method=POST
BTW if you use ft:continuation-id/ inside your template instead of
putting the continuation ID in the URL, you don't have this problem, and
you get a nicer URL for free :-)
Regards,
Niels
Thanks Niels
That works now - only issue is that the continuation no. has
a } at the end - is this a problem:
action=3d815e...b28.continue}
Thanks
Derek
Niels van Kampenhout [EMAIL PROTECTED] 2007/05/30 04:42 PM
Hi Derek,
Derek Hohls wrote:
Thanks Niels but I am not sure that is the
Diogo Matos wrote:
Hi all,
I have a environment where I run 2 tomcat cocoon instances using session
replication.
Using continuations I have a serious problem as I cannot replicate the
continuationID across the 2 cocoon instances.
Is there anyway of using continuations and replicate them
Hi all,
I have a environment where I run 2 tomcat cocoon instances using session
replication.
Using continuations I have a serious problem as I cannot replicate the
continuationID across the 2 cocoon instances.
Is there anyway of using continuations and replicate them across the 2
cocoon
Diogo Matos wrote:
Hi all,
I have a environment where I run 2 tomcat cocoon instances using
session replication.
Using continuations I have a serious problem as I cannot replicate the
continuationID across the 2 cocoon instances.
Is there anyway of using continuations and replicate them
both, Jörg and Jason! :)
-Ursprüngliche Nachricht-
Von: Jason Johnston [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 18. April 2007 02:17
An: users@cocoon.apache.org
Betreff: Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers?
Joerg Heinicke wrote:
On 18.04.2007 00:21, Jason
Unfortunately, I do no longer have that inside view of CForms. But I
wonder if you have access to the Java API. ContainerWidgets like Form
have a method getChildren() returning an Iterator. With it you can
traverse the form model recursively and store the values by the widgets'
Franziska Witzani franziska.witzani at e-tecture.com writes:
I do. But for example dataModel.getChildren() is not defined (throws an
error).
So you might still be on the JavaScript wrapper hiding the Java API, not the
actual Java object.
In Form.js, it says
function Form(formDefinition) {
Joerg Heinicke joerg.heinicke at gmx.de writes:
I really wondered about this one as well. What's Widget actually? There is no
import in this file, only thing I found was the reference to/ defineClass of
ScriptableWidget.
So, where is the class definition of the object that is returned by
In fact, I already tried to change the String that is returned by getClassName
of ScriptableWidget like this:
public String getClassName() {
return _Widget;
}
Of course I deleted the build-directory and rebuilt Cocoon afterwards.
But toString() still returns the String [object
On 17.04.2007 16:28, Franziska Witzani wrote:
Invocation of getClassName returns an error.
org.mozilla.javascript.EcmaError: TypeError: Cannot find function
getClassName.
(file:/D:/apache-tomcat-6.0.10/webapps/dibatest/exKo/flows/exKo.js#73)
Either the loop is not executed if written like
On Tue, 17 Apr 2007 22:23:42 +0200, Joerg Heinicke [EMAIL PROTECTED] wrote:
On 17.04.2007 16:28, Franziska Witzani wrote:
Invocation of getClassName returns an error.
org.mozilla.javascript.EcmaError: TypeError: Cannot find function
getClassName.
On 18.04.2007 00:21, Jason Johnston wrote:
If the goal is to be able to traverse the actual Java objects, you
can use form.getWidget() rather than form.getModel(). That returns
the actual org.apache.cocoon.forms.formmodel.Form object rather than
a ScriptableWidget wrapper.
Why do you let me
Joerg Heinicke wrote:
On 18.04.2007 00:21, Jason Johnston wrote:
If the goal is to be able to traverse the actual Java objects, you
can use form.getWidget() rather than form.getModel(). That returns
the actual org.apache.cocoon.forms.formmodel.Form object rather than
a ScriptableWidget
back with continuations, the contents of this object are always set
back to the state they had, when the called continuation had been created.
-- And I have another question:
-- How can I serialize the contents of a CForms-Datamodel which you get
-from formObject.getModel
On 16.04.2007 10:29, Franziska Witzani wrote:
As I explained before, I need to serialize the contents of the data model into the pageLocal-object.
dataModel = myCFormsFormObject.getModel();
So, what I need is more information about the data model object.
You can read the values from it, if
On 13.04.2007 13:43, Franziska Witzani wrote:
@Joerg: what you said about the difference between values of variables and
references to objects is true for saving them in the PageLocal-Object.
In Continuations Flowscript-Variables seem to be only referenced as well.
They might be stored
Hi Jason, hi Joerg!
cocoon.createPageLocal() was exactly what I've been looking for. Thanks a lot!
@Joerg: what you said about the difference between values of variables and
references to objects is true for saving them in the PageLocal-Object.
In Continuations Flowscript-Variables seem
back if you go back with
continuations, but always hold the highest value.)
Is there a way to change that by configuring something, or will I have to
change the Cocoon-source code or find another way around it?
Regards,
Franziska Witzani
() it will not be set back if you go back with
continuations, but always hold the highest value.)
They are indeed pointers, not snapshots. But this is only true for
objects. AFAIK there is no way to point to a primitive type, they are
always passed by value, not by reference. This means a simple counter
should
, if you have a counter, which is incremented after each
sendPageAndWait() it will not be set back if you go back with
continuations, but always hold the highest value.)
They are indeed pointers, not snapshots. But this is only true for
objects. AFAIK there is no way to point to a primitive type
I recognise that continuations and Flow
eliminate the need for an FSM at the web navigation level,
Warrell
-Original Message-
From: Dev at weitling [mailto:[EMAIL PROTECTED]
Sent: 06 March 2007 12:12
To: Users at Cocoon
Subject: Misusing Flowscript Continuations
Hi,
I want to model
On 04.04.2007, at 11:12, Warrell wrote:
I wonder if you have looked at the SCXML Apache project
http://jakarta.apache.org/commons/scxml/. This offers a very robust
implementation of a an FSM specified in XML.
*shiver*
I'm thinking you could
implement your persistent FSM in this and then
]
Gesendet: Donnerstag, 8. März 2007 15:46
An: users@cocoon.apache.org
Betreff: Question on Ajax and continuations
I just have a question on Ajax processing to help me understand what's
happening. I'm using 2.1.9.
Here's the scenario:
- an on-change listener set values on a form
I just have a question on Ajax processing to help me understand what's
happening. I'm using 2.1.9.
Here's the scenario:
- an on-change listener set values on a form
- form is submitted
- back button on browser
- the values are no longer set
When
Hi,
I want to model a kind of finite state machine elegantly via a
Flowscript. My problem: The whole process is not done in one session but
could last over multiple logins over days or weeks.
To be more precise: I have an object several users will touch one by
one, each changing the state of the
Dev at weitling wrote:
Any idea how to misuse FlowScript is appreciated :-)
I don't know if this can be considered misuse of flowscript.
It's an email confirmation thingy made as a trivial state machine.
The interesting part is the interaction of the step variable with
the continuation. Here
Hi Tobia,
I don't know if this can be considered misuse of flowscript.
We are at a misunderstanding now...
It's not about email. It's about an object (here a question for an
examination) going through a process of creation, editing, rating,
translating by several users (authors, experts,
On 3/6/07, Dev at weitling [EMAIL PROTECTED] wrote:
...My idea was to model that process as flow handling the state as
continuation entries saved in the database. When a user has a question
on his to-do-list the database-loaded continuation just continues in the
flow
You might be better
Dev at weitling wrote:
My idea was to model that process as flow handling the state as
continuation entries saved in the database.
I don't think it's a good idea to save (serialized) continuation objects
in a database. What happens when you restart Cocoon? What happens when
you upgrade Cocoon
You might be better served with a workflow engine, see
http://wiki.apache.org/cocoon/Workflow for example.
Looks great. I start digging thru! (Solving a problem by lavishing with
solutions ;-)
Thanks,
Florian
-
To
I don't think it's a good idea to save (serialized) continuation objects
in a database. What happens when you restart Cocoon? What happens when
you upgrade Cocoon / Rhino / whatever?
Those questions have been gnawing on me, too. I'm in search of an easy
way to model a state machine as
of the step variable with
the continuation. Here it is in pseudo-flowscript:
That's a misuse of continuations. Why the steps?
That's what the continuation will do for you.
Think outside of the state machine
showPasswordForm();
sendEmail();
// now the email will have the link to the continuation
On 06.03.2007, at 16:46, Tobia wrote:
Dev at weitling wrote:
My idea was to model that process as flow handling the state as
continuation entries saved in the database.
I don't think it's a good idea to save (serialized) continuation
objects
in a database. What happens when you restart
Torsten Curdt wrote:
That's a misuse of continuations. Why the steps?
That's what the continuation will do for you.
Think outside of the state machine
showPasswordForm();
sendEmail();
// now the email will have the link to the continuation
showSentPage();
// execution will suspend
On 06.03.2007, at 18:32, Tobia wrote:
Torsten Curdt wrote:
That's a misuse of continuations. Why the steps?
That's what the continuation will do for you.
Think outside of the state machine
showPasswordForm();
sendEmail();
// now the email will have the link to the continuation
and continuations...
I am not sure, but I somehow recall that the execution thread is not literally
saved, but that the variables in the context are saved and restored and that
the function is re-executed, but with a special flag that makes it jump to the
position where the previous request left
functions and continuations...
hi everyone!
i'm trying to add local functions to a flowscript in order to make it
more maintainable.
the code looks like this:
function executeUsecase() {
var someLocalVar;
function foo() {
...
}
foo
]
Verzonden: zaterdag 14 oktober 2006 15:22
Aan: users@cocoon.apache.org
Onderwerp: inner functions and continuations...
hi everyone!
i'm trying to add local functions to a flowscript in order to
make it more maintainable.
the code looks like this:
function executeUsecase
hi everyone!
i'm trying to add local functions to a flowscript in order to make it
more maintainable.
the code looks like this:
function executeUsecase() {
var someLocalVar;
function foo() {
...
}
foo();
sendPageAndWait(/some/pipeline);
manually to
http://.../cocoon/portal/path-to-my-coplet-pipeline/continuation-id.continue
everything works fine, but I am outside of the portal...
What is the way to get cforms + continuations working in the portal?
(cocoon 2.1.10-dev)
Thanks in advance!
Regards,
Wadim
everything works fine, but I am outside of the portal...
What is the way to get cforms + continuations working in the portal?
(cocoon 2.1.10-dev)
Thanks in advance!
Regards,
Wadim
__
Verschicken Sie romantische, coole und witzige
...
What is the way to get cforms + continuations working in the portal?
(cocoon 2.1.10-dev)
Thanks in advance!
Regards,
Wadim
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http
Toby wrote:
Leszek wrote:
Simply speaking: page local is a special variable that has different
values in different continuations.
So it seems that a continuation by default only saves the program
counter (or equivalent notion in JS) but not the local variables.
This is a bit counter
different
values in different continuations. This is both neat and dangerous in
terms of resource consumption.
BTW, resource considerations aside, you need global
(continuation-independent) state for things like being able
to detect
when the user has re-submitted a form (e.g
Leszek wrote:
Simply speaking: page local is a special variable that has different
values in different continuations.
So it seems that a continuation by default only saves the program
counter (or equivalent notion in JS) but not the local variables.
This is a bit counter-intuitive
Leszek wrote:
Simply speaking: page local is a special variable that has different
values in different continuations.
So it seems that a continuation by default only saves the program
counter (or equivalent notion in JS) but not the local variables.
This is a bit counter-intuitive
/snip
Continuations are for managing flow, not keeping full state
because it
would consume too much resources. In 99% you do not need variables to
have values bound to a specific continuation. Still you have
an option
to do so:
var pageLocal = cocoon.createPageLocal();
pageLocal.a
On Aug 1, 2006, at 1:07 AM, Ard Schrijvers wrote:
I never used (saw :-) ) this createPageLocal untill now,
Huh, I sent a reply on this thread suggesting createPageLocal() last
week, oh well... :-)
and looked at http://cocoon.apache.org/2.1/userdocs/flow/api.html, but
I don't really get
Jason Johnston wrote:
First you assign the 'useless' variable a String value, then you
create the continuation. When you resume the continuation the first
time, you re-assign the 'useless' variable so that it now holds an
Array value (String.split() returns an Array). When you resume the
Hi Toby,
I think you are right. What a continuation does (should do) is dump the
local variables and restore them before restarting the flow. This means
that if you write var a = 1; then create a continuation, when you return
to that continuation a should be 1 again, even if in other continuations
Hello Simone,
talking about continuations, did you already find a solid way to handle high
traffic sites with many concurrent continuations and memory useage? It bothers
me a little that when building sites, we have to keep track of the number of
continuations (we had a large site with many
I just came across a very strange error, possibly a bug in Cocoon!
It's easy to reproduce: edit samples/blocks/forms/flow/registration.js
from Cocoon 2.1.8, adding the lines marked with ''
function registration() {
var useless = 'one two';
var form = new
Jason Johnston wrote:
First you assign the 'useless' variable a String value, then you
create the continuation. When you resume the continuation the first
time, you re-assign the 'useless' variable so that it now holds an
Array value (String.split() returns an Array). When you resume the
On Jul 25, 2006, at 7:34 AM, Toby wrote:
I just came across a very strange error, possibly a bug in Cocoon!
Nope, as Jason explained, this is the correct behavior.
The cocoon.createPageLocal() method might help you, see here:
http://cocoon.apache.org/2.1/userdocs/flow/api.html
It seems that when I use continuations that it is losing a lot of
state. My method and environment sets up a lot of information, but all
of it is lost every time I resume the continuation. Yet with CForms it
seems to save state properly. What gives? Is there some manual method
of saving
Hi Berin,
what do you mean with state? Could you post an example of code and point
out the unexpected behaviour?
Simone
Berin Loritsch wrote:
It seems that when I use continuations that it is losing a lot of
state. My method and environment sets up a lot of information, but
all
Simone Gianni wrote:
Hi Berin,
what do you mean with state? Could you post an example of code and point
out the unexpected behaviour?
I decided to work without them so the code is now gone. However, as an
example, I had an object called CountryHotTopics which had a list of
tags and
Hi,
I have a flow in which I create a form. When this form is displayed, I
like to keep the continuation to stay alive for as long as the user is
filling in that form (which can take more than one hour, depends on how
many times the user is refilling his cup of tea or coffee, and how many
done that trick also for a few sites but major problem here might consists
that the client browser must have javascript enabled (to force the reload
of the frame) and it must support frames (which is ugly) or iframes (which
is IE only)
can't you just always keep the continuations alive; so
and supported by more browsers (ie 3.0+,
nn 6.0+, moz 1.0+, ff 1.0+ , op 4.0+), besides this our customers
mostly use IE 6 or up with javascript enabled (needed in other webapps
we use).
can't you just always keep the continuations alive; so setting no session
timeouts; or you might even
therefore defined a timeout
of 4 hours, as follows:
- In cocoon.xconf, I set the continuations-manager's time-to-live
attribute to 1440 (4 hours * 3600 seconds * 1000 milliseconds :-)
I also set the session-bound-continuations attribute to true, as
there is no point leaving continuations around
I don't want my sessions/continuations to have long time-out periods for
security reasons. It's ok to have them log in again if their session is
timed out
after eg a half hour. But then again, when they are editing a form, this
might take some time, and the responsibility of keeping
Gunter D'Hondt wrote:
I don't want my sessions/continuations to have long time-out periods for
security reasons. It's ok to have them log in again if their session is
timed out
after eg a half hour. But then again, when they are editing a form
Hi, hoping someone can help.
I'm running a session at www.spaconference.org on scripting in Java
applications. I'm using Cocoon as an example of using a scripting
language to provide a feature (continuations for web flow) not
present in Java.
I've your very good examples of using
wrote:
Hi, hoping someone can help.
I'm running a session at www.spaconference.org on scripting in Java
applications. I'm using Cocoon as an example of using a scripting
language to provide a feature (continuations for web flow) not
present in Java.
I've your very good examples of using
(continuations for web flow) not
present in Java.
I've your very good examples of using cocoon.sendPageAndWait, but
grep as I might through the source I cannot find the definition of
sendPageAndWait in JavaScript. Please would someone point me in the
right direction.
Thanks in anticipation
Hi,
In reading about Cocoon and its use of control flow, I wondered about
the implications of continuations for indexing of Cocoon-based sites by
search engines, or by advertising services such as Google's AdSense
(which require static URLs). Wouldn't the presence of a page-specific
continuation
Le 22 nov. 05, à 12:24, Neil a écrit :
...In reading about Cocoon and its use of control flow, I wondered
about
the implications of continuations for indexing of Cocoon-based sites by
search engines, or by advertising services such as Google's AdSense
(which require static URLs). Wouldn't
with invalid continuations, e.g.
generate a 'session expired' page or something similar.
Thanks,
Stu
-Original Message-
From: Gerry Kaplan [mailto:[EMAIL PROTECTED]
Sent: 11 September 2005 16:59
To: users@cocoon.apache.org
Subject: Expired continuations
Is there a document or an example
Is there a document or an example somewhere that shows how to handle an
expired continuation. If the continuation expires and the user tries to
continue their work, they get an ugly error page. How can I capture that
error? Is it in the flow or in a sitemap?
Thanks!!
smime.p7s
Description:
in the sitemap. You can use the exception selector within your
handle-errors section to catch invalid continuations. The main sitemap
that ships with the Cocoon distro contains an example of this; here's a
snippet from that sitemap:
!--+
| At the very end of a pipeline, you can catch the errors
Thanks much!! This is just what I needed.
Gerry
-Original Message-
From: Jason Johnston [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 11, 2005 12:44 PM
To: users@cocoon.apache.org
Subject: Re: Expired continuations
Gerry Kaplan wrote:
Is there a document or an example somewhere
Hello,
i'm trying to send mails that contains link with continuation-id, and
there is 2 things i don't understand.
First i tried the following link in my jx template :
a
href=continue.html?continuation-id=#{$cocoon/continuation/id}continue.html?continuation-id=#{$cocoon/continuation/id}/a
I
Marc Salvetti wrote:
Thanks for the answer Aurélien,
there is 2 situations where i send a mail with a continuation : on the
opening of a new user account, a mail is sent to the user with this link
so i can be sure of the validity of the email adress before saving the
new account.
My choice
to store anything, the continuation does it for you. And
in my case, there is very few continuations likely to live together in
memory, and the amount of data stored in memory is very small (only one
small dom object and a few strings).
Marc
Merci, ça me rassure qu'il y ait quelqu'un qui fasse comme ça :)
Concernant le problème d'URL, si je comprends bien tu parles du cas de
d'echec du login ? :
L'url sera du type .../acceuil.html au lieu de .../login.html .
C'est vrai que cela peut poser problème, j'ai déjà à peu près le même
cas
; I've cut
down on some of the validation in the definition and template!
files, but I can't see where I've cut out anything pertinent to continuations./p pnbsp;/p pSpecifically, I don't understand the section of the sitemap where it talks about starting a flowscript scenario. nbsp; How do I access
cut down on some of
the validation in the definition and template files, but I can't see where
I've cut out anything pertinent to continuations.
Specifically, I don't understand the section of the sitemap where it talks
about starting a flowscript scenario. How do I access the continuation
to add/remove a row: No function
nor continuation given in map:call function... I've cut down on some of
the validation in the definition and template files, but I can't see where
I've cut out anything pertinent to continuations.
Specifically, I don't understand the section of the sitemap where
--
map:match pattern=
map:call function=main/
/map:match
!-- use JXtemplate to generate page content --
map:match pattern=*.jx
map:generate type=jx src=documents/{1}.jx/
map:serialize type=xhtml/
/map:match
!-- .kont URLs are generated by the Flow system for continuations
LIST users@cocoon.apache.org
cc
Subject
Problems with the usage of bookmarks
and continuations
Details:
* Cocoon 2.1.7 standalone
* JDK 1.5.0_03
* Windows 2000 SP4
Is there a way to send to the browser the id of the continuation
created by the sendPageAndWait method?
I have realize
Details:
* Cocoon 2.1.7 standalone
* JDK 1.5.0_03
* Windows 2000 SP4
I have made a small example to test the use of continuations, it is made
of a simple counter that is incremented each time the user presses the
count button, then, when the stop button is pressed, the result
page
1 - 100 of 187 matches
Mail list logo