Java 1.5 在 AIX 5 上崩溃

发布于 2024-11-09 20:02:29 字数 2379 浏览 0 评论 0原文

我在 AIX 上使用 Java 1.5.0 时遇到问题。当我使用 AIX 上的特定用户 (myuser) 登录时,就会发生该错误。当我用其他用户登录时,java工作正常。

即使我只执行 "java -version" 或简单地 "java" (当然,不带引号),也会出现错误。我尝试使用完整路径执行它: /usr/java5/jre/bin/java 但仍然失败。

系统上也安装了1.4版本的java。因此,用户的 $PATH 变量包含 /usr/java14/jre/bin,但我删除了该值,我什至卸载了该版本java (1.4) 的版本,以便系统上仅存在 java 5,但错误仍然存​​在。

如果我执行“java -fullversion”它不会崩溃。

这是错误的一部分(完整输出很长):

JVMJ9VM011W Unable to load j9dmp23: No such file or directory
JVMJ9VM011W Unable to load j9jit23: No such file or directory
JVMJ9VM011W Unable to load j9gc23: No such file or directory
JVMJ9VM011W Unable to load j9vrb23: No such file or directory
Unhandled exception
Type=Illegal instruction vmState=0x00000000
J9Generic_Signal_Number=00000010 Signal_Number=00000004 Error_Value=00000000
Signal_Code=0000001e
Handler1=F0719CC8 Handler2=F0714F5C
.....
Target=2_30_20091103_45935_bHdSMr (AIX 5.3)
CPU=ppc (4 logical CPUs) (0x7d0000000 RAM)

JavaVMInitArgs.nOptions=14:
    -Xjcl:jclscar_23
    -Dcom.ibm.oti.vm.bootstrap.library.path=/usr/java5/jre/bin
    -Dsun.boot.library.path=/usr/java5/jre/bin
    -Djava.library.path=/usr/java5/jre/bin:/usr/java5/jre/bin:/usr/java5/jre/bin/classic:/usr/java5/jre/bin:/sqllib/lib:/home/myuser/comm:/home/myuser/sys:/home/myuser/bin:/db2util/db2adm/sqllib/lib64:/usr/java5/jre/bin/j9vm:/usr/lib
    -Djava.home=/usr/java5/jre
    -Djava.ext.dirs=/usr/java5/jre/lib/ext
    -Duser.dir=/home/myuser
    _j2se_j9=70912 (extra info: F070EA2C)
    -Xdump
    vfprintf (extra info: 300017A4)
    -Dinvokedviajava
    -Djava.class.path=/db2util/db2adm/sqllib/java/db2java.zip:/db2util/db2adm/sqllib/java/db2jcc.jar:/db2util/db2adm/sqllib/java/sqlj.zip:/db2util/db2adm/sqllib/function:/db2util/db2adm/sqllib/java/db2jcc_license_cu.jar:.
    vfprintf
    _port_library (extra info: F070EE30)
Note: "Enable full CORE dump" in smit is set to FALSE and as a result there will be limited threading information in core file.
Note: dump may be truncated if "ulimit -c" is set too low
Generated system dump: {default OS core name}

(no Thread object associated with thread)

(no Thread object associated with thread)
Unhandled exception in signal handler
ksh: 2179192 IOT/Abort trap(coredump)

I have a problem with Java 1.5.0 for AIX. The error happens just when I log on with specific user on AIX (myuser). When I log on with other user java works ok.

The error come up even when I executed just "java -version" or simply "java" (of course, without quoting). I've tried executing it with the full path: /usr/java5/jre/bin/java but still fails.

There was installed the version 1.4 of java on system too. So the $PATH variable for the user contained /usr/java14/jre/bin, but I removed that value, I even uninstalled that version of java (1.4) so that just java 5 exists on the system, but the error continues.

If I execute "java -fullversion" it doesn't crash.

This is part of the error (the full output is very long):

JVMJ9VM011W Unable to load j9dmp23: No such file or directory
JVMJ9VM011W Unable to load j9jit23: No such file or directory
JVMJ9VM011W Unable to load j9gc23: No such file or directory
JVMJ9VM011W Unable to load j9vrb23: No such file or directory
Unhandled exception
Type=Illegal instruction vmState=0x00000000
J9Generic_Signal_Number=00000010 Signal_Number=00000004 Error_Value=00000000
Signal_Code=0000001e
Handler1=F0719CC8 Handler2=F0714F5C
.....
Target=2_30_20091103_45935_bHdSMr (AIX 5.3)
CPU=ppc (4 logical CPUs) (0x7d0000000 RAM)

JavaVMInitArgs.nOptions=14:
    -Xjcl:jclscar_23
    -Dcom.ibm.oti.vm.bootstrap.library.path=/usr/java5/jre/bin
    -Dsun.boot.library.path=/usr/java5/jre/bin
    -Djava.library.path=/usr/java5/jre/bin:/usr/java5/jre/bin:/usr/java5/jre/bin/classic:/usr/java5/jre/bin:/sqllib/lib:/home/myuser/comm:/home/myuser/sys:/home/myuser/bin:/db2util/db2adm/sqllib/lib64:/usr/java5/jre/bin/j9vm:/usr/lib
    -Djava.home=/usr/java5/jre
    -Djava.ext.dirs=/usr/java5/jre/lib/ext
    -Duser.dir=/home/myuser
    _j2se_j9=70912 (extra info: F070EA2C)
    -Xdump
    vfprintf (extra info: 300017A4)
    -Dinvokedviajava
    -Djava.class.path=/db2util/db2adm/sqllib/java/db2java.zip:/db2util/db2adm/sqllib/java/db2jcc.jar:/db2util/db2adm/sqllib/java/sqlj.zip:/db2util/db2adm/sqllib/function:/db2util/db2adm/sqllib/java/db2jcc_license_cu.jar:.
    vfprintf
    _port_library (extra info: F070EE30)
Note: "Enable full CORE dump" in smit is set to FALSE and as a result there will be limited threading information in core file.
Note: dump may be truncated if "ulimit -c" is set too low
Generated system dump: {default OS core name}

(no Thread object associated with thread)

(no Thread object associated with thread)
Unhandled exception in signal handler
ksh: 2179192 IOT/Abort trap(coredump)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一笔一画续写前缘 2024-11-16 20:02:29

我发现了错误。问题是 .profile 上的一行设置了环境变量 LIBPATH:

export LIBPATH=/home/myuser/sys

我删除了 .profile 中的该行并且 java 工作了。

I found the error. The problem is a line on the .profile which sets the environment variable LIBPATH:

export LIBPATH=/home/myuser/sys

I deleted that line in the .profile and java worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文