You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Thorsten Scherler (JIRA)" <ji...@apache.org> on 2007/04/08 02:04:32 UTC
[jira] Commented: (FOR-829) The text which renders to project.png
and group.png still originates in skinconf.xml
[ https://issues.apache.org/jira/browse/FOR-829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487418 ]
Thorsten Scherler commented on FOR-829:
---------------------------------------
Our project.svg contains something like:
<g filter="url(#shadowFilter)" fill="url(#gradient)">
<text x="100%" y="60%" style="font-size:24pt; font-family:Verdana ; text-anchor: end" >
<for:project-name />
</text>
</g>
<for:project-name /> is where the "magic" and dependency to skinconf is created.
The problem lies in the core resource.xmap:
<map:resource name="pipe-transformed-svg2png-resource">
<!-- here we create a dependency on skinconf.xml-->
<map:call resource="generate-transformed-resource">
<map:parameter name="path" value="{path}" />
</map:call>
<!-- this dependency get used in the next step -->
<map:call resource="transform-project2text"/>
<map:serialize type="svg2png" />
</map:resource>
If you remove the skinconf.xml from your project then the above will throw an error like:
ERROR (2007-04-08) 01:48.34:996 [access] (/images/group.png) PoolThread-4/CocoonServlet: Internal Cocoon Problem
org.apache.cocoon.ProcessingException: Failed to process pipeline
at <map:serialize type="svg2png"> - file:/home/thorsten/src/apache/forrest/trunk/main/webapp/resources.xmap:90:39
at <map:transform> - file:/home/thorsten/src/apache/forrest/trunk/main/webapp/resources.xmap:89:62
at <map:transform> - file:/home/thorsten/src/apache/forrest/trunk/main/webapp/resources.xmap:134:57
at <map:mount> - file:/home/thorsten/src/apache/forrest/trunk/main/webapp/sitemap.xmap:699:76
...
Caused by: java.lang.NullPointerException
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:138)
at org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:181)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1378)
...
Caused by: java.lang.NullPointerException
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:126)
... 58 more
> The text which renders to project.png and group.png still originates in skinconf.xml
> ------------------------------------------------------------------------------------
>
> Key: FOR-829
> URL: https://issues.apache.org/jira/browse/FOR-829
> Project: Forrest
> Issue Type: Improvement
> Components: Dispatcher (aka views)
> Affects Versions: 0.8-dev
> Reporter: paul bolger
> Priority: Minor
>
> This seems pretty trivial, but it has the potential to confuse users about the distinction between skins and Dispatcher.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.