What is the version of your Cocoon? Take a look at the log - there must be another more interesting Exception, like NullPointerException or SAXException.
-- Konstantin Piroumian [EMAIL PROTECTED] > -----Original Message----- > From: Markus Alin [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 01, 2002 2:49 PM > To: [EMAIL PROTECTED] > Subject: [HELP]Could not read resource > file:/opt/jakarta/webapps/cocoon/i18n/simple.xml > > > 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(FileGenera > tor.java:155) > at > org.apache.cocoon.components.pipeline.CachingEventPipeline.pro > cess(CachingEv > entPipeline.java:251) > at > org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr > ocess(CachingS > treamPipeline.java:399) > at > org.apache.cocoon.www.i18n.sitemap_xmap.matchN10021(/opt/jakar > ta/work/localh > ost_8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/site > map_xmap.java: > 487) > at > org.apache.cocoon.www.i18n.sitemap_xmap.process(/opt/jakarta/w > ork/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/w > ork/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/wo > rk/localhost_8 > 080%2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.j > ava:7438) > at > org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/l > ocalhost_8080% > 2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3537) > at > org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/l > ocalhost_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(SitemapManage > r.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(ContextM > anager.java) > at org.apache.tomcat.core.ContextManager.service(ContextManager.java) > at > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro > cessConnection > (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.translateAttr > ibutes(I18nTra > nsformer.java:1154) > at > org.apache.cocoon.transformation.I18nTransformer.startElement( > I18nTransforme > r.java:871) > at > org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTe > ePipe.java:118 > ) > at > org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) > at > org.apache.xerces.validators.common.XMLValidator.callStartElem > ent(XMLValidat > or.java:965) > at > org.apache.xerces.framework.XMLDocumentScanner.scanElement(XML > DocumentScanne > r.java:1858) > at > org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch > er.dispatch(XM > LDocumentScanner.java:1234) > at > org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDo > cumentScanner. > 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(FileGenera > tor.java:142) > at > org.apache.cocoon.components.pipeline.CachingEventPipeline.pro > cess(CachingEv > entPipeline.java:251) > at > org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr > ocess(CachingS > treamPipeline.java:399) > at > org.apache.cocoon.www.i18n.sitemap_xmap.matchN10021(/opt/jakar > ta/work/localh > ost_8080%2Fcocoon/cocoon-files/org/apache/cocoon/www/i18n/site > map_xmap.java: > 487) > at > org.apache.cocoon.www.i18n.sitemap_xmap.process(/opt/jakarta/w > ork/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/w > ork/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/wo > rk/localhost_8 > 080%2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.j > ava:7438) > at > org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/l > ocalhost_8080% > 2Fcocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3537) > at > org.apache.cocoon.www.sitemap_xmap.process(/opt/jakarta/work/l > ocalhost_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(SitemapManage > r.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(ContextM > anager.java) > at org.apache.tomcat.core.ContextManager.service(ContextManager.java) > at > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro > cessConnection > (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]> > --------------------------------------------------------------------- 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]>