Hi,
I have sent an earlier post for which I have not had a reply. Basically, when I try to render an image jpeg/png into an svg within the cocoon framework on an OS X 10.3.2 platform, the image is rendered but not before Tomcat, version 5 in my case, falls over. Are there any other known issues with batik and os x 10 within cocoon that anyone may be familiar with. Are there any hacks to work around the issues. Any help on this issues will be very welcome as I am now running behind on project delivery!! The error i am getting in my logs, when rendering an jpeg/png into svg, is:

java.awt.color.CMMException: Invalid profile data
at sun.awt.color.CMM.checkStatus(CMM.java:127)
at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:89)
at java.awt.image.ColorConvertOp.updateBITransform(ColorConvertOp.java:386)
at java.awt.image.ColorConvertOp.ICCBIFilter(ColorConvertOp.java:308)
at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:262)
at org.apache.batik.ext.awt.image.rendered.Any2sRGBRed.copyData(Unknown Source)
at org.apache.batik.ext.awt.image.rendered.FormatRed.copyData(Unknown Source)
at org.apache.batik.ext.awt.image.rendered.AbstractRed.getData(Unknown Source)
at org.apache.batik.ext.awt.image.rendered.AbstractRed.getData(Unknown Source)
at org.apache.batik.ext.awt.image.spi.JPEGRegistryEntry$1.run(Unknown Source)

The image is still displayed, but not before an org.apache.catalina.startup.Bootstrap message is displayed. You are able to display the page, for which the svg's are rendered onto, a number of times afterwards but eventually Tomcat dies completely and the whole server has to be brought down as you are unable to restart Tomcat at the command line with : tomcat/bin>./startup.sh

My sitemap snippet is:

<map:match pattern="**artistImage/*/*.jpg">
<map:generate type="serverpages" src="xsp/svg.xsp">
<map:parameter name="imageNum" value="{3}"/>
<map:parameter name="artistID" value="{2}"/>
</map:generate>
<map:serialize type="svg2jpeg"/>
</map:match>

The calling element . This in turn gets sucked into my xslt page:

<artists-photo1>
<xsp:element name="image">
<xsp:attribute name="src">artistImage/</xsp:attribute>
</xsp:element>
</artists-photo1>

I am running:

OS X 10.3.2,
Java 1.4.2,
Cocoon 2.1.4,
Tomcat 5,
postgreSQL 7.4.1.

Attachment: svg.xsp
Description: Binary data


many thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to