You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dimitra Nefeli <di...@gmail.com> on 2013/01/11 11:43:12 UTC
Sitemap: Error calling continuation
Hi,
I am trying to make a form and submitting it, a new xml file will be
created.
The problem is with the sitemaps and the pipelines.
In the sitemap.xmap of my folder (dcEditor), I have defined a
"dc-success-pipeline", which simply "calls" a .jx file.
The problem is in the continuation of sitemaps, appearing the error:
org.apache.cocoon.ProcessingExcetion: Sitemap: error calling continuation
at <map:call> -
file:///usr/local/fedora/tomcat/webapps/cocoon/dcEditor/sitemap.xmap
at <map:call> - file:///usr/local/fedora/tomcat/webapps/cocoon/sitemap.xmap
I don't know if this information is adequate.
Please if anyone has some idea, let's help.
Thanks in advance,
Dimitra.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Sitemap: Error calling continuation
Posted by Laurent Medioni <lm...@temenos.com>.
Hi,
What exact version of Cocoon are you using ? 2.1.11 ?
If you want to share continuations between sitemaps you might have to activate the continuation-sharing-bug-compatible attribute of the continuations-manager component in cocoon.xconf.
Otherwise a continuation should only be used in the sitemap it has been created in.
Laurent
The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressees. Any use or disclosure of the contents of this e-mail/attachments by a not intended recipient is unauthorized and may be unlawful. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of TEMENOS. We recommend that you check this e-mail and any attachments against viruses. TEMENOS accepts no liability for any damage caused by any malicious code or virus transmitted by this e-mail.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Sitemap: Error calling continuation
Posted by Robby Pelssers <Ro...@nxp.com>.
Well… did you also try to wrap everything in a try catch? Maybe you will get a meaningful stacktrace? Now the only info you get is that there is a problem with the continuation.
As a quick hack:
function editingForm() {
try {
//do your stuff here
} catch (e) {
print(e)
}
}
At least it should show a stacktrace on your console.
Robby
From: Dimitra Nefeli [mailto:dimnefeli23@gmail.com]
Sent: Friday, January 11, 2013 2:21 PM
To: users@cocoon.apache.org
Subject: Re: Sitemap: Error calling continuation
I just tried it but the problem persists....
The problem is with the continuation. The right points in both sitemaps (cocoon and dcEditor(my folder)) are:
(dcEditor)
<map:match pattern="*.continue">
<map:call continuation="{1}"/>
</map:match>
(cocoon)
<map:match pattern="*/**">
<map:mount check-reload="${sitemap-mount.check-reload}" src="{1}/" uri-prefix="{1}"/>
</map:match>.
Maybe this information can help....
Dimitra.
On 01/11/2013 02:54 PM, Robby Pelssers wrote:
I think you’re not using Cocoon2.2 so there might be some differences of course…
And so far I have a hunch which you should try out.
var viewData = { "title" : form.getChild("title").getValue() }
should probably become
var viewData = { "title" : form.form.getChild("title").getValue() }
Can you give that a try first?
Oh yes..
And for debugging purposes you can also wrap it in a try catch block:
function editingForm() {
try {
//do your stuff here
} catch (e) {
cocoon.sendPage(“someErrorTemplate”, {“exception”: e})
}
}
From: Dimitra Nefeli [mailto:dimnefeli23@gmail.com]
Sent: Friday, January 11, 2013 1:42 PM
To: users@cocoon.apache.org<ma...@cocoon.apache.org>
Subject: Re: Sitemap: Error calling continuation
On 01/11/2013 02:06 PM, Robby Pelssers wrote:
Can you perhaps show the flowscript involved and the relevant sitemap snippets?
Robby
-----Original Message-----
From: Dimitra Nefeli [mailto:dimnefeli23@gmail.com]
Sent: Friday, January 11, 2013 11:43 AM
To: users@cocoon.apache.org<ma...@cocoon.apache.org>
Subject: Sitemap: Error calling continuation
Hi,
I am trying to make a form and submitting it, a new xml file will be created.
The problem is with the sitemaps and the pipelines.
In the sitemap.xmap of my folder (dcEditor), I have defined a "dc-success-pipeline", which simply "calls" a .jx file.
The problem is in the continuation of sitemaps, appearing the error:
org.apache.cocoon.ProcessingExcetion: Sitemap: error calling continuation at <map:call> - file:///usr/local/fedora/tomcat/webapps/cocoon/dcEditor/sitemap.xmap<file:///\\%5C%5Cusr%5Clocal%5Cfedora%5Ctomcat%5Cwebapps%5Ccocoon%5CdcEditor%5Csitemap.xmap>
at <map:call> - file:///usr/local/fedora/tomcat/webapps/cocoon/sitemap.xmap<file:///\\%5C%5Cusr%5Clocal%5Cfedora%5Ctomcat%5Cwebapps%5Ccocoon%5Csitemap.xmap>
I don't know if this information is adequate.
Please if anyone has some idea, let's help.
Thanks in advance,
Dimitra.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org<ma...@cocoon.apache.org>
For additional commands, e-mail: users-help@cocoon.apache.org<ma...@cocoon.apache.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org<ma...@cocoon.apache.org>
For additional commands, e-mail: users-help@cocoon.apache.org<ma...@cocoon.apache.org>
The sitemap.xmap is:
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"<http://apache.org/cocoon/sitemap/1.0>>
<map:components>
<map:transformers default="xslt">
<map:transformer name="i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
<catalogues default="forms">
<catalogue id="forms" name="messages"
location="resource://org/apache/cocoon/forms/system/i18n"<resource://org/apache/cocoon/forms/system/i18n>/>
</catalogues>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
</map:transformers>
</map:components>
<map:flow language="javascript">
<map:script src="editing.js"/>
</map:flow>
<map:pipelines>
<map:pipeline>
<map:match pattern="editing">
<map:call function="editingForm"/>
</map:match>
<map:match pattern="*.continue">
<map:call continuation="{1}"/>
</map:match>
<map:match pattern="dc-display-pipeline">
<map:generate type="jx" src="dc_template.xml"/>
<map:transform type="i18n">
<map:parameter name="locale" value="en-US"/>
</map:transform>
<map:transform src="forms-samples-styling.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="dc-success-pipeline">
<map:generate type="jx" src="dc_success.jx">
</map:match>
<map:match pattern="resources/*/**">
<map:read src="resource://org/apache/cocoon/{1}/resources/{2}"<resource://org/apache/cocoon/%7b1%7d/resources/%7b2%7d>/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
editing.js
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js"<resource://org/apache/cocoon/forms/flow/javascript/Form.js>);
function editingForm() {
var form = new Form("dc_definition.xml");
form.showForm("dc-display-pipeline");
var viewData = { "title" : form.getChild("title").getValue() }
cocoon.sendPage("dc-success-pipeline", viewData);
}
and dc_success.jx
<?xml version="1.0"?>
<html>
<head>
<title>Editing successful</title>
</head>
<body>
pipeline works for ${title}!
</body>
</html>.
Thanks in advance,
Dimitra
Re: Sitemap: Error calling continuation
Posted by Dimitra Nefeli <di...@gmail.com>.
I just tried it but the problem persists....
The problem is with the continuation. The right points in both sitemaps
(cocoon and dcEditor(my folder)) are:
(*dcEditor*)
<map:match pattern="*.continue">
<map:call continuation="{1}"/>
</map:match>
(*cocoon)
*<map:match pattern="*/**">
<map:mount check-reload="${sitemap-mount.check-reload}"
src="{1}/" uri-prefix="{1}"/>
</map:match>*.
*Maybe this information can help....
Dimitra.
*
*
On 01/11/2013 02:54 PM, Robby Pelssers wrote:
>
> I think you’re not using Cocoon2.2 so there might be some differences
> of course…
>
> And so far I have a hunch which you should try out.
>
> var viewData = { "title" : form.getChild("title").getValue() }
>
> should probably become
>
> var viewData = { "title" : form.form.getChild("title").getValue() }
>
> Can you give that a try first?
>
> Oh yes..
>
> And for debugging purposes you can also wrap it in a try catch block:
>
> function editingForm() {
>
> try {
>
> //do your stuff here
>
> } catch (e) {
>
> cocoon.sendPage(“someErrorTemplate”, {“exception”: e})
>
> }
>
> }
>
> *From:*Dimitra Nefeli [mailto:dimnefeli23@gmail.com]
> *Sent:* Friday, January 11, 2013 1:42 PM
> *To:* users@cocoon.apache.org
> *Subject:* Re: Sitemap: Error calling continuation
>
> On 01/11/2013 02:06 PM, Robby Pelssers wrote:
>
> Can you perhaps show the flowscript involved and the relevant sitemap snippets?
>
>
>
> Robby
>
>
>
> -----Original Message-----
>
> From: Dimitra Nefeli [mailto:dimnefeli23@gmail.com]
>
> Sent: Friday, January 11, 2013 11:43 AM
>
> To:users@cocoon.apache.org <ma...@cocoon.apache.org>
>
> Subject: Sitemap: Error calling continuation
>
>
>
> Hi,
>
> I am trying to make a form and submitting it, a new xml file will be created.
>
> The problem is with the sitemaps and the pipelines.
>
> In the sitemap.xmap of my folder (dcEditor), I have defined a "dc-success-pipeline", which simply "calls" a .jx file.
>
> The problem is in the continuation of sitemaps, appearing the error:
>
> org.apache.cocoon.ProcessingExcetion: Sitemap: error calling continuation at <map:call> -file:///usr/local/fedora/tomcat/webapps/cocoon/dcEditor/sitemap.xmap <file:///%5C%5Cusr%5Clocal%5Cfedora%5Ctomcat%5Cwebapps%5Ccocoon%5CdcEditor%5Csitemap.xmap>
>
> at <map:call> -file:///usr/local/fedora/tomcat/webapps/cocoon/sitemap.xmap <file:///%5C%5Cusr%5Clocal%5Cfedora%5Ctomcat%5Cwebapps%5Ccocoon%5Csitemap.xmap>
>
>
>
> I don't know if this information is adequate.
>
> Please if anyone has some idea, let's help.
>
>
>
> Thanks in advance,
>
> Dimitra.
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail:users-unsubscribe@cocoon.apache.org <ma...@cocoon.apache.org>
>
> For additional commands, e-mail:users-help@cocoon.apache.org <ma...@cocoon.apache.org>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail:users-unsubscribe@cocoon.apache.org <ma...@cocoon.apache.org>
>
> For additional commands, e-mail:users-help@cocoon.apache.org <ma...@cocoon.apache.org>
>
>
>
> The _sitemap.xmap_ is:
> <?xml version="1.0"?>
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"
> <http://apache.org/cocoon/sitemap/1.0>>
>
> <map:components>
> <map:transformers default="xslt">
> <map:transformer name="i18n"
> src="org.apache.cocoon.transformation.I18nTransformer">
> <catalogues default="forms">
> <catalogue id="forms" name="messages"
> location="resource://org/apache/cocoon/forms/system/i18n"
> <resource://org/apache/cocoon/forms/system/i18n>/>
> </catalogues>
> <cache-at-startup>true</cache-at-startup>
> </map:transformer>
> </map:transformers>
> </map:components>
>
>
> <map:flow language="javascript">
> <map:script src="editing.js"/>
> </map:flow>
>
> <map:pipelines>
> <map:pipeline>
> <map:match pattern="editing">
> <map:call function="editingForm"/>
> </map:match>
>
> <map:match pattern="*.continue">
> <map:call continuation="{1}"/>
> </map:match>
>
> <map:match pattern="dc-display-pipeline">
> <map:generate type="jx" src="dc_template.xml"/>
> <map:transform type="i18n">
> <map:parameter name="locale" value="en-US"/>
> </map:transform>
> <map:transform src="forms-samples-styling.xsl"/>
> <map:serialize/>
> </map:match>
>
> <map:match pattern="dc-success-pipeline">
> <map:generate type="jx" src="dc_success.jx">
> </map:match>
>
> <map:match pattern="resources/*/**">
> <map:read src="resource://org/apache/cocoon/{1}/resources/{2}"
> <resource://org/apache/cocoon/%7b1%7d/resources/%7b2%7d>/>
> </map:match>
>
> </map:pipeline>
>
> </map:pipelines>
>
> </map:sitemap>
>
> _editing.js_
> cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js"
> <resource://org/apache/cocoon/forms/flow/javascript/Form.js>);
>
> function editingForm() {
> var form = new Form("dc_definition.xml");
>
> form.showForm("dc-display-pipeline");
>
> var viewData = { "title" : form.getChild("title").getValue() }
> cocoon.sendPage("dc-success-pipeline", viewData);
> }
>
> and _dc_success.jx
> _<?xml version="1.0"?>
> <html>
> <head>
> <title>Editing successful</title>
> </head>
> <body>
> pipeline works for ${title}!
> </body>
> </html>.
>
> Thanks in advance,
> Dimitra
>
RE: Sitemap: Error calling continuation
Posted by Robby Pelssers <Ro...@nxp.com>.
I think you’re not using Cocoon2.2 so there might be some differences of course…
And so far I have a hunch which you should try out.
var viewData = { "title" : form.getChild("title").getValue() }
should probably become
var viewData = { "title" : form.form.getChild("title").getValue() }
Can you give that a try first?
Oh yes..
And for debugging purposes you can also wrap it in a try catch block:
function editingForm() {
try {
//do your stuff here
} catch (e) {
cocoon.sendPage(“someErrorTemplate”, {“exception”: e})
}
}
From: Dimitra Nefeli [mailto:dimnefeli23@gmail.com]
Sent: Friday, January 11, 2013 1:42 PM
To: users@cocoon.apache.org
Subject: Re: Sitemap: Error calling continuation
On 01/11/2013 02:06 PM, Robby Pelssers wrote:
Can you perhaps show the flowscript involved and the relevant sitemap snippets?
Robby
-----Original Message-----
From: Dimitra Nefeli [mailto:dimnefeli23@gmail.com]
Sent: Friday, January 11, 2013 11:43 AM
To: users@cocoon.apache.org<ma...@cocoon.apache.org>
Subject: Sitemap: Error calling continuation
Hi,
I am trying to make a form and submitting it, a new xml file will be created.
The problem is with the sitemaps and the pipelines.
In the sitemap.xmap of my folder (dcEditor), I have defined a "dc-success-pipeline", which simply "calls" a .jx file.
The problem is in the continuation of sitemaps, appearing the error:
org.apache.cocoon.ProcessingExcetion: Sitemap: error calling continuation at <map:call> - file:///usr/local/fedora/tomcat/webapps/cocoon/dcEditor/sitemap.xmap<file:///\\usr\local\fedora\tomcat\webapps\cocoon\dcEditor\sitemap.xmap>
at <map:call> - file:///usr/local/fedora/tomcat/webapps/cocoon/sitemap.xmap<file:///\\usr\local\fedora\tomcat\webapps\cocoon\sitemap.xmap>
I don't know if this information is adequate.
Please if anyone has some idea, let's help.
Thanks in advance,
Dimitra.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org<ma...@cocoon.apache.org>
For additional commands, e-mail: users-help@cocoon.apache.org<ma...@cocoon.apache.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org<ma...@cocoon.apache.org>
For additional commands, e-mail: users-help@cocoon.apache.org<ma...@cocoon.apache.org>
The sitemap.xmap is:
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"<http://apache.org/cocoon/sitemap/1.0>>
<map:components>
<map:transformers default="xslt">
<map:transformer name="i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
<catalogues default="forms">
<catalogue id="forms" name="messages"
location="resource://org/apache/cocoon/forms/system/i18n"<resource://org/apache/cocoon/forms/system/i18n>/>
</catalogues>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
</map:transformers>
</map:components>
<map:flow language="javascript">
<map:script src="editing.js"/>
</map:flow>
<map:pipelines>
<map:pipeline>
<map:match pattern="editing">
<map:call function="editingForm"/>
</map:match>
<map:match pattern="*.continue">
<map:call continuation="{1}"/>
</map:match>
<map:match pattern="dc-display-pipeline">
<map:generate type="jx" src="dc_template.xml"/>
<map:transform type="i18n">
<map:parameter name="locale" value="en-US"/>
</map:transform>
<map:transform src="forms-samples-styling.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="dc-success-pipeline">
<map:generate type="jx" src="dc_success.jx">
</map:match>
<map:match pattern="resources/*/**">
<map:read src="resource://org/apache/cocoon/{1}/resources/{2}"<resource://org/apache/cocoon/%7b1%7d/resources/%7b2%7d>/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
editing.js
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js"<resource://org/apache/cocoon/forms/flow/javascript/Form.js>);
function editingForm() {
var form = new Form("dc_definition.xml");
form.showForm("dc-display-pipeline");
var viewData = { "title" : form.getChild("title").getValue() }
cocoon.sendPage("dc-success-pipeline", viewData);
}
and dc_success.jx
<?xml version="1.0"?>
<html>
<head>
<title>Editing successful</title>
</head>
<body>
pipeline works for ${title}!
</body>
</html>.
Thanks in advance,
Dimitra
Re: Sitemap: Error calling continuation
Posted by Dimitra Nefeli <di...@gmail.com>.
On 01/11/2013 02:06 PM, Robby Pelssers wrote:
> Can you perhaps show the flowscript involved and the relevant sitemap snippets?
>
> Robby
>
> -----Original Message-----
> From: Dimitra Nefeli [mailto:dimnefeli23@gmail.com]
> Sent: Friday, January 11, 2013 11:43 AM
> To: users@cocoon.apache.org
> Subject: Sitemap: Error calling continuation
>
> Hi,
> I am trying to make a form and submitting it, a new xml file will be created.
> The problem is with the sitemaps and the pipelines.
> In the sitemap.xmap of my folder (dcEditor), I have defined a "dc-success-pipeline", which simply "calls" a .jx file.
> The problem is in the continuation of sitemaps, appearing the error:
> org.apache.cocoon.ProcessingExcetion: Sitemap: error calling continuation at <map:call> - file:///usr/local/fedora/tomcat/webapps/cocoon/dcEditor/sitemap.xmap
> at <map:call> - file:///usr/local/fedora/tomcat/webapps/cocoon/sitemap.xmap
>
> I don't know if this information is adequate.
> Please if anyone has some idea, let's help.
>
> Thanks in advance,
> Dimitra.
>
> ---------------------------------------------------------------------
> 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
>
The _sitemap.xmap_ is:
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:transformers default="xslt">
<map:transformer name="i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
<catalogues default="forms">
<catalogue id="forms" name="messages"
location="resource://org/apache/cocoon/forms/system/i18n"/>
</catalogues>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
</map:transformers>
</map:components>
<map:flow language="javascript">
<map:script src="editing.js"/>
</map:flow>
<map:pipelines>
<map:pipeline>
<map:match pattern="editing">
<map:call function="editingForm"/>
</map:match>
<map:match pattern="*.continue">
<map:call continuation="{1}"/>
</map:match>
<map:match pattern="dc-display-pipeline">
<map:generate type="jx" src="dc_template.xml"/>
<map:transform type="i18n">
<map:parameter name="locale" value="en-US"/>
</map:transform>
<map:transform src="forms-samples-styling.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="dc-success-pipeline">
<map:generate type="jx" src="dc_success.jx">
</map:match>
<map:match pattern="resources/*/**">
<map:read src="resource://org/apache/cocoon/{1}/resources/{2}"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
_editing.js_
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");
function editingForm() {
var form = new Form("dc_definition.xml");
form.showForm("dc-display-pipeline");
var viewData = { "title" : form.getChild("title").getValue() }
cocoon.sendPage("dc-success-pipeline", viewData);
}
and _dc_success.jx
_<?xml version="1.0"?>
<html>
<head>
<title>Editing successful</title>
</head>
<body>
pipeline works for ${title}!
</body>
</html>.
Thanks in advance,
Dimitra
_
_
RE: Sitemap: Error calling continuation
Posted by Robby Pelssers <Ro...@nxp.com>.
Can you perhaps show the flowscript involved and the relevant sitemap snippets?
Robby
-----Original Message-----
From: Dimitra Nefeli [mailto:dimnefeli23@gmail.com]
Sent: Friday, January 11, 2013 11:43 AM
To: users@cocoon.apache.org
Subject: Sitemap: Error calling continuation
Hi,
I am trying to make a form and submitting it, a new xml file will be created.
The problem is with the sitemaps and the pipelines.
In the sitemap.xmap of my folder (dcEditor), I have defined a "dc-success-pipeline", which simply "calls" a .jx file.
The problem is in the continuation of sitemaps, appearing the error:
org.apache.cocoon.ProcessingExcetion: Sitemap: error calling continuation at <map:call> - file:///usr/local/fedora/tomcat/webapps/cocoon/dcEditor/sitemap.xmap
at <map:call> - file:///usr/local/fedora/tomcat/webapps/cocoon/sitemap.xmap
I don't know if this information is adequate.
Please if anyone has some idea, let's help.
Thanks in advance,
Dimitra.
---------------------------------------------------------------------
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