Stephen Rosman | 1 Aug 2008 03:57
Picon

What's the status of the wiki?

Has the wiki at http://wiki.apache.org/cocoon/ been abandoned by 2.2?
There still seems to be some content added sporadically but only for
2.1.

--

-- 
Stephen Rosman
Hugh Sparks | 1 Aug 2008 06:02
Favicon

Cannot create a session after the response has been committed

I have a webapp I've been using since the coccon 2.1x era.
It still works with 2.2.1. It is a simple one page cform
that uses ajax.

But today, I felt the need to enable exception handling 
in the sitemap. As soon as I did, I saw that the webapp
was throwing an exception and it stopped working:

"Cannot create a session after the response has been committed"

If I remove the exception handler, the program appears to work.

It seems I've been doing something wrong for years without knowing it. 

I tore apart the flowscript and found that the error was
caused when there were global variables in the script.
As soon as I made them all local, the problem went away.

I understand that somehow global variables in flowscript
are attached to the session. But nowhere in my program is
the session handled explicity. But evidently, I should be
doing something else to make this work. I do need the
variables to be global and attached to the session.

Here is an entire flowscript that demonstrates the problem:

WORKS:

 cocoon.load("servlet:forms:/resource/internal/flow/javascript/Form.js") ;

(Continue reading)

Markus Brueckner | 1 Aug 2008 10:09

Re: Accessing EJBs from generator

Hi,

Am Sonntag 27 Juli 2008 11:42:30 schrieb Markus Brückner:

> Google etc. are not really helping. I found some people having the same
> problem, but no answer. The list archive was no help either (at least going
> back until january). So I running out of options here: what is this
> $Proxy86 object and why do I get it when trying to look up the EJB?

anybody?
Hm, I've done some more research (i.e. mostly asking my local Cocoon expert) 
and come to the conclusion, that this might be more of a Spring issue, than a 
Cocoon one. Am I the only one running into this problem with Cocoon (which 
would support my theory, that I do something simple very wrong) or is this 
generally known and therefore not worth speaking about?

So long,
Markus, still a bit puzzled
Kjetil Kjernsmo | 1 Aug 2008 10:27

Re: Rewriting EncodeURLTransformer to encode the locale parameter

On Thursday 31 July 2008 20:11:10 Robin Wyles wrote:
> Maybe you could use the LinkRewriterTransformer [1] to achieve this  
> along with your own custom InputModule to add the locale parameter.

Oh, OK. Actually, I looked at that but realised that I didn't quite understand 
what it did, I thought it more did something like mod_rewrite, i.e. rewrite 
incoming URLs.

> That said, the LinkRewriterTransformer looks up the InputModule based  
> on the url scheme, so you would have to use a custom scheme (e.g.  
> locale:) for all the 'schemeless' (e.g. "/path/to/some/page.html")  
> links you wanted rewritten.

Hmmmm, OK. I'll look into it, but I think I found an XSLT way that sort of 
works too.

Kind regards 

Kjetil Kjernsmo
--

-- 
Senior Knowledge Engineer
Direct: +47 6783 1136 | Mobile: +47 986 48 234
Email: kjetil.kjernsmo <at> computas.com   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | 
Fax:+47 6783 1001
(Continue reading)

Grzegorz Kossakowski | 1 Aug 2008 16:29
Favicon
Gravatar

Re: Cocoon 2.2 flowscipt debugger possible?

Hugh Sparks pisze:
> I read a few posts that suggest that this is impossible, but I decided
> to try the flowscript debugger anyway. I'm running under Tomcat, so
> I copied the file cocoon-flowscipt.xconf from the cocoon 2.2 svn truck
> to this directory in my Tomcat installation:
> 
>    webapps\cocoon\WEB-INF\classes\META-INF\cocoon\avalon
> 
> I edited the file to enable the debugger and started Tomcat.
> When I ran my cocoon flowscript application, the debugger
> window appeared, but the application crashes. Here are some
> highlights from the traceback:
> 
>        description The server encountered an internal error ()
>        that prevented it from fulfilling this request.
> 
>        org.apache.avalon.framework.service.ServiceException:
>        Exception during lookup of component with
>        'org.apache.cocoon.components.flow.Interpreter/javascript'.
>        (Key='AvalonServiceManager')
> 
>        org.springframework.beans.factory.BeanCreationException:
>        Error creating bean with name
>        'org.apache.cocoon.components.flow.Interpreter/javascript':
>        Initialization of bean failed; nested exception is
>        org.springframework.beans.factory.BeanCreationException:
>        Unable to initialize Avalon component with role
>        org.apache.cocoon.components.flow.Interpreter/javascript;
>        nested exception is java.lang.IllegalStateException
> 
(Continue reading)

Alexandre Mazouz | 1 Aug 2008 17:31
Picon

Re: Firefox 3 and URL


Hello,

After a lot of debugging and other things, i have found a new problem with
FF3.
In FF2, IE6, IE7 it works fine but not in FF3.

*******************************
if (!this.xmlHttp) {
this.xmlHttp = Sarissa.getXmlHttpRequest();
}
this.xmlHttp.open("HEAD", resourceName, false);
this.xmlHttp.send(null);
return (this.xmlHttp.status == 200 && this.xmlHttp.responseXML);
*******************************
the resourceName is "/dy/browse/bv/nr500/nr500_2008/loc/n0001.xml".
the statusText is "OK" and status 200.

i have no responseXML.

something seems strange is that when the this.xmlHttp.open is done, i have
the this.xmlHttp.statusText=this.xmlHttp.channel

all seems to be fine but i get nothing in FF3 (responseXML=null).

Is there any idea from where is the problem and how to fix it?

Thanks,
Alexandre

(Continue reading)

Picon

pass repeater from database to the form

I’m trying to pass the parameters from the database to the repeater in the form.

 

var repeater=form.getChild("test");

                for (var i = 0; i < comp_in_composition.size(); i++) {

                               var row = repeater.getRow(i);

                               var type = row.getChild("type");

                               var amount = row.getChild("amount");

                               var select = row.getChild("select");

                               type.setValue(comp_in_composition.get(i).get("type"));

                               amount.setValue(comp_in_composition.get(i).get("amount"));

                               select.setValue(false);

                }

 

But, I’ve got an exception:  java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

 

What’s the problem? How to pass this params to the form repeater?

student csu | 1 Aug 2008 19:07
Picon

Re: hi

Hi,
I wanted to know how to increase the log level of cocoon .I am using jbuilder 2008 .Please tell me the step to go for increasing the log level of cocoon.
 
Thanks ,
su

On Thu, Jul 24, 2008 at 9:35 AM, Joerg Heinicke <joerg.heinicke <at> gmx.de> wrote:
On 24.07.2008 00:30, student csu wrote:

* Question: how to debug xslt in cocoon framework .I am using Jbuider .just

let me know how to set up the breakpoints for xslt in jbuilder

There is hardly anything available allowing you to debug XSLT. You probably need one of the commercial XML editors.


cocoon framework .I am using Jbuider .just let me know how to set up the
breakpoints for xslt in jbuilder as there is some important xml file that
combines with my xslt and display but I am not aware of among so many
important which xml it is combining .so I will be thankful to you just let
me know how to debug xsl using in jbuilder2008 .

If you just want to know which files are combined in a pipeline by aggregation or whatever (I don't quite get what really happens in your case) just raising the log level of Cocoon might help. If you want to see the actual content you might find the LogTransformer useful. It might be also helpful to show us your pipeline and explain what you are after.

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
For additional commands, e-mail: users-help <at> cocoon.apache.org


Ralph Rauscher | 1 Aug 2008 19:19

Re: pass repeater from database to the form

Use

var row = repeater.addRow()
;

instead of

var row = repeater.getRow(i);


Мария Григорьева wrote:

I’m trying to pass the parameters from the database to the repeater in the form.

 

var repeater=form.getChild("test");

                for (var i = 0; i < comp_in_composition.size(); i++) {

                               var row = repeater.getRow(i);

                               var type = row.getChild("type");

                               var amount = row.getChild("amount");

                               var select = row.getChild("select");

                               type.setValue(comp_in_composition.get(i).get("type"));

                               amount.setValue(comp_in_composition.get(i).get("amount"));

                               select.setValue(false);

                }

 

But, I’ve got an exception:  java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

 

What’s the problem? How to pass this params to the form repeater?



Bhavya Sharma | 1 Aug 2008 19:40
Picon

Re: hi


have a look at following link

http://cocoon.apache.org/2.2/core-modules/core/2.2/1399_1_1.html

bhavya


On Fri, Aug 1, 2008 at 10:37 PM, student csu <student21csu <at> gmail.com> wrote:
Hi,
I wanted to know how to increase the log level of cocoon .I am using jbuilder 2008 .Please tell me the step to go for increasing the log level of cocoon.
 
Thanks ,
su

On Thu, Jul 24, 2008 at 9:35 AM, Joerg Heinicke <joerg.heinicke <at> gmx.de> wrote:
On 24.07.2008 00:30, student csu wrote:

* Question: how to debug xslt in cocoon framework .I am using Jbuider .just

let me know how to set up the breakpoints for xslt in jbuilder

There is hardly anything available allowing you to debug XSLT. You probably need one of the commercial XML editors.


cocoon framework .I am using Jbuider .just let me know how to set up the
breakpoints for xslt in jbuilder as there is some important xml file that
combines with my xslt and display but I am not aware of among so many
important which xml it is combining .so I will be thankful to you just let
me know how to debug xsl using in jbuilder2008 .

If you just want to know which files are combined in a pipeline by aggregation or whatever (I don't quite get what really happens in your case) just raising the log level of Cocoon might help. If you want to see the actual content you might find the LogTransformer useful. It might be also helpful to show us your pipeline and explain what you are after.

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
For additional commands, e-mail: users-help <at> cocoon.apache.org





--
Thanks

Bhavya Sharma

Gmane