cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <j.re...@hippo.nl>
Subject Re: pass checkbox values through sitemap
Date Wed, 13 Dec 2006 12:41:03 GMT
Hi Sofro,

well it seems you have defined two generators in the same matcher.
What does your resource "check-this" contain? Another generator?

If so you need to change the pipeline structure.

Kind regards,

Jeroen Reijn



sofro wrote:
> It crashs also for this
> <map:match pattern="navigator/callSomething*">
> 	<map:generate src="http://localhost/?{request:queryString}"/>
> 	<map:call resource="check-this"/>
> </map:match>
> 
> and the reason is:
> 
> Generator already set. You can only select one Generator
> 
> ERROR   (2006-12-13) 11:33.53:562   [sitemap] (/xxx/navigator/callSomething)
> http-5050-Processor4/sitemap_xmap: Sitemap
> org.apache.cocoon.ProcessingException: Generator already set. You can only
> select one Generator (nav)
> 	at
> org.apache.cocoon.components.pipeline.AbstractEventPipeline.setGenerator(AbstractEventPipeline.java:135)
> 	at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.setGenerator(CachingEventPipeline.java:117)
> 	at
> org.apache.cocoon.www.sitemap_xmap.matchd0e465(C:\tomcat\work\Standalone\localhost\dm\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2629)
> 	at
> org.apache.cocoon.www.sitemap_xmap.process(C:\tomcat\work\Standalone\localhost\dm\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1913)
> 	at
> org.apache.cocoon.www.sitemap_xmap.process(C:\tomcat\work\Standalone\localhost\dm\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1811)
> 	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
> 	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> 	at
> org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
> 	at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
> 	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
> 	at
> com.changingworlds.nav.devicemanager.DeviceManager.service(DeviceManager.java:260)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:198)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:138)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
> 	at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2459)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:132)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
> 	at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:126)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
> 	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	at java.lang.Thread.run(Thread.java:595)
> 
> 
> Jeroen Reijn wrote:
>> Hi Sofro,
>>
>>
>> I don't think you need the map:parameter anymore, since you're not using 
>> the action, but could you post a piece of the stacktrace here? Where 
>> does it give you the NPE? Are you sure the XML that comes back from the 
>> generator is valid?
>>
>> Reijn
>>
>> sofro wrote:
>>> Yap, that's exactly what I want.
>>>
>>> I want to pass request to another host, which returns xml, which I want
>>> to
>>> process (xslt in <map:call resource="check-this"/>).
>>>
>>> but when I remove map:act. it crashes with NullPointerException before
>>> calling new host.
>>>
>>> <map:match pattern="navigator/callSomething*">
>>> 	<map:parameter name="parameters" value="true"/>
>>> 	<map:generate src="http://localhost/?{request:queryString}"/>
>>> 	<map:call resource="check-this"/>
>>> </map:match>
>>>
>>>
>>>
>>> Ard Schrijvers wrote:
>>>>> callSomething?sameName=value1&sameName=value2&sameName=value3&
>>>>> submit=Submit
>>>>>
>>>>> And question is how to pass those values to generator in sitemap:
>>>>>
>>>>> <map:match pattern="navigator/callSomething*">
>>>>> 	<map:act type="request">
>>>>> 		<map:parameter name="parameters" value="true"/>
>>>>> 		<map:generate 
>>>>> src="http://localhost/?sameName={sameName}"/>
>>>> Just remove the map:act. You want to pass on the request to another
>>>> host,
>>>> right?
>>>>
>>>> Just use map:generate src="http://localhost/?{request:queryString}"/>
>>>>
>>>> Ard
>>>>
>>>>> 		<map:call resource="check-this"/>
>>>>> 	</map:act>
>>>>> </map:match>
>>>>>
>>>>> When I call this:
>>>>> 	http://localhost/?sameName={sameName}
>>>>> id adds only first value.
>>>>>
>>>>> And this does not send anything.
>>>>> <map:generate src="http://127.0.0.1/">
>>>>> 	<map:parameter name="use-request-parameters" value="true"/>
>>>>> </map:generate>
>>>>>
>>>>>
>>>>> Renaming sameName parameter to sameName1, sameName2, ... is 
>>>>> not an option.
>>>>>
>>>>> Please help. Maybe it's a really newbie question, but I need 
>>>>> to hack an
>>>>> existing sitemap to support this and I don't want to see Cocoon again.
>>>>>
>>>>> BTW I'm using Cocoon 2.
>>>>>
>>>>> Thanks.
>>>>> -- 
>>>>> View this message in context: 
>>>> http://www.nabble.com/pass-checkbox-values-through-sitemap-tf2806933.html#a7831351
>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>> 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


Mime
View raw message