xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simon <si...@333.ch>
Subject problem with batik transcoder on a headless system
Date Tue, 02 Feb 2010 15:56:05 GMT
hi all

i have developed a yanel resource-type which is using the batik 
transcoder to create png and jpg from svg. on my local computer 
everything works like a charm. after i deployed it on a haedless server 
i run into a problem. i tried Djava.awt.headless=true and xvfb. and a 
real simple svg worked fine but for most cases i get an exception (see 
below). after this exception was thrown even the simple svg which worked 
before throws the exception.

i use batik 1.7 and java6.

Caused by: java.lang.IllegalArgumentException: Color parameter outside 
of expected range: Alpha Red
    at java.awt.Color.testColorValueRange(Color.java:298)
    at java.awt.Color.<init>(Color.java:382)
    at org.apache.batik.bridge.PaintServer.convertColor(Unknown Source)
    at org.apache.batik.bridge.PaintServer.convertPaint(Unknown Source)
    at org.apache.batik.bridge.PaintServer.convertFillPaint(Unknown Source)
    at org.apache.batik.bridge.PaintServer.convertFillAndStroke(Unknown 
Source)
    at 
org.apache.batik.bridge.SVGShapeElementBridge.createShapePainter(Unknown 
Source)
    at 
org.apache.batik.bridge.SVGCircleElementBridge.createShapePainter(Unknown 
Source)
    at 
org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown 
Source)
    at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
    at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
    at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
    at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
    at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
    at 
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
    at 
org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source)
    at 
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
    at 
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
    at 
com.litwan.yanel.impl.resources.svg.SVGResource.renderCustomView(SVGResource.java:147)

any hint would be very much appreciated.

cheers
simon


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message