cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kjetil Midtlie" <kjetil.midt...@gmail.com>
Subject cocoon-html-impl (1.0.0-rc2)
Date Fri, 21 Dec 2007 08:57:15 GMT
Hi!

I'm testing out the html-generator on a "dirty" site :

<map:match pattern="">
        <map:generate type="html" src="
http://dojotoolkit.org/book/dojo-book-0-9-0" />
        <!-- <map:transform src="resource/internal/copy.xsl" /> -->
        <map:serialize type="xhtml" />
  </map:match>

..and oops, I get this "greek" exception ( see below ) . If I use "nekohtml"
OR if I add the transformer inbetween things will work fine .

Is this a bug?

It appears that the tidy version has to have a transformer but neko can skip
it an pass the xhtml directly to a serializer??

(neko has other issues -- but I still need to identify those... I'll get
back on that)


regards
Kjetil DM.

javax.servlet.ServletException: org.apache.cocoon.ProcessingException:
Failed to process pipeline
        at <map:serialize type="xhtml"> -
file:///home/kdm/dev/clean-dojo/./src/main/resources/COB-INF/sitemap.xmap:40:33
        at <map:generate type="html"> -
file:///home/kdm/dev/clean-dojo/./src/main/resources/COB-INF/sitemap.xmap:39:81
        at <map:match> -
file:///home/kdm/dev/clean-dojo/./src/main/resources/COB-INF/sitemap.xmap:38:26
        at org.apache.cocoon.servlet.RequestProcessor.service(
RequestProcessor.java:232)
        at org.apache.cocoon.sitemap.SitemapServlet.service(
SitemapServlet.java:64)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward
(ServletServiceContext.java:567)
        at
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward
(ServletServiceContext.java:544)
        at
org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke
(ServletFactoryBean.java:230)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:166)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
JdkDynamicAopProxy.java:204)
        at $Proxy5.service(Unknown Source)
        at org.apache.cocoon.servletservice.DispatcherServlet.service(
DispatcherServlet.java:102)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServlet.service(
ReloadingServlet.java:89)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
:487)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1093)
        at org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter(
MultipartFilter.java:119)
        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.doFilter(
ReloadingServletFilter.java:50)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1084)
        at org.apache.cocoon.servlet.DebugFilter.doFilter(DebugFilter.java
:169)
        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.doFilter(
ReloadingServletFilter.java:50)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1084)
        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingSpringFilter.doFilter(
ReloadingSpringFilter.java:69)
        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.doFilter(
ReloadingServletFilter.java:50)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1084)
        at org.mortbay.jetty.servlet.ServletHandler.handle(
ServletHandler.java:360)
        at org.mortbay.jetty.security.SecurityHandler.handle(
SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(
SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(
ContextHandler.java:712)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java
:405)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
ContextHandlerCollection.java:211)
        at org.mortbay.jetty.handler.HandlerCollection.handle(
HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(
HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:313)
        at org.mortbay.jetty.HttpConnection.handleRequest(
HttpConnection.java:506)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
HttpConnection.java:830)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(
SelectChannelEndPoint.java:396)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(
BoundedThreadPool.java:442)
Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline
        at <map:serialize type="xhtml"> -
file:///home/kdm/dev/clean-dojo/./src/main/resources/COB-INF/sitemap.xmap:40:33
        at <map:generate type="html"> -
file:///home/kdm/dev/clean-dojo/./src/main/resources/COB-INF/sitemap.xmap:39:81
        at <map:match> -
file:///home/kdm/dev/clean-dojo/./src/main/resources/COB-INF/sitemap.xmap:38:26
        at org.apache.cocoon.ProcessingException.throwLocated(
ProcessingException.java:143)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException
(AbstractProcessingPipeline.java:921)
        at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline
(AbstractCachingProcessingPipeline.java:382)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(
AbstractProcessingPipeline.java:437)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(
PoolableProxyHandler.java:72)
        at $Proxy8.process(Unknown Source)
        at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
SerializeNode.java:144)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:55)
        at
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(
MatchNode.java:87)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:77)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(
PipelineNode.java:151)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:77)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
PipelinesNode.java:93)
        at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(
ConcreteTreeProcessor.java:240)
        at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(
ConcreteTreeProcessor.java:171)
        at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(
TreeProcessor.java:251)
        at org.apache.cocoon.servlet.RequestProcessor.process(
RequestProcessor.java:357)
        at org.apache.cocoon.servlet.RequestProcessor.service(
RequestProcessor.java:171)
        ... 38 more
Caused by: java.lang.NullPointerException
        at org.apache.xml.serializer.ToXMLStream.processingInstruction(
ToXMLStream.java:251)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.processingInstruction(
TransformerIdentityImpl.java:1173)
        at org.apache.cocoon.xml.AbstractXMLPipe.processingInstruction(
AbstractXMLPipe.java:147)
        at
org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.startNode
(DOMStreamer.java:444)
        at
org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.stream
(DOMStreamer.java:217)
        at org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java
:141)
        at org.apache.cocoon.generation.HTMLGenerator.generate(
HTMLGenerator.java:310)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(
PoolableProxyHandler.java:72)
        at $Proxy9.generate(Unknown Source)
        at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline
(AbstractCachingProcessingPipeline.java:363)
        ... 57 more

Mime
View raw message