Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6812285
Votes 0
Synopsis PIT : WARNING: Exception on Toolkit thread java.lang.UnsatisfiedLinkError: sun.awt.X11.XlibW
Category java:classes_awt
Reported Against
Release Fixed 6u14(b03)
State 11-Closed, Verified, bug
Priority: 1-Very High
Related Bugs 6801620
Submit Date 03-MAR-2009
Description
I have a frame to which  i have added a button. The whole process i am doing in toolkit thread  as follows
 Toolkit.getDefaultToolkit().getSystemEventQueue().invokeAndWait(new Runnable() {
	public void run() {
		// create a frame & adding the button to it.
	}
}

When the frame is visible , i press on the button. I see the following warning.  
WARNING: Exception on Toolkit thread
java.lang.UnsatisfiedLinkError: sun.awt.X11.XlibWrapper.XLookupStringShort(J)I
	at sun.awt.X11.XlibWrapper.XLookupStringShort(Native Method)
	at sun.awt.X11.XWindow.handleKeyPress(XWindow.java:1048)
	at sun.awt.X11.XWindow.handleKeyPress(XWindow.java:1008)
	at sun.awt.X11.XFocusProxyWindow.handleKeyPress(XFocusProxyWindow.java:66)
	at sun.awt.X11.XBaseWindow.dispatchEvent(XBaseWindow.java:1112)
	at sun.awt.X11.XFocusProxyWindow.dispatchEvent(XFocusProxyWindow.java:58)
	at sun.awt.X11.XBaseWindow.dispatchToWindow(XBaseWindow.java:1079)
	at sun.awt.X11.XToolkit.dispatchEvent(XToolkit.java:475)
	at sun.awt.X11.XToolkit.run(XToolkit.java:588)
	at sun.awt.X11.XToolkit.run(XToolkit.java:523)
	at java.lang.Thread.run(Thread.java:619)

=====================================================================================

This is reproduced only in this pit build ( 6u14 b03 pit build).   And it is reproduced only on solaris & linux. 



Testcase
-------
import java.awt.*;

public class LinkerWarningBug {
	public Frame frame=null;
	public Button b = null;

	LinkerWarningBug( ) {
		 try {
			Toolkit.getDefaultToolkit().getSystemEventQueue().invokeAndWait(new Runnable() {
				public void run() {
					frame = new Frame();
					frame.setLayout(new FlowLayout());
					frame.add(b = new Button("Press me"));
					b.addActionListener(new java.awt.event.ActionListener(){
						public void actionPerformed(java.awt.event.ActionEvent ae){
							System.out.println("You have pressed the button..!");
						}
					});
					frame.setSize(300,300);
					frame.setVisible(true);
				}
			});
		        } catch (Exception e) {
		            e.printStackTrace();
		            System.exit(1);
        }
	}

	public static void main(String []args){
		new LinkerWarningBug();
	}
}
Posted Date : 2009-03-03 10:20:34.0
Work Around
N/A
Evaluation
I've not put back the make/sun/xawt/mapfile-vers file, it seems.
Posted Date : 2009-03-03 10:39:50.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang