Title: Message
Hi,
 
I am facing this problem for a long time and is not able to solve it. When I aggregate a jsp file within the <map:aggregate>, I can get the following error:
 
org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.ProcessingException: Exception JSPGenerator.generate(): java.lang.StringIndexOutOfBoundsException: String index out of range: -1
 
cause: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
 
The following is my code in the sitemap.xmap
 
       <map:match pattern="login">
          <map:generate type="jsp" src=""/>
          <map:transform src=""/>
         <map:serialize type="html"/>
       </map:match>
 
       <map:match pattern="*.xsp">
            <map:aggregate element="site">
               <map:part src="" />
 
               <map:part src="" />
 
               <map:part src="" />
 
               <map:part src="" label="content" />
            </map:aggregate>
 
            <map:transform src="">
               <map:parameter name="use-request-parameters" value="true" />
 
               <map:parameter name="base-url" value="/clearinghouse" />
            </map:transform>
 
            <map:serialize />
         </map:match>
 
I am using cocoon 2.1.4. Thanks for your help and looking forward to your reply soon.
 
Regards
Lau Sze Sze
Technical Consultant
E-Learning Competency Centre
National Institute of Education
1 Nanyang Walk
Singapore 637616
Tel: (65) 6790 3745
 
 

Reply via email to