cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miguel Carvalho" <mig.c...@mail.telepac.pt>
Subject RE: problem creating a new transformer
Date Wed, 06 Aug 2003 14:36:23 GMT
Hi again, after i have upgraded to 2.0.4 and corrected some problems in the
transformer i ended up getting this:

the first part of the result (marked) bellow is ok, and i am applying this
to the html serializer, and this is the result

<!--This is ok-->
<document xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:util="http://apache.org/xsp/util/2.0"
xmlns:xsp="http://apache.org/xsp" xmlns:dae="http://laseeb/dae/sgDae">
    <dae:contents color="red">
        <dae:article color="red" xmlns:dae="http://laseeb/dae/sgDae"
xmlns:src="http://xml.apache.org/xindice/Query">
<dae:title>Titulo com rating 2</dae:title>
<dae:article color="red" xmlns:dae="http://laseeb/dae/sgDae"
xmlns:src="http://xml.apache.org/xindice/Query">
<dae:title>Titulo com rating 2Titulo do artigo com rating igual a
1</dae:title>
<dae:article color="red" xmlns:dae="http://laseeb/dae/sgDae"
xmlns:src="http://xml.apache.org/xindice/Query">
<dae:title>Titulo com rating 2Titulo do artigo com rating igual a 1Titulo do
artigo com rating igual a 2</dae:title>
<dae:article color="red" xmlns:dae="http://laseeb/dae/sgDae"
xmlns:src="http://xml.apache.org/xindice/Query">
<dae:title>Titulo com rating 2Titulo do artigo com rating igual a 1Titulo do
artigo com rating igual a 2Titulo do artigo com rating igual a 2</dae:title>
    </dae:contents>

</document>
<!--This is ok-->

<html><head><title>Internal server error</title><STYLE><!--H1{font-family
:
sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color :
white;} B{color : white;background-color : #0086b2;} HR{color :
#0086b2;} --></STYLE> </head><body><h1>Cocoon 2 - Internal server
error</h1><HR size="1" noshade><p><b>type</b>
internal-server-error</p><p><b>message</b> <u>Failed to execute
pipeline.</u></p><p><b>description</b>
<u>org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.ArrayIndexOutOfBoundsException: -1</u></p><p><b>sender</b>
org.apache.cocoon.servlet.CocoonServlet</p><p><b>source</b> Cocoon
servlet</p><p><b>exception</b><pre>org.apache.cocoon.ProcessingException:
Failed to execute pipeline.:
java.lang.ArrayIndexOutOfBoundsException: -1</pre></p><p><b>request-uri</b><
pre>/dae/daestart</pre></p><p><b>original exception</b><pre>Original
exception : java.lang.ArrayIndexOutOfBoundsException: -1
	at org.apache.xml.utils.BoolStack.pop(BoolStack.java:134)
	at
org.apache.xalan.serialize.SerializerToHTML.endElement(SerializerToHTML.java
:706)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerI
dentityImpl.java:1047)	at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:104)
	at
org.apache.cocoon.serialization.AbstractTextSerializer.endElement(AbstractTe
xtSerializer.java:335)
	at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:104)
	at
pt.laseeb.dae.transformer.daeTransformer.endElement(daeTransformer.java:210)
	at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:228)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:359)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400194(sitemap_xmap.java:16
53)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1424)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1383)
	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:592)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:644)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:644)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:644)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:376)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:518)
	at java.lang.Thread.run(Thread.java:536)

</pre></p><p><b>path-info</b><pre>daestart</pre></p><p><b>stacktrace</b><pre
>org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.ArrayIndexOutOfBoundsException: -1
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:374)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400194(sitemap_xmap.java:16
53)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1424)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1383)
	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:592)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:644)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:644)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:644)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:376)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:518)
	at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
	at org.apache.xml.utils.BoolStack.pop(BoolStack.java:134)
	at
org.apache.xalan.serialize.SerializerToHTML.endElement(SerializerToHTML.java
:706)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerI
dentityImpl.java:1047)
	at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:104)
	at
org.apache.cocoon.serialization.AbstractTextSerializer.endElement(AbstractTe
xtSerializer.java:335)
	at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:104)
	at
pt.laseeb.dae.transformer.daeTransformer.endElement(daeTransformer.java:210)
	at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:228)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:359)
	... 39 more
java.lang.ArrayIndexOutOfBoundsException: -1
	at org.apache.xml.utils.BoolStack.pop(BoolStack.java:134)
	at
org.apache.xalan.serialize.SerializerToHTML.endElement(SerializerToHTML.java
:706)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerI
dentityImpl.java:1047)
	at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:104)
	at
org.apache.cocoon.serialization.AbstractTextSerializer.endElement(AbstractTe
xtSerializer.java:335)
	at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:104)
	at
pt.laseeb.dae.transformer.daeTransformer.endElement(daeTransformer.java:210)
	at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:228)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:359)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400194(sitemap_xmap.java:16
53)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1424)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1383)
	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:592)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:644)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:644)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:644)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:376)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:518)
	at java.lang.Thread.run(Thread.java:536)
</pre></p><HR size="1" noshade></body></html>

Does anyone know what is going wrong here? becaus i don't have a clue :(


Thanks in advance for your time :)
Miguel Carvalho

-----Original Message-----
From: Bruno Dumon [mailto:bruno@outerthought.org]
Sent: quarta-feira, 6 de Agosto de 2003 13:21
To: users@cocoon.apache.org
Subject: RE: problem creating a new transformer


On Wed, 2003-08-06 at 14:11, Miguel Carvalho wrote:
> hmmm...
>
> i've started this project begining with an example "chello", but i also
> downloaded and tried the cocoon version 2.0.4, perhaps that is why i
> confused it.
>
> In the libs directory of the project there is a jar cocoo-2.0rc2.jar,
maybe
> this is the version.

Wow, that version is so old that I won't even bother to look further. I
recommend that your upgrade to Cocoon 2.0.4.

--
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@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