Hi!!

By trying to display the i18n sample page I get the following error. In the
stacktrace it looks like the error occurs in the FileGenerator, but im doing
nothing else than trying to generate the file
(/opt/jakarta/webapps/cocoon/i18n/simple.xml -  which came with the cocoon
download)

Thanks for your help!!

/Markus

Description:org.apache.cocoon.ProcessingException: Could not read resource
file:/opt/jakarta/webapps/cocoon/i18n/simple.xml:
java.lang.NullPointerException

Stacktrace:

org.apache.cocoon.ProcessingException: Could not read resource
file:/opt/jakarta/webapps/cocoon/i18n/simple.xml:
java.lang.NullPointerException
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:155)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.www.i18n.sitemap_xmap.matchN10021(/opt/jakarta/work/localh
ost_8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:
487)
at
org.apache.cocoon.www.i18n.sitemap_xmap.process(/opt/jakarta/work/localhost_
8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:366)
at
org.apache.cocoon.www.i18n.sitemap_xmap.process(/opt/jakarta/work/localhost_
8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:312)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.www.sitemap_xmap.matchN1063A(/opt/jakarta/work/localhost_8
080%2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:7438)
at
org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/localhost_8080%
2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3537)
at
org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/localhost_8080%
2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3133)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
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:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java)
at org.apache.tomcat.core.Handler.service(Handler.java)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java)
at java.lang.Thread.run(Thread.java:479)
java.lang.NullPointerException
at org.xml.sax.helpers.AttributesImpl.getIndex(AttributesImpl.java:222)
at
org.apache.cocoon.transformation.I18nTransformer.translateAttributes(I18nTra
nsformer.java:1154)
at
org.apache.cocoon.transformation.I18nTransformer.startElement(I18nTransforme
r.java:871)
at
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:118
)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:965)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1858)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1234)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:241)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:206)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:142)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.www.i18n.sitemap_xmap.matchN10021(/opt/jakarta/work/localh
ost_8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:
487)
at
org.apache.cocoon.www.i18n.sitemap_xmap.process(/opt/jakarta/work/localhost_
8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:366)
at
org.apache.cocoon.www.i18n.sitemap_xmap.process(/opt/jakarta/work/localhost_
8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/sitemap_xmap.java:312)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.www.sitemap_xmap.matchN1063A(/opt/jakarta/work/localhost_8
080%2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:7438)
at
org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/localhost_8080%
2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3537)
at
org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/localhost_8080%
2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3133)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
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:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java)
at org.apache.tomcat.core.Handler.service(Handler.java)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java)
at java.lang.Thread.run(Thread.java:479)

  _____
Markus Alin      tel:    +41 1 455 70 08
Swissrisk AG     fax:    +41 1 455 70 01
Räffelstrasse 32         mobile:         +41 79 706 58 90
8045 Zürich      mail:   [EMAIL PROTECTED]
Switzerland      home:   www.swissrisk.com
  _____





---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to