RFR 8043572: demo/jvmti/mtrace/TraceJFrame.java fails with AWTError: Can't connect to X11 window server using '$DISPLAY_SITE' as the value of the DISPLAY variable.

Staffan Larsen staffan.larsen at oracle.com
Fri May 23 10:29:00 UTC 2014


Good one! I missed that TraceJFrame and JFrameCreateTime were different…

Reviewed.

/Staffan

On 23 maj 2014, at 11:54, Jaroslav Bachorik <jaroslav.bachorik at oracle.com> wrote:

> Please, review a simple test fix.
> 
> Issue : https://bugs.openjdk.java.net/browse/JDK-8043572
> Webrev: http://cr.openjdk.java.net/~jbachorik/8043572/webrev.00
> 
> The reason of failure is similar to JDK-8039432. Test tries to access the graphics subsystem unconditionally and on headless system it fails. The solution is to include the check for the presence of the graphics subsystem.
> 
> The patch also contains slight changes to the failure message wording in TraceJFrame to make it distinguishable from a failure occurring in JFrameCreateTime.
> 
> Thanks,
> 
> -JB-



More information about the serviceability-dev mailing list