cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ignacio J. Ortega" <na...@siapi.es>
Subject [C2] Problems with cocoon_20_branch
Date Fri, 15 Jun 2001 22:40:47 GMT
Hola a todos:

Coocon Fresh checkout from CVS in last hours..

With this sitemap fragment :

8<-------------------------------------------------------
<map:match pattern="test.xml">
	<map:generate type="request"/>
	<map:serialize />
</map:match>
8<-------------------------------------------------------
 
I've got this StackTrace :
8<-------------------------------------------------------
java.lang.NullPointerException
	at
org.apache.xalan.serialize.SerializerToHTML.writeAttrString(SerializerTo
HTML.java:971)
	at
org.apache.xalan.serialize.SerializerToXML.processAttribute(SerializerTo
XML.java:997)
	at
org.apache.xalan.serialize.SerializerToXML.startElement(SerializerToXML.
java:869)
	at
org.apache.xalan.serialize.SerializerToHTML.startElement(SerializerToHTM
L.java:527)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transf
ormerIdentityImpl.java:994)
	at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:
96)
	at
org.apache.cocoon.serialization.AbstractTextSerializer.startElement(Abst
ractTextSerializer.java:243)
	at
org.apache.cocoon.generation.RequestGenerator.start(RequestGenerator.jav
a:123)
	at
org.apache.cocoon.generation.RequestGenerator.generate(RequestGenerator.
java:43)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEventPipeline.java:220)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:344)
8<-------------------------------------------------------

With this other:
8<-------------------------------------------------------
   <map:match pattern="test.pdf">
    <map:generate type="request"/>
    <map:transform src="stylesheets/identity.xsl"/>
    <map:serialize />
   </map:match>
8<-------------------------------------------------------

With "identity.xsl" being :
8<-------------------------------------------------------
<xsl:stylesheet 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    version="1.0">
<xsl:output method="xml" indent="yes" encoding="ISO-8859-1" />
  <xsl:template match="node()|@*">
    <xsl:copy><xsl:apply-templates /></xsl:copy>
  </xsl:template>
</xsl:stylesheet>
8<-------------------------------------------------------

I've got This output ( note the absence of Attributes for parameter
names and headers ):

8<-------------------------------------------------------
<request xmlns="http://xml.apache.org/cocoon/requestgenerator/2.0">

  <requestHeaders>
    <header>*/*</header>
    <header>es,en;q=0.5</header>
    <header>gzip, deflate</header>
    <header>Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)</header>
    <header>localhost:8080</header>
    <header>Keep-Alive</header>
  </requestHeaders>

  <requestParameters>
    <parameter>
      <value>38654564</value>
    </parameter>
  </requestParameters>

  <configurationParameters>
  </configurationParameters>

</request>
8<-------------------------------------------------------

And Worst of all with this identity.xsl ( Note the select attribute in
apply-templates ):
8<-------------------------------------------------------
<xsl:stylesheet 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    version="1.0">
<xsl:output method="xml" indent="yes" encoding="ISO-8859-1" />
  <xsl:template match="node()|@*">
    <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
  </xsl:template>
</xsl:stylesheet>
8<-------------------------------------------------------

I've Got this StackTrace in logs
8<-------------------------------------------------------
javax.xml.transform.TransformerException
	at
org.apache.xalan.transformer.TransformerImpl.waitTransformThread(Transfo
rmerImpl.java:2954)
	at
org.apache.xalan.stree.SourceTreeHandler.endDocument(SourceTreeHandler.j
ava:469)
	at
org.apache.cocoon.xml.ContentHandlerWrapper.endDocument(ContentHandlerWr
apper.java:91)
	at
org.apache.cocoon.generation.RequestGenerator.generate(RequestGenerator.
java:114)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEventPipeline.java:220)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:344)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN1FC(sitemap_xmap.java:2
835)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1564)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1409)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:168)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:96)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:328)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java)
	at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:50
0)
	at org.apache.tomcat.core.Handler.service(Handler.java:223)
	at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:448)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:865)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:778)
	at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Htt
p10Interceptor.java:150)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:43
5)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:505)
	at java.lang.Thread.run(Thread.java:484)
8<-------------------------------------------------------

TIA

Saludos ,
Ignacio J. Ortega

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


Mime
View raw message