java错误[已解决]

C、C++和Java语言
回复
头像
Beetle
帖子: 1637
注册时间: 2005-10-14 16:55
系统: OS X
来自: 江苏
送出感谢: 0
接收感谢: 0
联系:

java错误[已解决]

#1

帖子 Beetle » 2007-12-15 18:14

完全按照wiki上的安装sun-java6-jre和sun-java6-jdk,结果启动Java Web Start错误

代码: 全选

 Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb53d5767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb53d58b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb54272ed]
#3 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so [0xb552264e]
#4 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so [0xb5500f97]
#5 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so [0xb5501248]
#6 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb550154f]
#7 [0xb5c8166e]
#8 [0xb5c79edd]
#9 [0xb5c79edd]
#10 [0xb5c77243]
#11 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x620bc6d]
#12 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x630a828]
#13 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x620bb00]
#14 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
#15 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7c9296d]
#16 [0xb5c8166e]
#17 [0xb5c79d77]
#18 [0xb5c77243]
#19 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x620bc6d]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.


什么原因?
上次由 Beetle 在 2007-12-15 21:41,总共编辑 1 次。
头像
Beetle
帖子: 1637
注册时间: 2005-10-14 16:55
系统: OS X
来自: 江苏
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 Beetle » 2007-12-15 21:40

google了一下,貌似是libxcb的一个bug~~

暂时的解决方法:

代码: 全选

sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun/jre/lib/i386/xawt/libmawt.so


这样的话webstart是可以用了,然后就可以安装eioffice,但是不能启动,因为eio是自带的jre,还要再对eio执行一次

代码: 全选

 sudo sed -i 's/XINERAMA/FAKEEXTN/g' /opt/Evermore/EIOffice/Jre/lib/i386/xawt/libmawt.so


另一个方法就是添加

代码: 全选

export LIBXCB_ALLOW_SLOPPY_LOCK=1
d0ngd0ng
帖子: 1
注册时间: 2007-12-26 1:14
送出感谢: 0
接收感谢: 0

#3

帖子 d0ngd0ng » 2008-01-01 12:35

真不错,今天刚升级到8.04,netbeans就启动不了了,非常感谢。
lllkkk
帖子: 3
注册时间: 2005-10-31 18:28
送出感谢: 0
接收感谢: 0

#4

帖子 lllkkk » 2008-02-16 10:50

Beetle 写了:google了一下,貌似是libxcb的一个bug~~

暂时的解决方法:

代码: 全选

sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun/jre/lib/i386/xawt/libmawt.so


这样的话webstart是可以用了,然后就可以安装eioffice,但是不能启动,因为eio是自带的jre,还要再对eio执行一次

代码: 全选

 sudo sed -i 's/XINERAMA/FAKEEXTN/g' /opt/Evermore/EIOffice/Jre/lib/i386/xawt/libmawt.so


另一个方法就是添加

代码: 全选

export LIBXCB_ALLOW_SLOPPY_LOCK=1


还有一个办法就是
sudo aptitude install libx11-xcb-dev
头像
why_790721
帖子: 295
注册时间: 2006-12-01 22:28
送出感谢: 0
接收感谢: 0

#5

帖子 why_790721 » 2008-03-23 17:01

以上提供的几个方法全都试过了,可是运行j2me WTK2.5.2时还是提示调试失败(我运行的是j2me WTK2.5.2自带的例子),错误提示如下:
项目 "CityGuide" 被载入
项目设置已保存
正在生成 "CityGuide"
com.sun.kvem.ktools.ExecutionException: Preverifier returned 255
生成失败

点击“运行”提示:
java.lang.UnsatisfiedLinkError: /home/why/WTK2.5.2/bin/sublime.so: /home/why/WTK2.5.2/bin/sublime.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.System.load(System.java:968)
at com.sun.kvem.Sublime.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.kvem.Lime.createLime(Unknown Source)
at com.sun.kvem.KVMBridge.<init>(Unknown Source)
at com.sun.kvem.KVMBridge.getBridge(Unknown Source)
at com.sun.kvem.midp.MIDP.run(Unknown Source)
at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown Source)
at com.sun.kvem.environment.EmulatorInvoker.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.kvem.environment.JVM.main(Unknown Source)

有人能解决吗?
回复

回到 “C/C++/Java”