cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ignacio J. Ortega" <na...@siapi.es>
Subject RE: [C2] Problems with cocoon_20_branch
Date Mon, 18 Jun 2001 07:40:43 GMT
HOla a todos:

Sorry for repliying to myself, perhaps is better to post a bug with this
findings on nagoya?

I'm saying something stupid, or that belongs to Cocoon-user?

Any comment will be appreciated, TIA

Saludos ,
Ignacio J. Ortega


> -----Mensaje original-----
> De: Ignacio J. Ortega [mailto:nacho@siapi.es]
> Enviado el: sábado 16 de junio de 2001 0:41
> Para: 'cocoon-dev@xml.apache.org'
> Asunto: [C2] Problems with cocoon_20_branch
> 
> 
> 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(Se
> rializerTo
> HTML.java:971)
> 	at
> org.apache.xalan.serialize.SerializerToXML.processAttribute(Se
> rializerTo
> XML.java:997)
> 	at
> org.apache.xalan.serialize.SerializerToXML.startElement(Serial
> izerToXML.
> java:869)
> 	at
> org.apache.xalan.serialize.SerializerToHTML.startElement(Seria
> lizerToHTM
> L.java:527)
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.startElem
> ent(Transf
> ormerIdentityImpl.java:994)
> 	at
> org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXML
> Pipe.java:
> 96)
> 	at
> org.apache.cocoon.serialization.AbstractTextSerializer.startEl
> ement(Abst
> ractTextSerializer.java:243)
> 	at
> org.apache.cocoon.generation.RequestGenerator.start(RequestGen
> erator.jav
> a:123)
> 	at
> org.apache.cocoon.generation.RequestGenerator.generate(Request
> Generator.
> java:43)
> 	at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(Cachi
> ngEventPipeline.java:220)
> 	at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(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.waitTransformThre
> ad(Transfo
> rmerImpl.java:2954)
> 	at
> org.apache.xalan.stree.SourceTreeHandler.endDocument(SourceTre
> eHandler.j
> ava:469)
> 	at
> org.apache.cocoon.xml.ContentHandlerWrapper.endDocument(Conten
> tHandlerWr
> apper.java:91)
> 	at
> org.apache.cocoon.generation.RequestGenerator.generate(Request
> Generator.
> java:114)
> 	at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(Cachi
> ngEventPipeline.java:220)
> 	at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(Cach
> ingStreamPipeline.java:344)
> 	at
> org.apache.cocoon.www.sitemap_xmap.wildcardMatchN1FC(sitemap_x
> map.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(ServletHandl
> er.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(ContextM
> anager.jav
> a:865)
> 	at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:778)
> 	at
> org.apache.tomcat.modules.server.Http10Interceptor.processConn
> ection(Htt
> p10Interceptor.java:150)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.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
> 
> 

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


Mime
View raw message