cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LEBRETON Philippe <philippe.lebre...@cti-paysloire.cnamts.fr>
Subject send parameter to generator type serverpages
Date Fri, 26 Apr 2002 10:06:28 GMT
i want send parameter to the generator type serverpages.
My site map is :
                <map:pipeline>
                        <map:match pattern="etatdb-*">
                         <map:generate type="serverpages"
src="etatdb.xsp">
                            <parameter name="client" value="{1}"/>
                         </map:generate>
                        <map:transform src="etatdb.xsl"/>
                        <map:serialize/>
                        <map:handle-errors>
                                <map:transform
src="../stylesheets/system/error2html.xsl"/>
                        </map:handle-errors>
                        </map:match>

                </map:pipeline>

on my xsp file, i add this line :
   <xsp:expr>parameters.getParameter("client")</xsp:expr>

but i have this exception :
type internal-server-error

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
etatdb_xsp: Line 315, column 67:
Exception org.apache.avalon.framework.parameters.ParameterException must
be caught, or it must be declared in the throws clause of this method.
Line 0, column 0: 1 error

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/phl/etatdb-1

exception

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
etatdb_xsp:
Line 315, column 67:  Exception
org.apache.avalon.framework.parameters.ParameterException must be
caught, or it must be declared in the throws clause of this method.
Line 0, column 0:
1 error

path-info

phl/etatdb-1

stacktrace

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
etatdb_xsp:
Line 315, column 67:  Exception
org.apache.avalon.framework.parameters.ParameterException must be
caught, or it must be declared in the throws clause of this method.
Line 0, column 0:
1 error

        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:274)

        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)

        at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:170)

        at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:142)

        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:239)

        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)

        at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:277)

        at
org.apache.cocoon.www.phl.sitemap_xmap.wildcardMatchN40009D(sitemap_xmap.java:1196)

        at
org.apache.cocoon.www.phl.sitemap_xmap.process(sitemap_xmap.java:587)
        at
org.apache.cocoon.www.phl.sitemap_xmap.process(sitemap_xmap.java:422)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
        at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40064F(sitemap_xmap.java:10158)

        at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3214)
        at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2574)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
        at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at org.apache.tomcat.facade.ServletHandler.doService(Unknown
Source)
        at org.apache.tomcat.core.Handler.invoke(Unknown Source)
        at org.apache.tomcat.core.Handler.service(Unknown Source)
        at org.apache.tomcat.facade.ServletHandler.service(Unknown
Source)
        at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
        at org.apache.tomcat.core.ContextManager.service(Unknown Source)

        at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown
Source)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:484)
org.apache.cocoon.components.language.LanguageException: Error compiling
etatdb_xsp:
Line 315, column 67:  Exception
org.apache.avalon.framework.parameters.ParameterException must be
caught, or it must be declared in the throws clause of this method.
Line 0, column 0:
1 error

        at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:205)

        at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140)

        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:321)

        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271)

        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)

        at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:170)

        at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:142)

        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:239)

        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)

        at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:277)

        at
org.apache.cocoon.www.phl.sitemap_xmap.wildcardMatchN40009D(sitemap_xmap.java:1196)

        at
org.apache.cocoon.www.phl.sitemap_xmap.process(sitemap_xmap.java:587)
        at
org.apache.cocoon.www.phl.sitemap_xmap.process(sitemap_xmap.java:422)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
        at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40064F(sitemap_xmap.java:10158)

        at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3214)
        at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2574)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
        at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at org.apache.tomcat.facade.ServletHandler.doService(Unknown
Source)
        at org.apache.tomcat.core.Handler.invoke(Unknown Source)
        at org.apache.tomcat.core.Handler.service(Unknown Source)
        at org.apache.tomcat.facade.ServletHandler.service(Unknown
Source)
        at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
        at org.apache.tomcat.core.ContextManager.service(Unknown Source)

        at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown
Source)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:484)

original exception

Original exception :
org.apache.cocoon.components.language.LanguageException: Error compiling
etatdb_xsp:
Line 315, column 67:  Exception
org.apache.avalon.framework.parameters.ParameterException must be
caught, or it must be declared in the throws clause of this method.
Line 0, column 0:
1 error

        at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:205)

        at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140)

        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:321)

        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271)

        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)

        at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:170)

        at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:142)

        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:239)

        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)

        at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:277)

        at
org.apache.cocoon.www.phl.sitemap_xmap.wildcardMatchN40009D(sitemap_xmap.java:1196)

        at
org.apache.cocoon.www.phl.sitemap_xmap.process(sitemap_xmap.java:587)
        at
org.apache.cocoon.www.phl.sitemap_xmap.process(sitemap_xmap.java:422)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
        at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40064F(sitemap_xmap.java:10158)

        at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3214)
        at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2574)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
        at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at org.apache.tomcat.facade.ServletHandler.doService(Unknown
Source)
        at org.apache.tomcat.core.Handler.invoke(Unknown Source)
        at org.apache.tomcat.core.Handler.service(Unknown Source)
        at org.apache.tomcat.facade.ServletHandler.service(Unknown
Source)
        at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
        at org.apache.tomcat.core.ContextManager.service(Unknown Source)

        at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown
Source)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:484)


Where is the problem?

Thanks

Philippe LEBRETON


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message