cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <jer...@media.demon.co.uk>
Subject Exception with SQL Transformer: java.util.EmptyStackException
Date Fri, 22 Nov 2002 12:58:02 GMT
Dear All,

I have just found an exception while using the SQLTransformer.

I have a pipeline like this:


<map:match pattern="archive/*/index">
  <map:aggregate element="aggregation">
   <map:part src="content/archive/{1}/index.xml"/>
   <map:part src="parts/components/header/archive.xml" element="header"/>
   <map:part src="parts/components/archive-menu/{1}.xml"  
element="archive-menu"/>
   <map:part src="parts/components/main-menu/archive.xml"  
element="main-menu"/>
   <map:part src="parts/components/main-menu/main.xml"  
element="main-menu"/>
   <map:part src="parts/components/footer/main.xml" element="footer"/>
  </map:aggregate>
<!-- problem here -->
  <map:transform src="parts/xsl/copy.xsl"/>
  <map:transform type="sql">
   <map:parameter name="use-connection" value="iniva_archive"/>
   <map:parameter name="show-nr-of-rows" value="true"/>
  </map:transform>
  <map:transform src="parts/xsl/insert-components.xsl"/>
  <map:call resource="html">
   <map:parameter name="res" value="archive/{1}/index"/>
   <map:parameter name="prefix" value="../../"/>
   <map:parameter name="display" value="css2"/>
  </map:call>
</map:match>


If I have the SQLTransformer right after the aggregation, I get the  
exception, below, if I put in an xslt transformation step first, I  
don't! The 'copy.xsl' is a bogus step, it just copies verbose.

Any suggestions welcome ....

regards Jeremy



Something is happening at the end of the SQLTransformer's job, which  
results in the java.util.EmptyStackException report on the page.

The exception (from sitemap.log):


DEBUG   (2002-11-22) 12:14.40:303   [sitemap]  
(/cocoon/iniva/archive/people/index)  
Thread-8/AbstractCachingProcessingPipeline: Cached response not found  
for 'archive/people/index' using key:  
PK_G-<aggregator>-CA(:aggregation<>)P=false:file:/Users/jermq/Library/ 
TomCat/webapps/cocoon/iniva/content/archive/people/ 
index.xml;P=:header<>:false:file:/Users/jermq/Library/TomCat/webapps/ 
cocoon/iniva/parts/components/header/archive.xml;P=:archive- 
menu<>:false:file:/Users/jermq/Library/TomCat/webapps/cocoon/iniva/ 
parts/components/archive-menu/people.xml;P=:main-menu<>:false:file:/ 
Users/jermq/Library/TomCat/webapps/cocoon/iniva/parts/components/main- 
menu/archive.xml;P=:main-menu<>:false:file:/Users/jermq/Library/TomCat/ 
webapps/cocoon/iniva/parts/components/main-menu/ 
main.xml;P=:footer<>:false:file:/Users/jermq/Library/TomCat/webapps/ 
cocoon/iniva/parts/components/footer/main.xml;
DEBUG   (2002-11-22) 12:14.40:339   [sitemap]  
(/cocoon/iniva/archive/people/index)  
Thread-8/AbstractCachingProcessingPipeline: Caching content for further  
requests of 'archive/people/index'.
DEBUG   (2002-11-22) 12:14.41:234   [sitemap]  
(/cocoon/iniva/archive/people/index) Thread-8/ContentAggregator:  
ContentAggregator: generating aggregated content
DEBUG   (2002-11-22) 12:14.41:235   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/AbstractSAXTransformer:  
BEGIN setupTransforming
DEBUG   (2002-11-22) 12:14.41:236   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/AbstractSAXTransformer:  
END setupTransforming
DEBUG   (2002-11-22) 12:14.41:249   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/SQLTransformer: PUBLIC  
ID: null
DEBUG   (2002-11-22) 12:14.41:251   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/SQLTransformer: SYSTEM  
ID:  
file:/Users/jermq/Library/TomCat/webapps/cocoon/iniva/content/archive/ 
people/index.xml
DEBUG   (2002-11-22) 12:14.41:291   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/SQLTransformer: PUBLIC  
ID: null
DEBUG   (2002-11-22) 12:14.41:292   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/SQLTransformer: SYSTEM  
ID:  
file:/Users/jermq/Library/TomCat/webapps/cocoon/iniva/parts/components/ 
header/archive.xml
DEBUG   (2002-11-22) 12:14.41:307   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/SQLTransformer: PUBLIC  
ID: null
DEBUG   (2002-11-22) 12:14.41:308   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/SQLTransformer: SYSTEM  
ID:  
file:/Users/jermq/Library/TomCat/webapps/cocoon/iniva/parts/components/ 
archive-menu/people.xml
DEBUG   (2002-11-22) 12:14.41:310   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/SQLTransformer: RECEIVED  
START ELEMENT execute-query
DEBUG   (2002-11-22) 12:14.41:344   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/SQLTransformer: RECEIVED  
START ELEMENT query
DEBUG   (2002-11-22) 12:14.41:346   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/AbstractSAXTransformer:  
BEGIN startSerializedXMLRecording format={encoding=ISO-8859-1,  
omit-xml-declaration=yes, method=text}
DEBUG   (2002-11-22) 12:14.41:347   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/AbstractSAXTransformer:  
BEGIN startRecording
DEBUG   (2002-11-22) 12:14.41:408   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/AbstractSAXTransformer:  
END startRecording
DEBUG   (2002-11-22) 12:14.41:410   [sitemap.transformer.sql]  
(/cocoon/iniva/archive/people/index) Thread-8/AbstractSAXTransformer:  
END startSerializedXMLRecording
WARN    (2002-11-22) 12:14.41:429   [sitemap]  
(/cocoon/iniva/archive/people/index)  
Thread-8/ExcaliburComponentManager: ComponentLocator exception from  
parent CM during lookup.
org.apache.avalon.framework.component.ComponentException: Could not  
find component
	at  
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(E 
xcaliburComponentManager.java:255)
	at  
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonCompone 
ntManager.java:249)
	at  
org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentM 
anagerProxy.lookup(DefaultComponentFactory.java:393)
	at  
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(E 
xcaliburComponentManager.java:185)
	at  
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonCompone 
ntManager.java:249)
	at  
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(E 
xcaliburComponentManager.java:185)
	at  
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonCompone 
ntManager.java:249)
	at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invokeEr 
rorHandler(PipelineNode.java:198)
	at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P 
ipelineNode.java:175)
	at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:109)
	at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( 
PipelinesNode.java:143)
	at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro 
cessor.java:326)
	at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro 
cessor.java:308)
	at  
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun 
tNode.java:131)
	at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:85)
	at  
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i 
nvoke(PreparableMatchNode.java:166)
	at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:109)
	at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P 
ipelineNode.java:153)
	at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:109)
	at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( 
PipelinesNode.java:143)
	at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro 
cessor.java:326)
	at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro 
cessor.java:308)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
	at  
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1069)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica 
tionFilterChain.java:247)
	at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt 
erChain.java:193)
	at  
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv 
e.java:260)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i 
nvokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 
80)
	at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at  
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv 
e.java:191)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i 
nvokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 
80)
	at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at  
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239 
6)
	at  
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java 
:180)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i 
nvokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa 
lve.java:170)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i 
nvokeNext(StandardPipeline.java:641)
	at  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java 
:172)
	at  
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i 
nvokeNext(StandardPipeline.java:641)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 
80)
	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.i 
nvokeNext(StandardPipeline.java:643)
	at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 
80)
	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:40 
5)
	at  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC 
onnection(Http11Protocol.java:380)
	at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50 
8)
	at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool 
.java:533)
	at java.lang.Thread.run(Thread.java:491)


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message