Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-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.

XMLWordPrintable

    • b15

      Looks like an environment issue in nightly testing:

      ----------System.out:(392/22034)----------
      Starting: /export/local/aurora/sandbox/sca/vmsqe/jdk/nightly/fastdebug/rt_baseline/solaris-amd64/jre/bin/java -cp /export/local/aurora/sandbox/results/workDir/classes/demo/jvmti/mtrace -Dtest.classes=/export/local/aurora/sandbox/results/workDir/classes/demo/jvmti/mtrace -Xcheck:jni -Xverify:all -agentpath:/export/local/aurora/sandbox/sca/vmsqe/jdk/nightly/fastdebug/rt_baseline/solaris-amd64/jre/../demo/jvmti/mtrace/lib/libmtrace.so JFrameCreateTime
      Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using '$DISPLAY_SITE' as the value of the DISPLAY variable.
      at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
      at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
      at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:259)
      at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
      at java.awt.Window.initGC(Window.java:475)
      at java.awt.Window.init(Window.java:495)
      at java.awt.Window.<init>(Window.java:537)
      at java.awt.Frame.<init>(Frame.java:420)
      at javax.swing.JFrame.<init>(JFrame.java:226)
      at JFrameCreateTime.main(JFrameCreateTime.java:43)

            jbachorik Jaroslav BachorĂ­k
            sla Staffan Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: