forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhatia Praveen, HCLT-Japan" <prav...@hcltech.co.jp>
Subject RE: Trouble with forrest's SVGSerializer from cocoon
Date Sat, 04 Dec 2004 19:52:16 GMT

Rick,

Following are the snippets:
In sitemap.xmap of forrest 0.6  added in <map:serializers>

  <map:serializer name="svg2png"
    src="org.apache.cocoon.serialization.SVGSerializer"
    mime-type="image/png"
    logger="sitemap.serializer.svg2png"/>
 

and in the sitemap.xmap of the project added in <map:pipelines>

<map:pipeline>
<map:match pattern="images/*.png">
  <map:generate src="{project:project.images-dir}{1}.svg"/>
  <map:serialize type="svg2png"/>
</map:match>
</map:pipeline>

boxes.svg is also attached. It is just two boxes in red one behind the other
with a slight displacement.

Praveen

-----Original Message-----
From: Bhatia Praveen, HCLT-Japan
To: 'user@forrest.apache.org '
Sent: 2004/12/05 2:53
Subject: Trouble with forrest's SVGSerializer from cocoon

Hi,
   I have set up sitemap.xmap to generate events on a simple
images/boxes.svg file and then to serialize it using the 
src="org.apache.cocoon.serialization.SVGSerializer"
map is made to images/boxes.png when the above generator and serializer
is
used in the pipeline. 

   However, it complains that there is an Internal Cocoon Problem of
NULL
pointer. (The file images/boxes.svg is found that I have made sure....
after
that I cant guess what is wrong).

  Could somebody kindly explain this exception and how to recover? Is it
a
bug in forrest?

with best regards
Praveen
 

WARN    (2004-12-05) 02:32.27:361   [core.manager]
(/skin/images/rc-b-l-15-1body-2menu-3menu.png) PoolThread-5/SVGBuilder:
setDocumentLocator was not called, will use http://localhost/ as base
URI
ERROR   (2004-12-05) 02:32.27:481   [access] (/images/boxes.png)
PoolThread-0/CocoonServlet: Internal Cocoon Problem
java.lang.NullPointerException
	at
org.apache.forrest.conf.ForrestConfModule.getAttribute(ForrestConfModule
.jav
a:55)
	at
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableRes
olve
r.processModule(PreparedVariableResolver.java:310)
	at
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableRes
olve
r.resolve(PreparedVariableResolver.java:259)
	at
org.apache.cocoon.components.treeprocessor.sitemap.GenerateNode.invoke(G
ener
ateNode.java:63)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes(AbstractParentProcessingNode.java:54)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvok
e(PreparableMatchNode.java:112)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes(AbstractParentProcessingNode.java:76)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipel
ineNode.java:138)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes(AbstractParentProcessingNode.java:76)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
Pipe
linesNode.java:95)
	at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(Con
creteTreeProcessor.java:298)
	at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(Con
creteTreeProcessor.java:241)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cess
or.java:238)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun
tNod
e.java:111)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes(AbstractParentProcessingNode.java:76)
	at
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(Sel
ectN
ode.java:82)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes(AbstractParentProcessingNode.java:76)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipel
ineNode.java:138)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invo
keNodes(AbstractParentProcessingNode.java:76)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
Pipe
linesNode.java:95)
	at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(Con
creteTreeProcessor.java:298)
	at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(Con
creteTreeProcessor.java:241)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cess
or.java:238)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:646)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1123)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
	at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andl
er.java:294)
	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
	at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text
.java:525)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
	at
org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
	at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
	at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
	at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197
)
	at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
	at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)


Mime
View raw message