users@glassfish.java.net

Problem about fail to install glassfish under Debian lenny.

From: <glassfish_at_javadesktop.org>
Date: Sat, 20 Sep 2008 08:57:36 PDT

Dear all,

I'm trying to install Glassfish on my Debian system.
My jdk is like this:
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
And I download glassfish directly from glassfish's website.
But when I run "java -Xmx256m -jar glassfish-installer-v2ur2-b04-linux-ml.jar",
I get the following error:
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb5a00767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb5a008b1]
#2 /usr/lib/libX11.so.6(_XReply+0x244) [0xb50f9c14]
#3 /usr/local/jdk1.6.0_05/jre/lib/i386/xawt/libmawt.so [0xb521e8ce]
#4 /usr/local/jdk1.6.0_05/jre/lib/i386/xawt/libmawt.so [0xb51fb067]
#5 /usr/local/jdk1.6.0_05/jre/lib/i386/xawt/libmawt.so [0xb51fb318]
#6 /usr/local/jdk1.6.0_05/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb51fb61f]
#7 [0xb5cd6ecd]
#8 [0xb5ccfedd]
#9 [0xb5ccfedd]
#10 [0xb5ccd249]
#11 /usr/local/jdk1.6.0_05/jre/lib/i386/client/libjvm.so [0x621c40d]
#12 /usr/local/jdk1.6.0_05/jre/lib/i386/client/libjvm.so [0x6310378]
#13 /usr/local/jdk1.6.0_05/jre/lib/i386/client/libjvm.so [0x621c2a0]
#14 /usr/local/jdk1.6.0_05/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x363) [0x6272153]
#15 /usr/local/jdk1.6.0_05/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7d0396d]
#16 [0xb5cd6ecd]
#17 [0xb5ccfd77]
#18 [0xb5ccd249]
#19 /usr/local/jdk1.6.0_05/jre/lib/i386/client/libjvm.so [0x621c40d]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb5a00767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb5a0081e]
#2 /usr/lib/libX11.so.6 [0xb50f8dc9]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xb50ef136]
#4 /usr/local/jdk1.6.0_05/jre/lib/i386/xawt/libmawt.so [0xb51fa319]
#5 /usr/local/jdk1.6.0_05/jre/lib/i386/xawt/libmawt.so [0xb51fa565]
#6 /usr/local/jdk1.6.0_05/jre/lib/i386/xawt/libmawt.so [0xb51fb3c9]
#7 /usr/local/jdk1.6.0_05/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb51fb61f]
#8 [0xb5cd6ecd]
#9 [0xb5ccfedd]
#10 [0xb5ccfedd]
#11 [0xb5ccd249]
#12 /usr/local/jdk1.6.0_05/jre/lib/i386/client/libjvm.so [0x621c40d]
#13 /usr/local/jdk1.6.0_05/jre/lib/i386/client/libjvm.so [0x6310378]
#14 /usr/local/jdk1.6.0_05/jre/lib/i386/client/libjvm.so [0x621c2a0]
#15 /usr/local/jdk1.6.0_05/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x363) [0x6272153]
#16 /usr/local/jdk1.6.0_05/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7d0396d]
#17 [0xb5cd6ecd]
#18 [0xb5ccfd77]
#19 [0xb5ccd249]
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initSystemColorDefaults(GTKLookAndFeel.java:1267)
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStyles(GTKLookAndFeel.java:1509)
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.access$000(GTKLookAndFeel.java:37)
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel$WeakPCL$1.run(GTKLookAndFeel.java:1449)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Exception in thread "main" java.lang.NullPointerException
        at javax.swing.plaf.synth.SynthLookAndFeel$AATextListener.propertyChange(SynthLookAndFeel.java:793)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:347)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
        at java.awt.Toolkit.setDesktopProperty(Toolkit.java:1784)
        at sun.awt.SunToolkit.fireDesktopFontPropertyChanges(SunToolkit.java:1714)
        at sun.awt.SunToolkit.setAAFontSettingsCondition(SunToolkit.java:1759)
        at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:119)
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initComponentDefaults(GTKLookAndFeel.java:1258)
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.getDefaults(GTKLookAndFeel.java:294)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:537)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:581)
        at org.jvnet.poormans_installer.Main.setUILookAndFeel(Main.java:95)
        at org.jvnet.poormans_installer.Main.main(Main.java:50)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initSystemColorDefaults(GTKLookAndFeel.java:1267)
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStyles(GTKLookAndFeel.java:1509)
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.access$000(GTKLookAndFeel.java:37)
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel$WeakPCL$1.run(GTKLookAndFeel.java:1449)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
It seems that awt swing failed to work.
How can I solve it?
Any hint will be appreciated and thanks in advance.
[Message sent by forum member 'haoniukun' (haoniukun)]

http://forums.java.net/jive/thread.jspa?messageID=300528