cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21243] New: - <xsl:comment> in xsl causes java null pointer exception
Date Tue, 01 Jul 2003 21:34:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21243>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21243

<xsl:comment> in xsl causes java null pointer exception

           Summary: <xsl:comment> in xsl causes java null pointer exception
           Product: Cocoon 2
           Version: 2.0.4
          Platform: PC
               URL: http://65.161.204.161/cocoon/mount/work/fails.html
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: eric@timebytes.com
                CC: eric@timebytes.com


http://65.161.204.161/cocoon/mount/work/fails.html

Fails.

http://65.161.204.161/cocoon/mount/work/works.html

Works.

Same source xml file:

$ cat works.xml
<course id="4567" title="How Widgets Work" 
xmlns:xinclude="http://www.w3.org/2001/XInclude">
</course>
$ diff works.xml fails.xml

XSL files are the same, except for <xsl:comment>
$ cat fails.xsl
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:comment>Generated by LRNXML Framework V 0.01 on DATE</xsl:comment>
<xsl:template match="course">
  <html>
  Works
  </html>
</xsl:template>
</xsl:stylesheet>
$ diff works.xsl fails.xsl
1a2
> <xsl:comment>Generated by LRNXML Framework V 0.01 on DATE</xsl:comment>
$

Error message from cocoon:
Cocoon 2 - Internal server error

--------------------------------------------------------------------------------

type fatal

message Exception during processing of 
file:/usr/tomcat/webapps/cocoon/mount/work/fails.xsl

description org.apache.cocoon.ProcessingException: Exception during processing 
of file:/usr/tomcat/webapps/cocoon/mount/work/fails.xsl: 
java.lang.NullPointerException

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Exception during processing of 
file:/usr/tomcat/webapps/cocoon/mount/work/fails.xsl: 
java.lang.NullPointerException
	at org.apache.cocoon.components.source.AbstractStreamSource.toSAX
(AbstractStreamSource.java:214)
	at 
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler
(XSLTProcessorImpl.java:268)
	at 
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler
(XSLTProcessorImpl.java:239)
	at org.apache.cocoon.transformation.TraxTransformer.setup
(TraxTransformer.java:310)
	at 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline
(AbstractEventPipeline.java:215)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup
(CachingEventPipeline.java:278)
	at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey
(CachingEventPipeline.java:141)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process
(CachingStreamPipeline.java:313)
	at org.apache.cocoon.www.mount.work.sitemap_xmap.matchN40001E
(/usr/jakarta-tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/mount/work/sitemap_xmap.java:474)
	at org.apache.cocoon.www.mount.work.sitemap_xmap.process(/usr/jakarta-
tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/mount/work/sitemap_xmap.java:373)
	at org.apache.cocoon.www.mount.work.sitemap_xmap.process(/usr/jakarta-
tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/mount/work/sitemap_xmap.java:318)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at org.apache.cocoon.sitemap.AbstractSitemap.invoke
(AbstractSitemap.java:308)
	at org.apache.cocoon.www.sitemap_xmap.matchN4005A9(/usr/jakarta-tomcat-
4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/sitemap_xmap.java:6482)
	at org.apache.cocoon.www.sitemap_xmap.process(/usr/jakarta-tomcat-
4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/sitemap_xmap.java:3339)
	at org.apache.cocoon.www.sitemap_xmap.process(/usr/jakarta-tomcat-
4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/sitemap_xmap.java:3091)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at org.apache.cocoon.sitemap.SitemapManager.process
(SitemapManager.java:152)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
	at org.apache.cocoon.servlet.CocoonServlet.service
(CocoonServlet.java:1043)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:256)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2415)
	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:171)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service
(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:594)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio
n(Http11Protocol.java:392)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:565)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
	at org.apache.xalan.processor.StylesheetHandler.startElement
(StylesheetHandler.java:656)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
	at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown 
Source)
	at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:264)
	at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:219)
	at org.apache.cocoon.components.source.AbstractStreamSource.toSAX
(AbstractStreamSource.java:206)
	... 51 more
java.lang.NullPointerException
	at org.apache.xalan.processor.StylesheetHandler.startElement
(StylesheetHandler.java:656)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
	at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown 
Source)
	at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:264)
	at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:219)
	at org.apache.cocoon.components.source.AbstractStreamSource.toSAX
(AbstractStreamSource.java:206)
	at 
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler
(XSLTProcessorImpl.java:268)
	at 
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler
(XSLTProcessorImpl.java:239)
	at org.apache.cocoon.transformation.TraxTransformer.setup
(TraxTransformer.java:310)
	at 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline
(AbstractEventPipeline.java:215)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup
(CachingEventPipeline.java:278)
	at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey
(CachingEventPipeline.java:141)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process
(CachingStreamPipeline.java:313)
	at org.apache.cocoon.www.mount.work.sitemap_xmap.matchN40001E
(/usr/jakarta-tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/mount/work/sitemap_xmap.java:474)
	at org.apache.cocoon.www.mount.work.sitemap_xmap.process(/usr/jakarta-
tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/mount/work/sitemap_xmap.java:373)
	at org.apache.cocoon.www.mount.work.sitemap_xmap.process(/usr/jakarta-
tomcat-4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/mount/work/sitemap_xmap.java:318)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at org.apache.cocoon.sitemap.AbstractSitemap.invoke
(AbstractSitemap.java:308)
	at org.apache.cocoon.www.sitemap_xmap.matchN4005A9(/usr/jakarta-tomcat-
4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/sitemap_xmap.java:6482)
	at org.apache.cocoon.www.sitemap_xmap.process(/usr/jakarta-tomcat-
4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/sitemap_xmap.java:3339)
	at org.apache.cocoon.www.sitemap_xmap.process(/usr/jakarta-tomcat-
4.1.24/work/Standalone/localhost/cocoon/cocoon-
files/org/apache/cocoon/www/sitemap_xmap.java:3091)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at org.apache.cocoon.sitemap.SitemapManager.process
(SitemapManager.java:152)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
	at org.apache.cocoon.servlet.CocoonServlet.service
(CocoonServlet.java:1043)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:256)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2415)
	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:171)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service
(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:594)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio
n(Http11Protocol.java:392)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:565)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:536)


request-uri

/cocoon/mount/work/fails.html

path-info

mount/work/fails.html

Mime
View raw message