Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8039432

demo/jvmti/mtrace/TraceJFrame.java can't connect to X11

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b12
    • Verification:
      Verified

      Description

      closed/sun/management/snmp/tostring/SnmpStringTest.java fails to connect to X11 with the following exception:

      java.lang.InternalError: 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:110)
      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:186)
      at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
      at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:119)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:186)
      at java.awt.Toolkit$2.run(Toolkit.java:870)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:862)
      at sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:1873)
      at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:752)
      at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:434)
      at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:148)
      at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1589)
      at javax.swing.UIManager.setLookAndFeel(UIManager.java:536)
      at javax.swing.UIManager.setLookAndFeel(UIManager.java:576)
      at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1345)
      at javax.swing.UIManager.initialize(UIManager.java:1455)
      at javax.swing.UIManager.maybeInitialize(UIManager.java:1422)
      at javax.swing.UIManager.getUI(UIManager.java:1003)
      at javax.swing.JList.updateUI(JList.java:540)
      at javax.swing.JList.<init>(JList.java:435)
      at javax.swing.JList.<init>(JList.java:479)
      at SnmpStringTest.main(SnmpStringTest.java:40)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:722)

      The reason is that the DISPLAY variable is set to the string '$DISPLAY_SITE' instead of a valid value. This was seen in hs24-b32 PIT on both Linux and Solaris.

      Failure: http://vmsqe-app.russia.sun.com/surl/RF

      ILW=HMM=P2
      I: No test results for a security vulnerability test
      L: Seems to happen more than 50% of the time according to test history
      W: Manually running tests

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sla Staffan Larsen (Inactive)
                Reporter:
                miauno Mikael Auno (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: