cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <iasan...@apache-korea.org>
Subject RE: [BUG] very weird NPE in JXTemplateTransformer
Date Fri, 02 May 2003 03:09:45 GMT
I figured out this NPE problem by updating the jars WEB-INF/lib from
cocoon-2.1-M2 latest build. However, after opening some editing window at
http://localhost:8080/linotype/private/edit/news/1/, you meet the following
error message in case of any action i.e. delete, save, or finish.
-----
Internal Server Error

Message: null

Description: No details available.

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

Request URI

private/edit/news/1/{$continuation/id}.kont

cause

The continuation ID id} is invalid.

request-uri

/linotype/private/edit/news/1/%7B$continuation/id%7D.kont

Apache Cocoon 2.1-M2-dev
-----

I found that the action attribute of the form in the edit window was not
valid like this:

<form enctype="multipart/form-data" method="POST"
action="{$continuation/id}.kont" name="data"> ...

Actually my sitemap.xmap has

    <map:match pattern="edit/news/*/">
     <map:generate src="cocoon://news/{1}.xml"/>
     <map:transform src="stylesheets/news2edit.xslt">
      <map:parameter name="home" value="{global:home}"/>
     </map:transform>
     <map:transform type="jx"/>
     <map:serialize/>
    </map:match>

with

    <map:transformer name="jx" 
      src="org.apache.cocoon.transformation.JXTemplateTransformer" 
      logger="jx.sitemap.transformer"
      pool-min="2" pool-grow="2" pool-max="8"  
    />

but I guess transform by jx doesn't work for edit/news/*/ pattern.

Thanks for any help in advance.

Ias.

> -----Original Message-----
> From: Stefano Mazzocchi [mailto:stefano@apache.org]
> Sent: Tuesday, April 29, 2003 9:10 AM
> To: Apache Cocoon
> Subject: [BUG] very weird NPE in JXTemplateTransformer
> 
> 
> This is a pretty weird bug. I've updated linotype to the
> latest and greatest CVS but I get a NPE on this pipeline:
> 
>     <map:match pattern="edit/news/*/">
>      <map:generate src="cocoon://news/{1}.xml"/>
>      <map:transform src="stylesheets/news2edit.xslt">
>       <map:parameter name="home" value="{global:home}"/>
>      </map:transform>
>      <map:transform type="jx"/>
>      <map:serialize/>
>     </map:match>
> 
> 
> 


Mime
View raw message