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

PIT: Headless Toolkit is broken - Unsatisfied Link Error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • client-libs
    • b49
    • x86
    • linux_sun
    • Verified

      I am running a sample test which creates a Frame in headless mode. An UnsatisfiedLinkError is thrown as soon as the test launches when executed with '-Djava.awt.headless=true'.

      This is noticed on SolarisSparc10 as well as Linux-Cinnabar with the current AWT PIT build (b47). This is not reproducible on Mustang-b44.

      Here is the error:
      Exception in thread "main" java.lang.UnsatisfiedLinkError: InternAtom
      at sun.awt.X11.XlibWrapper.InternAtom(Native Method)
      at sun.awt.X11.XAtom.<init>(XAtom.java:250)
      at sun.awt.X11.XAtom.<init>(XAtom.java:216)
      at sun.awt.X11.XAtom.get(XAtom.java:161)
      at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:1834)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at java.awt.Toolkit$2.run(Toolkit.java:819)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:811)
      at HeadlessTest.main(HeadlessTest.java:6)

      Here is the PIT BUILD:
      va version "1.6.0-awt.pit_int_awt_blade"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit_int_awt_blade-dm97671_26_Jul_2005_10_52-b00)
      Java HotSpot(TM) Server VM (build 1.6.0-ea-b44, mixed mode)

      Even in the last PIT build (b45), a similar error was occuring. However the stacktrace looks different from the above one.

            dmikhalksunw Denis Mikhalkin (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: