[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

pbuilder + DISPLAY (junit)



Hi,

  Has anyone dealt with such issues before ? I cannot run the test
suite from pdebuild, it fails because of [1]. I could not find
anything in the man page of pdebuild

Thanks.

[1].
    [junit] Testcase:
draw(org.apache.xmlgraphics.java2d.ps.PSGraphics2DTestCase):	Caused an
ERROR
    [junit] Can't connect to X11 window server using ':1.0' as the
value of the DISPLAY variable.
    [junit] java.lang.InternalError: Can't connect to X11 window
server using ':1.0' as the value of the DISPLAY variable.
    [junit] 	at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    [junit] 	at
sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62)
    [junit] 	at
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178)
    [junit] 	at java.security.AccessController.doPrivileged(Native Method)
    [junit] 	at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
    [junit] 	at java.lang.Class.forName0(Native Method)
    [junit] 	at java.lang.Class.forName(Class.java:186)
    [junit] 	at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
    [junit] 	at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1152)
    [junit] 	at
org.apache.xmlgraphics.java2d.ps.PSGraphics2D.<init>(PSGraphics2D.java:837)
    [junit] 	at
org.apache.xmlgraphics.java2d.ps.PSGraphics2D.<init>(PSGraphics2D.java:110)
    [junit] 	at
org.apache.xmlgraphics.java2d.ps.PSGraphics2DTestCase.createGraphics2D(PSGraphics2DTestCase.java:54)
    [junit] 	at
org.apache.xmlgraphics.java2d.ps.PSGraphics2DTestCase.setup(PSGraphics2DTestCase.java:48)
    [junit]
    [junit]
    [junit] Test org.apache.xmlgraphics.java2d.ps.PSGraphics2DTestCase FAILED
    [junit] Testsuite: org.apache.xmlgraphics.ps.ImageEncodingHelperTestCase
    [junit] No protocol specified
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.048 sec
    [junit]
    [junit] Testcase:
testRGBAndBGRImages(org.apache.xmlgraphics.ps.ImageEncodingHelperTestCase):	Caused
an ERROR
    [junit] Can't connect to X11 window server using ':1.0' as the
value of the DISPLAY variable.
    [junit] java.lang.InternalError: Can't connect to X11 window
server using ':1.0' as the value of the DISPLAY variable.
    [junit] 	at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    [junit] 	at
sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62)
    [junit] 	at
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178)
    [junit] 	at java.security.AccessController.doPrivileged(Native Method)
    [junit] 	at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
    [junit] 	at java.lang.Class.forName0(Native Method)
    [junit] 	at java.lang.Class.forName(Class.java:186)
    [junit] 	at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
    [junit] 	at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1152)
    [junit] 	at
org.apache.xmlgraphics.ps.ImageEncodingHelperTestCase.prepareImage(ImageEncodingHelperTestCase.java:36)
    [junit] 	at
org.apache.xmlgraphics.ps.ImageEncodingHelperTestCase.testRGBAndBGRImages(ImageEncodingHelperTestCase.java:62)
    [junit]


Reply to: