cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien DEHAY ...@zorel.org>
Subject NPE with xmldb, resource & i18n
Date Sun, 28 Aug 2005 17:12:40 GMT
Hello.

Here is my pipeline:
            <map:match pattern="cforms/proceed">
                <map:generate type="jx" src="populate.xml"/>
                <map:transform type="xmldb"/>
                <map:call resource="xhtml-output"/>
            </map:match>

The xhtml-output resource:
        <map:resource name="xhtml-output">
            <map:act type="locale">
                <map:transform type="i18n">
                    <map:parameter name="locale" value="{locale}"/>
                </map:transform>
                <map:transform type="omitns">
                    <map:parameter name="omit-namespaces" value="xquery
db ci i18n fi"/>
                </map:transform>
                <map:match type="accept"
pattern='"**application/xhtml+xml**"'>
                    <map:serialize type="xhtml" mime-type="">
                        <encoding>utf-8</encoding>
                    </map:serialize>
                </map:match>
                <map:serialize type="html" mime-type="">
                    <encoding>utf-8</encoding>
                </map:serialize>
            </map:act>
        </map:resource>

When I call the cforms/proceed, I've got an NPE:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.NullPointerException
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:582)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:183)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)

Bellow:
Caused by: java.lang.NullPointerException
	at org.xml.sax.helpers.AttributesImpl.getIndex(AttributesImpl.java:203)
	at
org.apache.cocoon.transformation.I18nTransformer.translateAttributes(I18nTransformer.java:1562)
	at
org.apache.cocoon.transformation.I18nTransformer.startElement(I18nTransformer.java:1152)
	at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94)
	at
org.apache.cocoon.transformation.XMLDBTransformer.endElement(XMLDBTransformer.java:513)
	at
org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.java:2624)
	at
org.apache.cocoon.generation.JXTemplateGenerator.performGeneration(JXTemplateGenerator.java:2485)
	at
org.apache.cocoon.generation.JXTemplateGenerator.generate(JXTemplateGenerator.java:2479)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:575)
	... 54 more



Is there anybody how have an idea about this issue?

Thanks. Aurélien.

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


Mime
View raw message