https://issues.apache.org/bugzilla/show_bug.cgi?id=42408

--- Comment #17 from Simon Pepping <[email protected]> 2010-11-10 10:08:17 
EST ---
I applied the patch, built batik-all.jar, inserted it into the fop lib
directory, and ran fop's junit tests in a graphics environment. I got
no errors. Then I ran fop's junit tests in headless mode. I got one
error, which is the same error I get without the patch. This indicates
the patch did not correct the piece of code that uses a display in
fop's junit tests.

The offending method that calls
HeadlessGraphicsEnvironment.getDefaultScreenDevice is a method in
xmlgraphics-commons, java2d.ps.PSGraphics2D.getDeviceConfiguration.
Maybe fop's headless junit test problem is not a batik problem, but a
XGC problem.

    [junit] No X11 DISPLAY variable was set, but this program performed an
operation which requires it.
    [junit] java.awt.HeadlessException: 
    [junit] No X11 DISPLAY variable was set, but this program performed an
operation which requires it.
    [junit]     at
sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:82)
    [junit]     at
org.apache.xmlgraphics.java2d.ps.PSGraphics2D.getDeviceConfiguration(PSGraphics2D.java:824)
    [junit]     at
org.apache.batik.ext.awt.image.GraphicsUtil.getDestination(Unknown Source)
    [junit]     at
org.apache.batik.ext.awt.image.GraphicsUtil.getDestinationColorModel(Unknown
Source)
    [junit]     at
org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown Source)
    [junit]     at
org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown Source)
    [junit]     at
org.apache.batik.ext.awt.image.renderable.PadRable8Bit.paintRable(Unknown
Source)
    [junit]     at
org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown Source)
    [junit]     at
org.apache.batik.ext.awt.image.renderable.PadRable8Bit.paintRable(Unknown
Source)
    [junit]     at
org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown Source)
    [junit]     at
org.apache.batik.ext.awt.image.renderable.FilterChainRable8Bit.paintRable(Unknown
Source)
    [junit]     at
org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown Source)
    [junit]     at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
Source)
    [junit]     at
org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown Source)
    [junit]     at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
Source)
    [junit]     at
org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown Source)
    [junit]     at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
Source)
    [junit]     at
org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown Source)
    [junit]     at
org.apache.batik.gvt.CanvasGraphicsNode.primitivePaint(Unknown Source)
    [junit]     at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
Source)
    [junit]     at
org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown Source)
    [junit]     at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
Source)
    [junit]     at
org.apache.fop.render.ps.AbstractPSTranscoder.transcode(AbstractPSTranscoder.java:154)
    [junit]     at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
    [junit]     at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
    [junit]     at
org.apache.fop.AbstractBasicTranscoderTestCase.testGenericPDFTranscoder(AbstractBasicTranscoderTestCase.java:70)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to