Thomas,
the image was originally a jpeg read into a postgresql table as a bytea. This is then read into a java byte[] and converted to base64 before being spat out as:

<svg:svg width="300" height="300" viewBox="0 30 200 200" preserveAspectRatio="xMinYMin meet">

<image width="300" height="300" xlink:href="data:image/jpeg;base64,base64STRING"/>
</svg:svg>

How can I revert back to Java 1.3 on OS X? I currently have 1.4.2 installed. I will try to re-install Java.

many thanks

On 5 Mar 2004, at 13:33, Thomas DeWeese wrote:

beyaNet Consultancy wrote:

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.

I do occasionally use Batik with OS X, and there have
been some problems (Although the one below is a new one).
I have never used it with cocoon although I suspect that
this is not the problem... see below.

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

This looks to me like a corrupt Java install (one of the
ICC profiles in the jre/lib/cmm seems to be bad).

The other thing is that it is odd that a JPEG image would cause
this code path to execute. Is this some 'funky' JPEG (like at
CMYK JPEG)? Illustrator might do that if the exported
SVG was from a "CMYK" document.

* 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:expr>artistID</xsp:expr>/1.jpg</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.
many thanks in advance
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to