cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d.mad...@pro-netics.com
Subject Xml issue with jxtg and paginator
Date Wed, 11 Aug 2004 15:25:19 GMT
Hi,
I'm trying to port my application delevoped under a cvs snapshot of
2.1.5-dev to the latest release (2.1.5.1).

This is my sitemap:

    <map:match pattern="statementList(*)">
        <map:generate src="resources/jxt/balance-list.jxt" type="jxtg"/>
        <map:transform src="resources/xsl/statements-id.xsl"/>
        <map:transform src="resources/xml/transaction-paginator.xml"
type="paginator">
            <map:parameter name="page" value="{1}"/>
        </map:transform>
        <map:transform src="resources/xsl/balance-list.xsl">
          <map:parameter name="mountpoint" value="{global:mountpoint}"/>
          <map:parameter name="date" value="{date:format}"/>
        </map:transform>
        <map:transform type="i18n">
            <map:parameter name="locale" value="{request:locale}"/>
        </map:transform>
        <map:serialize type="xml"/>
    </map:match>

balance-list.jxt has only one jx:out dealing with a Document received from
flow

<?xml version="1.0"?>
<jx:out value="${document.firstChild}"
xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"/>

the document is well-formed

and this is the error:

java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException:
String index out of range: -1
        at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3418)
        at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:389)
        at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)
        at
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:549)
        at
org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.java:3230)
        at
org.apache.cocoon.generation.JXTemplateGenerator.performGeneration(JXTemplateGenerator.java:2979)
        at
org.apache.cocoon.generation.JXTemplateGenerator.generate(JXTemplateGenerator.java:2970)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:545)
        at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:173)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:490)
        at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:120)


Now if I comment paginator transformer all works fine, but I don't find
the link from stacktrace and paginator. This seems an issue with JXT, but
the interaction with the paginator transformer is quite suspicious. I got
the same behaviour with xalan-2.6.0.jar taken from cvs snapshot of
2.1.5-dev (same version but different size).

Any hints?

TIA,

-- 
Daniele Madama

Pro-netics s.r.l.
Via Elio Lampridio Cerva 127/c
Roma
Tel. 0651530849
http://www.pro-netics.com

Mime
View raw message