近日,本人由于工作需要,需要在redflag linux DC Server 5.0下安装配置weblogic 8.14下的应用,但出现很多问题,现将问题描述及解决方案简述如下:
操作系统:redflag DC Server 5.0
应用平台:weblogic 8.1.4
JDK版本: JDK1.42_04 Jrockit81sp5_142_05
问题描述:操作系统安装正常、weblogic 814安装正常,使用/bea/weblogic81/common/bin/config.sh配置新域,使用jrockit81sp5_142_05的JDK,成功配置完成。但未配置应用前尝试启动startWebLogic.sh系统报错,错误日志如下:
引用:===== BEGIN DUMP =======
JRockit dump produced after 0 days, 00:00:06 on Fri Jan 5 17:22:31 2007
Additional information is available in:
/bea/user_projects/domains/mydomain/jrockit.5236.dump
/bea/user_projects/domains/mydomain/core
Please send the file(s), information about your system
setup and the program you were running to support@bea.com. Thank you.
Error code: 52
Error Message: Null pointer exception in native code
Signal info : si_signo=11, si_code=1
Version : BEA WebLogic JRockit(TM) 1.4.2_05 JVM R24.4.0-1 ari-38120-20041118-1131-linux-ia32
Threads / GC : Native Threads, GC strategy: parallel
: mmHeap->data = 0x20000000, mmHeap->top = 0x60000000
Number CPUs : 8
Tot Phys Mem : 8514228224
OS version : Red Flag DC Server release 5.0 (Trinity)
Linux version 2.6.9-11.19AXsmp (packager@asianux.com) (gcc version 3.4.3 20050227 (Asianux 2.0 3.4.3-22.1.1)) #1 SMP Fri Aug 5 05:28:32 EDT 2005
State : JVM is starting up
Command Line : -Djava.class.path=/bea/jrockit81sp4_142_05/lib/tools.jar:/bea/weblogic81/server/lib/weblogic_sp.jar:/bea/weblogic81/server/lib/weblogic.jar::/bea/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/bea/jrockit81sp4_142_05/jre/lib/rt.jar:/bea/weblogic81/server/lib/webservices.jar: -Djrockit.launcher.type=jrockit.shipment -Xms1024m -Dsun.java.command=-Xmx1024m -Duser.country=CN -Duser.language=zh -Dfile.encoding=GBK -Djava.net.preferIPv4Stack=true -Dweblogic.Name=myserver -Dweblogic.ProductionModeEnabled=true -Djava.security.policy=/bea/weblogic81/server/lib/weblogic.policy weblogic.Server
Environment : JAVA_HOME=/bea/jrockit81sp4_142_05, java.home=/bea/jrockit81sp4_142_05/jre, java.class.path=/bea/jrockit81sp4_142_05/lib/tools.jar:/bea/weblogic81/server/lib/weblogic_sp.jar:/bea/weblogic81/server/lib/weblogic.jar::/bea/weblogic81/common/eval/pointbase/lib/pbserver44.jar:/bea/weblogic81/common/eval/pointbase/lib/pbclient44.jar:/bea/jrockit81sp4_142_05/jre/lib/rt.jar:/bea/weblogic81/server/lib/webservices.jar:, java.library.path=/bea/jrockit81sp4_142_05/jre/lib/i386/jrockit:/bea/jrockit81sp4_142_05/jre/lib/i386:/bea/jrockit81sp4_142_05/jre/../lib/i386:/bea/weblogic81/server/lib/linux/i686:/bea/weblogic81/server/lib/linux/i686/oci920_8
C Heap : Good; no memory allocations have failed
Registers (from context struct at 0x80518bc/0x8051984):
EAX = 00000034 EBX = 00b8ad80
ECX = 0000000d EDX = b7f68ed9
ESI = 00000000 EDI = b7fe1534
ESP = bfffd154 EIP = b7ec0449
EBP = bfffd16c EFL = 00010202
CS = 0073 DS = 007b ES = 007b
SS = 007b FS = 0033 GS = 0033
Stack:
bfffd154 :00cb1ff4 bfffd1bc 00000008 00cb1ff4 bfffd1ac bfffd1ac
bfffd16c :bfffd1e8 00c89720 bfffd1bc 00000020 00000000 00b8a000
bfffd184 :0000000c bfffd1bc 00b8a000 00000008 00000000 00000000
bfffd19c :00000000 00b8a000 00000000 00b8ad98 00c89590 00000000
bfffd1b4 :00000001 00000000 00000000 00b8ad78 00cf6034 bfff0009
bfffd1cc :00000008 00000000 00000000 00000000 bfffd2a8 bfffd2a8
bfffd1e4 :b7fe15a8 bfffd208 b7ec04c1 b7ec0410 00000000 00ba1ed9
bfffd1fc :b7ec04ad 08083908 b7f675ba bfffd278 b7e8bb6b bfffd2a8
bfffd214 :bfffd39c b7fe15a8 bfffd238 00bf0f01 00cb3800 00000080
bfffd22c :00000080 00000000 b7fe15a8 bfffd268 b7ea2279 00000080
bfffd244 :00000004 bfffd278 b7ebacba bfffd2a8 bfffd39c bfffd288
bfffd25c :b7ebc8ce b7fd36cc b7efb4cc bfffd288 b7ebc927 00000080
bfffd274 :00000008 bfffd2b8 b7e8bd85 bfffd2a8 b7f6cc62 bfffd2b8
bfffd28c :b7e8bd66 bfffd318 00cb3800 00000022 00000115 bfffd318
bfffd2a4 :bfffd39c 00000000 00000000 00000001 00000000 bfffd2e8
bfffd2bc :b7ecb789 bfffd318 00cb3800 00000108 000000f4 bffffdd3
bfffd2d4 :bfffd39c bfffd318 0804ae8e 0804f074 00000000 bfffd328
bfffd2ec :0804ae58 bfffd388 bfffd38c bfffd318 0804b426 bffffdd3
bfffd304 :bfffd39c bfffd3a8 00000000 bffffdd3 bfffd39c 00010002
bfffd31c :00000004 0804f8f0 00000000 bffff3a8 08049cf1 bfffd388
bfffd334 :bfffd38c bfffd39c 0804f054 00cb1ff4 bffff434 bffff3c0
bfffd34c :00000000 00000000 00000000 bffff3b4 bfffe3a8 bfffd3a4
bfffd364 :bfffd39c bfffd398 bfffd394 bfffd390 bfffd38c bfffd388
bfffd37c :00000000 0804be80 00000000 00000000 00000000 00000000
bfffd394 :bffff5cf 00000001 b7ecb720 b7ecb500 0804f231 6165622f
bfffd3ac :6f726a2f 74696b63 70733138 34315f34 35305f32 65726a2f
bfffd3c4 :62696c2f 3833692f 726a2f36 696b636f 696c2f74 6d766a62
bfffd3dc :006f732e 00000000 00000000 00000000 00000000 00000000
bfffd3f4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd40c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd424 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd43c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd454 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd46c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd484 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd49c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd4b4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd4cc :00000000 00000000 00000000 00000000 00000000 00000000
bfffd4e4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd4fc :00000000 00000000 00000000 00000000 00000000 00000000
bfffd514 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd52c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd544 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd55c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd574 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd58c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd5a4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd5bc :00000000 00000000 00000000 00000000 00000000 00000000
bfffd5d4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd5ec :00000000 00000000 00000000 00000000 00000000 00000000
bfffd604 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd61c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd634 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd64c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd664 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd67c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd694 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd6ac :00000000 00000000 00000000 00000000 00000000 00000000
bfffd6c4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd6dc :00000000 00000000 00000000 00000000 00000000 00000000
bfffd6f4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd70c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd724 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd73c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd754 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd76c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd784 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd79c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd7b4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd7cc :00000000 00000000 00000000 00000000 00000000 00000000
bfffd7e4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd7fc :00000000 00000000 00000000 00000000 00000000 00000000
bfffd814 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd82c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd844 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd85c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd874 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd88c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd8a4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd8bc :00000000 00000000 00000000 00000000 00000000 00000000
bfffd8d4 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd8ec :00000000 00000000 00000000 00000000 00000000 00000000
bfffd904 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd91c :00000000 00000000 00000000 00000000 00000000 00000000
bfffd934 :00000000 00000000 00000000 00000000 00000000 00000000
bfffd94c :00000000 00000000 00000000 00000000 00000000 00000000
Code:
b7ec0349 :ec81e589 00000110 758b5356 f8c48308 00010068 009d8d00
b7ec0361 :53ffffff 188856e8 10c48350 0f75c085 68f8c483 b7f68d60
b7ec0379 :8d904deb 83002674 858df8c4 fffffef8 e8046a50 48d8b5af
b7ec0391 :8510c483 830b74c0 6853fcc4 b7f68dae 858b25eb fffffef8
b7ec03a9 :1374c085 75fff883 fcc4831e 8dc96853 0bebb7f6 8300768d
b7ec03c1 :e068f8c4 56b7f68d fcaa2ee8 500debff 8e766853 e856b7f6
b7ec03d9 :fffcaa1f fee8a58d 5e5bffff c35dec89 5500768d ec83e589
b7ec03f1 :0c558b08 8b084d8b 8b500842 a0685002 51b7f68e fca9f2e8
b7ec0409 :5dec89ff 55f689c3 ec83e589 5356570c 6af8c483 08558b2f
b7ec0421 :5004428b 188726e8 83c38950 db8510c4 57eb3175 6b084d8b
b7ec0439 :318b34c6 1500b88d b9fcb7fe 0000000d 74a1a5f3 8db7fd37
b7ec0451 :15890150 b7fd3774 0f02f883 b60fc094 312aebc0 3768bff6
b7ec0469 :8d90b7fd 8b002674 f8c48307 04e85350 8348d362 c08510c4
b7ec0481 :c783b275 fe834604 31e47e02 e8658dc0 895f5e5b 55c35dec
b7ec0499 :ec83e589 1a4de808 f4a348ce e8b7fe14 48ce1a23 fe14f8a3
b7ec04b1 :f8c483b7 1068006a e8b7ec04 48dc90ff c35dec89 5500768d
b7ec04c9 :ec83e589 5356573c 6afcc483 8edf6804 5d8db7f6 dce85310
b7ec04e1 :83501885 c08510c4 458b1774 fcc4830c 8ee46850 458bb7f6
b7ec04f9 :fce85008 ebfffca8 dc458d7f 89d84589 fa7d8dc6 0f00768d
b7ec0511 :685003b6 b7f68ef7 e856036a 48d0ef3f 8310c483 394302c6
b7ec0529 :83e47efe b70ff4c4 0f504245 504045b7 3e45b70f 45b70f50
b7ec0541 :b70f503c 0f503a45 503845b7 5034458b 5030458b 502c458b
Loaded modules:
(* denotes the module causing the exception)
0x08048000-0x0804cd86 /bea/jrockit81sp4_142_05/bin/java
0x00cf6000-0x00d0389b /lib/tls/libpthread.so.0
0x00cb8000-0x00cd8d4f /lib/tls/libm.so.6
0x00cdd000-0x00cde967 /lib/libdl.so.2
0x00b8d000-0x00cafcd0 /lib/tls/libc.so.6
0x00b74000-0x00b88cc3 /lib/ld-linux.so.2
0xb7db4000-0xb7f833ef* /bea/jrockit81sp4_142_05/jre/lib/i386/jrockit/libjvm.so
0xb7a90000-0xb7a98987 /lib/libnss_files.so.2
0xb626a000-0xb62842bf /usr/lib/gconv/GBK.so
Java Thread ID = 0x00000080, lastJavaFrame = 0xfffffffc, Name = Noname
Thread Stack Trace:
at dlIterFindLibcCb+57()@0xb7ec0449
--- End of stack trace
Additional information is available in:
/bea/user_projects/domains/mydomain/jrockit.5236.dump
/bea/user_projects/domains/mydomain/core
Please send the file(s), information about your system
setup and the program you were running to support@bea.com. Thank you.
Extended, platform specific info:
libc release: 2.3.4-stable
Elf headers:
libc ehdrs: failed.
libpthread ehdrs: failed.
libjvm ehdrs: failed.
===== END DUMP ============
./startWebLogic.sh: line 66: 5236 已放弃 (core dumped) ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Dweblogic.ProductionModeEnabled=${PRODUCTION_MODE} -Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" weblogic.Server
后更换/bea/jdk142_05为默认jdk,系统可以正常启动,本以为这样就可以正常了,但一天后,Weblogic频繁挂掉,最短时间只有2分钟左右就需要重新启动应用,仍然报错。
出现问题以后,我们立即请求bea电话支持,并发送错误报告给bea,但回应不明确,提供几种方案仅供参考:
一、操作系统问题,可能有某些参数配置不对;
二、更换weblogic版本;
三、更换更新版本的JDK;
四、Weblogic安装有问题,尝试重新安装。
经过多次尝试,发现weblogic 815可以在该环境下正常安装、配置域、使用Jrockit启动startWebLogich.sh,由于weblogic各版本差距较大,因而应用开发平台应与使用平台相同,所以更换weblogic版本可行性较小。
后尝试下载较新版本JDK,我们下载安装的是j2re_1_4_2_08_linux-i586.bin,该文件可在www.java.com下载到,安装以后,问题消失。
总结问题原因,很有可能是weblogic 814与redflag DC Server 5.0包含的jdk存在兼容性问题,因此不能正常启动。