You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/06/21 23:54:49 UTC
bug in latest cvs - related to context:// change?
i've got this match in my sitemap:
<map:match pattern="*">
<map:aggregate element="root">
<map:part src="plain/meta"/>
<map:part src="plain/{1}"/>
</map:aggregate>
<map:act type="resource-exists">
<map:parameter name="url" value="context://style/{1}.xsl"/>
<map:transform src="style/{../1}.xsl"/>
</map:act>
<map:select>
<map:when test="wap">
<map:transform src="style/wziml-wml.xsl"/>
<mal:serialize type="wap"/>
</map:when>
<map:otherwise>
<map:transform src="style/wziml-html.xsl"/>
<map:serialize type="html"/>
</map:otherwise>
</map:select>
</map:match>
it used to work fine, although i had to use context:/// instead of
context://. i just updated the site to use the latest c2 from cvs and now
i get this exception:
org.apache.cocoon.sitemap.PatternException: error occurred during
evaluation of expression "context://style/{1}.xsl" at position 17
null
at
org.apache.cocoon.sitemap.AbstractSitemap.substitute(AbstractSitemap.java:301)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN13(sitemap_xmap.java:873)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:730)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:686)
what's up with that?
on another note, i got this exception a little later:
DEBUG 59366 [cocoon ] (HttpProcessor[8080][4]): Exception in recycle:
java.lang.ClassNotFoundException: org.apache.xalan.stree.SourceTreeHandler
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
org.apache.cocoon.transformation.TraxTransformer.recycle(TraxTransformer.java:575)
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
even more bugs in latest cvs - related to xalan changes
Posted by Donald Ball <ba...@webslingerZ.com>.
wow, not only does the TraxTransformer.recycle() method fail now, but xsp
pages don't work at all! a sample exception:
WARN 35012 [cocoon ] (HttpProcessor[8080][4]):
ServerPagesGenerator.generate()
javax.xml.transform.TransformerException
at
org.apache.xalan.transformer.TransformerImpl.waitTransformThread(TransformerImpl.java:2884)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:397)
at
org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518)
at
org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518)
at
org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230)
at
org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLValidator.java:1079)
at
org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch(XMLDocumentScanner.java:1555)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:134)
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: bug in latest cvs - related to context:// change?
Posted by Donald Ball <ba...@webslingerZ.com>.
On Fri, 22 Jun 2001, giacomo wrote:
> > > Hmm.. I thought I've double checked all the sources, webapps and also
> > > tested with the samples that use a context:/// and haven't found any
> > > issues.
> >
> > okay, but that doesn't mean that it's working properly! _my_ sitemap
> > doesn't work. just testing the c2 samples isn't comprehensive. whatever
> > you did, broke my sitemap...!
>
> If I look at my commit log it seems strange that this caused that but
> should I revert it?
no, at least i don't think so, see my later message. poking even more
thoroughly, it's almost certainly something from earlier - but what?
*puzzled*
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: bug in latest cvs - related to context:// change?
Posted by giacomo <gi...@apache.org>.
On Thu, 21 Jun 2001, Donald Ball wrote:
> On Fri, 22 Jun 2001, giacomo wrote:
>
> > > i've got this match in my sitemap:
> > >
> > > <map:match pattern="*">
> > > <map:aggregate element="root">
> > > <map:part src="plain/meta"/>
> > > <map:part src="plain/{1}"/>
> > > </map:aggregate>
> > > <map:act type="resource-exists">
> > > <map:parameter name="url" value="context://style/{1}.xsl"/>
> > > <map:transform src="style/{../1}.xsl"/>
> > > </map:act>
> > > <map:select>
> > > <map:when test="wap">
> > > <map:transform src="style/wziml-wml.xsl"/>
> > > <mal:serialize type="wap"/>
> > > </map:when>
> > > <map:otherwise>
> > > <map:transform src="style/wziml-html.xsl"/>
> > > <map:serialize type="html"/>
> > > </map:otherwise>
> > > </map:select>
> > > </map:match>
> > >
> > > it used to work fine, although i had to use context:/// instead of
> > > context://. i just updated the site to use the latest c2 from cvs and now
> > > i get this exception:
> >
> > Hmm.. I thought I've double checked all the sources, webapps and also
> > tested with the samples that use a context:/// and haven't found any
> > issues.
>
> okay, but that doesn't mean that it's working properly! _my_ sitemap
> doesn't work. just testing the c2 samples isn't comprehensive. whatever
> you did, broke my sitemap...!
If I look at my commit log it seems strange that this caused that but
should I revert it?
Giacomo
>
> > > org.apache.cocoon.sitemap.PatternException: error occurred during
> > > evaluation of expression "context://style/{1}.xsl" at position 17
> > > null
> > > at
> > > org.apache.cocoon.sitemap.AbstractSitemap.substitute(AbstractSitemap.java:301)
>
> the underlying exception is:
>
> java.lang.NullPointerException
> at
> org.apache.cocoon.sitemap.AbstractSitemap.substitute(AbstractSitemap.java:288)
> at
> org.apache.cocoon.www.sitemap_xmap.wildcardMatchN1F(sitemap_xmap.java:987)
>
> which is this delightful line:
>
> result.append(((Object)((Map)list.get(k)).get(s)).toString());
>
> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: bug in latest cvs - related to context:// change?
Posted by Donald Ball <ba...@webslingerZ.com>.
On Fri, 22 Jun 2001, giacomo wrote:
> > i've got this match in my sitemap:
> >
> > <map:match pattern="*">
> > <map:aggregate element="root">
> > <map:part src="plain/meta"/>
> > <map:part src="plain/{1}"/>
> > </map:aggregate>
> > <map:act type="resource-exists">
> > <map:parameter name="url" value="context://style/{1}.xsl"/>
> > <map:transform src="style/{../1}.xsl"/>
> > </map:act>
> > <map:select>
> > <map:when test="wap">
> > <map:transform src="style/wziml-wml.xsl"/>
> > <mal:serialize type="wap"/>
> > </map:when>
> > <map:otherwise>
> > <map:transform src="style/wziml-html.xsl"/>
> > <map:serialize type="html"/>
> > </map:otherwise>
> > </map:select>
> > </map:match>
> >
> > it used to work fine, although i had to use context:/// instead of
> > context://. i just updated the site to use the latest c2 from cvs and now
> > i get this exception:
>
> Hmm.. I thought I've double checked all the sources, webapps and also
> tested with the samples that use a context:/// and haven't found any
> issues.
okay, but that doesn't mean that it's working properly! _my_ sitemap
doesn't work. just testing the c2 samples isn't comprehensive. whatever
you did, broke my sitemap...!
> > org.apache.cocoon.sitemap.PatternException: error occurred during
> > evaluation of expression "context://style/{1}.xsl" at position 17
> > null
> > at
> > org.apache.cocoon.sitemap.AbstractSitemap.substitute(AbstractSitemap.java:301)
the underlying exception is:
java.lang.NullPointerException
at
org.apache.cocoon.sitemap.AbstractSitemap.substitute(AbstractSitemap.java:288)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN1F(sitemap_xmap.java:987)
which is this delightful line:
result.append(((Object)((Map)list.get(k)).get(s)).toString());
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: bug in latest cvs - related to context:// change?
Posted by giacomo <gi...@apache.org>.
On Thu, 21 Jun 2001, Donald Ball wrote:
> i've got this match in my sitemap:
>
> <map:match pattern="*">
> <map:aggregate element="root">
> <map:part src="plain/meta"/>
> <map:part src="plain/{1}"/>
> </map:aggregate>
> <map:act type="resource-exists">
> <map:parameter name="url" value="context://style/{1}.xsl"/>
> <map:transform src="style/{../1}.xsl"/>
> </map:act>
> <map:select>
> <map:when test="wap">
> <map:transform src="style/wziml-wml.xsl"/>
> <mal:serialize type="wap"/>
> </map:when>
> <map:otherwise>
> <map:transform src="style/wziml-html.xsl"/>
> <map:serialize type="html"/>
> </map:otherwise>
> </map:select>
> </map:match>
>
> it used to work fine, although i had to use context:/// instead of
> context://. i just updated the site to use the latest c2 from cvs and now
> i get this exception:
Hmm.. I thought I've double checked all the sources, webapps and also
tested with the samples that use a context:/// and haven't found any
issues.
Giacomo
>
> org.apache.cocoon.sitemap.PatternException: error occurred during
> evaluation of expression "context://style/{1}.xsl" at position 17
> null
> at
> org.apache.cocoon.sitemap.AbstractSitemap.substitute(AbstractSitemap.java:301)
> at
> org.apache.cocoon.www.sitemap_xmap.wildcardMatchN13(sitemap_xmap.java:873)
> at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:730)
> at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:686)
>
> what's up with that?
>
> on another note, i got this exception a little later:
>
> DEBUG 59366 [cocoon ] (HttpProcessor[8080][4]): Exception in recycle:
> java.lang.ClassNotFoundException: org.apache.xalan.stree.SourceTreeHandler
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at
> org.apache.cocoon.transformation.TraxTransformer.recycle(TraxTransformer.java:575)
>
> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org