Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
pbuilder + DISPLAY (junit)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mathieu Malaterre  
View profile  
 More options Nov 3 2012, 9:40 am
Newsgroups: linux.debian.maint.java
From: Mathieu Malaterre <ma...@debian.org>
Date: Sat, 03 Nov 2012 14:40:02 +0100
Local: Sat, Nov 3 2012 9:40 am
Subject: 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(GraphicsEnvironmen t.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(PSGr aphics2DTestCase.java:54)
    [junit]     at
org.apache.xmlgraphics.java2d.ps.PSGraphics2DTestCase.setup(PSGraphics2DTes tCase.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(GraphicsEnvironmen t.java:82)
    [junit]     at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1152)
    [junit]     at
org.apache.xmlgraphics.ps.ImageEncodingHelperTestCase.prepareImage(ImageEnc odingHelperTestCase.java:36)
    [junit]     at
org.apache.xmlgraphics.ps.ImageEncodingHelperTestCase.testRGBAndBGRImages(I mageEncodingHelperTestCase.java:62)
    [junit]

--
To UNSUBSCRIBE, email to debian-java-REQU...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/CA+7wUsyu-KeirpA8F2nKNaOT+574FPu2ZgNb26ZFGPQuzBV...@mail.gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guillaume Mazoyer  
View profile  
 More options Nov 3 2012, 9:40 am
Newsgroups: linux.debian.maint.java
From: Guillaume Mazoyer <respawne...@gmail.com>
Date: Sat, 03 Nov 2012 14:40:02 +0100
Local: Sat, Nov 3 2012 9:40 am
Subject: Re: pbuilder + DISPLAY (junit)
Hi Mathieu,

We had to deal with such a problem for the java-gnome package.
To solve that problem we used the xvfb to run the test related to the
graphical user interface (and even take screenshots for the javadoc
generation).

2012/11/3 Mathieu Malaterre <ma...@debian.org>:

>   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

We had to deal with such a problem for the java-gnome package.
To solve that problem we used the xvfb to run the test related to the
graphical user interface (and even take screenshots for the javadoc
generation).

Hope this can help you too.

--
Guillaume Mazoyer - http://respawner.fr/

--
To UNSUBSCRIBE, email to debian-java-REQU...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/CAKWSjpgOCuL5mFP5D3yuFTX5yHxwdE+Utwgjzvn9o6HfjvH...@mail.gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gregor herrmann  
View profile  
 More options Nov 3 2012, 10:20 am
Newsgroups: linux.debian.maint.java
From: gregor herrmann <gre...@debian.org>
Date: Sat, 03 Nov 2012 15:20:02 +0100
Local: Sat, Nov 3 2012 10:20 am
Subject: Re: pbuilder + DISPLAY (junit)

On Sat, 03 Nov 2012 14:30:35 +0100, Mathieu Malaterre wrote:
>   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.

Does running it under xvfb help?

Cf. my patch for basf in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690152#20

Cheers,
gregor

--
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Kurt Ostbahn & Kombo: 57 Engeln

  signature.asc
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »