SIGSEGV in socket accept native code (possibly RMI related)

Hi,
We've been having this problem for a while on a 1.4.2 VM (don't recall the exact version), so we upgraded to 1.5.0_03 and it got slightly worse... so we upgraded to 1.5.0_09 and it got much worse. Unfortunately, this is the latest version of the JVM that's packaged/authorised in my organisation so trying later versions isn't possible.
The problem is a Signal 11 (SIGSEGV) fault during JVM shutdown which appears to be caused by a bug in the native socket accept code. The problem seems to be exhibited by some RMI related code. This client uses RMI to talk to a server, but (as far as I know - it's using a third party closed-source library) it doesn't export any RMI objects of its own, so I'm a bit baffled why there's an RMI TCP Accept thread at all.
We've googled every conceivable combination of useful-looking terms (including Java_java_net_PlainSocketImpl_socketAccept (with and without the offset), bits of the stack trace, PC addresses, thread names, etc.) and we can turn up one or two things that look like they're related, but really nothing that appears hugely significant.
Basically, we're really stuck with this and it's a production problem so it's causing us a lot of pain. If anybody out there has the faintest clue, we'd really appreciate it.
Thanks.
====uname -a=====
(Hostname changed)
Linux host.domain.blah.com 2.6.9-22.0.2.ELsmp #1 SMP Thu Jan 5 17:13:01 EST 2006 i686 athlon i386 GNU/Linux
====hs thing log file====
(NOTE: Some of the information in here has been obfuscated for commercial sensitivity, but I don't think any of it is relevant)
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGSEGV (0xb) at pc=0xb789bb79, pid=30978, tid=2638416816
# Java VM: Java HotSpot(TM) Server VM (1.5.0_09-b01 mixed mode)
# Problematic frame:
# V [libjvm.so+0x284b79]
--------------- T H R E A D ---------------
Current thread (0x08ae81a0): JavaThread "RMI TCP Accept-0" daemon [_thread_in_vm, id=14935]
siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000
Registers:
EAX=0x00000000, EBX=0xb7bcfe50, ECX=0x00000002, EDX=0x00000ffc
ESP=0x9d42ff2c, EBP=0x9d42ff64, ESI=0x08ae81a0, EDI=0x00000008
EIP=0xb789bb79, CR2=0x00000000, EFLAGS=0x00010213
Top of Stack: (sp=0x9d42ff2c)
0x9d42ff2c: 08ae81a0 08ae8260 9d42ff64 9e4e04af
0x9d42ff3c: 08ae81a0 0a5eec84 00000052 00000001
0x9d42ff4c: 00000001 9d42ffb4 9e4e02bb 9e4e5184
0x9d42ff5c: 0a5eec84 0000000b 9d42ffe4 9e4df306
0x9d42ff6c: 08ae8260 00000000 00000022 0000000b
0x9d42ff7c: 08ae81a0 afde6cb8 9d42ffc4 9d42ffac
0x9d42ff8c: 9d42ffa8 00000010 00000000 00000000
0x9d42ff9c: b7a3f669 00000000 0000c2ff 0000001c
Instructions: (pc=0xb789bb79)
0xb789bb69: 00 00 00 06 00 00 00 8b 45 0c 8b 7d 10 c1 ef 02
0xb789bb79: 8b 10 8b 83 5c 13 00 00 8b 00 8b 4a 04 85 c0 0f
Stack: [0x9d3b0000,0x9d431000), sp=0x9d42ff2c, free space=511k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x284b79]
C [libnet.so+0xb306] Java_java_net_PlainSocketImpl_socketAccept+0x276
j java.net.PlainSocketImpl.socketAccept(Ljava/net/SocketImpl;)V+0
j java.net.PlainSocketImpl.accept(Ljava/net/SocketImpl;)V+7
j java.net.ServerSocket.implAccept(Ljava/net/Socket;)V+50
j java.net.ServerSocket.accept()Ljava/net/Socket;+48
j sun.rmi.transport.tcp.TCPTransport.run()V+59
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
V [libjvm.so+0x266eec]
V [libjvm.so+0x42da88]
V [libjvm.so+0x266745]
V [libjvm.so+0x2667de]
V [libjvm.so+0x2ddf75]
V [libjvm.so+0x4cdb13]
V [libjvm.so+0x42e698]
C [libpthread.so.0+0x5341]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.net.PlainSocketImpl.socketAccept(Ljava/net/SocketImpl;)V+0
j java.net.PlainSocketImpl.accept(Ljava/net/SocketImpl;)V+7
j java.net.ServerSocket.implAccept(Ljava/net/Socket;)V+50
j java.net.ServerSocket.accept()Ljava/net/Socket;+48
j sun.rmi.transport.tcp.TCPTransport.run()V+59
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x09274f88 JavaThread "RMI ConnectionExpiration-[10.72.14.39:40107]" daemon [_thread_blocked, id=11989]
0x08c9cc20 JavaThread "RMI ConnectionExpiration-[10.72.14.40:40107]" daemon [_thread_blocked, id=11983]
0x0903aec8 JavaThread "RMI ConnectionExpiration-[10.72.14.40:40112]" daemon [_thread_blocked, id=11982]
0x08fbc518 JavaThread "RMI ConnectionExpiration-[10.72.14.44:40113]" daemon [_thread_blocked, id=11981]
0x0813ceb8 JavaThread "RMI ConnectionExpiration-[10.72.13.183:40113]" daemon [_thread_blocked, id=11980]
0x08a6e7f0 JavaThread "RMI ConnectionExpiration-[10.72.14.40:40110]" daemon [_thread_blocked, id=11979]
0x08ee22f0 JavaThread "RMI ConnectionExpiration-[10.72.14.44:40109]" daemon [_thread_blocked, id=11978]
0x090c0ef0 JavaThread "RMI ConnectionExpiration-[10.72.14.39:40118]" daemon [_thread_blocked, id=11977]
0x091fdfb0 JavaThread "RMI ConnectionExpiration-[10.72.13.183:40109]" daemon [_thread_blocked, id=11976]
0x087dd5a0 JavaThread "RMI ConnectionExpiration-[10.72.14.39:40110]" daemon [_thread_blocked, id=10595]
0x091fe340 JavaThread "RMI RenewClean-[10.72.14.39:40110]" daemon [_thread_blocked, id=10594]
0x08e70220 JavaThread "RMI ConnectionExpiration-[10.72.14.39:53973,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=10593]
0x087de380 JavaThread "RMI RenewClean-[10.72.14.39:53973,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=10353]
0x092832e0 JavaThread "RMI RenewClean-[10.72.13.183:40109]" daemon [_thread_blocked, id=10346]
0x085c2710 JavaThread "RMI RenewClean-[10.72.13.183:40248,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=10336]
0x08a470a0 JavaThread "RMI ConnectionExpiration-[10.72.14.39:40114]" daemon [_thread_blocked, id=10327]
0x09471ca8 JavaThread "RMI RenewClean-[10.72.14.39:40114]" daemon [_thread_blocked, id=10326]
0x08e10e78 JavaThread "RMI ConnectionExpiration-[10.72.14.39:54045,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=10325]
0x08dc22b8 JavaThread "RMI ConnectionExpiration-[10.72.14.39:40112]" daemon [_thread_blocked, id=10178]
0x08dc1ae0 JavaThread "RMI RenewClean-[10.72.14.39:40112]" daemon [_thread_blocked, id=10177]
0x08dc64b8 JavaThread "RMI ConnectionExpiration-[10.72.14.39:54006,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=10176]
0x08e6ac08 JavaThread "RMI RenewClean-[10.72.14.39:54006,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=10146]
0x087d94f8 JavaThread "RMI ConnectionExpiration-[10.72.13.183:40111]" daemon [_thread_blocked, id=9948]
0x087d8df8 JavaThread "RMI RenewClean-[10.72.13.183:40111]" daemon [_thread_blocked, id=9947]
0x085c30e8 JavaThread "RMI RenewClean-[10.72.13.183:40278,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=9945]
0x085c3bb0 JavaThread "RMI ConnectionExpiration-[10.72.14.44:40111]" daemon [_thread_blocked, id=8815]
0x085c1c08 JavaThread "RMI RenewClean-[10.72.14.44:40111]" daemon [_thread_blocked, id=8432]
0x085c4940 JavaThread "RMI ConnectionExpiration-[10.72.14.44:33150,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=8241]
0x085c3f10 JavaThread "RMI RenewClean-[10.72.14.44:33150,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=8219]
0x085bee18 JavaThread "RMI ConnectionExpiration-[10.72.14.39:40116]" daemon [_thread_blocked, id=8106]
0x085be388 JavaThread "RMI RenewClean-[10.72.14.39:40116]" daemon [_thread_blocked, id=8105]
0x08e15b68 JavaThread "RMI ConnectionExpiration-[10.72.14.39:54066,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=7006]
0x085bd3b0 JavaThread "RMI RenewClean-[10.72.14.39:54066,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=6696]
0x08e152c8 JavaThread "RMI RenewClean-[10.72.14.39:40118]" daemon [_thread_blocked, id=6524]
0x08a45098 JavaThread "RMI RenewClean-[10.72.14.39:54088,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=5775]
0x09472c60 JavaThread "RMI RenewClean-[10.72.14.44:40109]" daemon [_thread_blocked, id=5771]
0x09474e00 JavaThread "RMI RenewClean-[10.72.14.44:33127,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=5769]
0x08dc1428 JavaThread "RMI RenewClean-[10.72.14.40:40110]" daemon [_thread_blocked, id=5765]
0x08dc5758 JavaThread "RMI RenewClean-[10.72.14.40:42086,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=5763]
0x092846f0 JavaThread "RMI RenewClean-[10.72.13.183:40113]" daemon [_thread_blocked, id=5759]
0x08b6cc00 JavaThread "RMI RenewClean-[10.72.13.183:40295,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=5757]
0x08b72058 JavaThread "RMI RenewClean-[10.72.14.44:40113]" daemon [_thread_blocked, id=5745]
0x08b712a0 JavaThread "RMI RenewClean-[10.72.14.44:33186,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=5726]
0x0a7339b0 JavaThread "RMI RenewClean-[10.72.14.40:40112]" daemon [_thread_blocked, id=5722]
0x08ad4d58 JavaThread "RMI RenewClean-[10.72.14.40:42110,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=5720]
0x08fbe770 JavaThread "Scheduler" daemon [_thread_blocked, id=5719]
0x0997a398 JavaThread "RMI RenewClean-[10.72.14.39:54045,com.commerciallysensitive.RMISSLClientSocketFactory@180650e]" daemon [_thread_blocked, id=15762]
0x08e1b708 JavaThread "RMI LeaseChecker" daemon [_thread_blocked, id=14942]
=>0x08ae81a0 JavaThread "RMI TCP Accept-0" daemon [_thread_in_vm, id=14935]
0x08604250 JavaThread "RMI RenewClean-[10.72.14.39:40107]" daemon [_thread_blocked, id=14931]
0x08603c78 JavaThread "GC Daemon" daemon [_thread_blocked, id=14930]
0x0911f558 JavaThread "RMI RenewClean-[10.72.14.40:40107]" daemon [_thread_blocked, id=14920]
0x08da6e20 JavaThread "Scheduler" daemon [_thread_blocked, id=14902]
0x08da7db0 JavaThread "CleanUpReference clean up thread" daemon [_thread_blocked, id=14892]
0x08121920 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=30988]
0x08120498 JavaThread "CompilerThread1" daemon [_thread_blocked, id=30987]
0x0811f438 JavaThread "CompilerThread0" daemon [_thread_blocked, id=30986]
0x0811e308 JavaThread "AdapterThread" daemon [_thread_blocked, id=30985]
0x0811d578 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=30984]
0x08110598 JavaThread "Finalizer" daemon [_thread_blocked, id=30983]
0x081100e0 JavaThread "Reference Handler" daemon [_thread_blocked, id=30982]
0x0806b288 JavaThread "main" [_thread_blocked, id=30978]
Other Threads:
0x0810dbe0 VMThread [id=30981]
0x08122dc0 WatcherThread [id=30989]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 19008K, used 8604K [0xafa60000, 0xb1090000, 0xb1090000)
eden space 16064K, 45% used [0xafa60000,0xb01953c0,0xb0a10000)
from space 2944K, 41% used [0xb0db0000,0xb0ee1e28,0xb1090000)
to space 3328K, 0% used [0xb0a10000,0xb0a10000,0xb0d50000)
PSOldGen total 38592K, used 31818K [0xa4890000, 0xa6e40000, 0xafa60000)
object space 38592K, 82% used [0xa4890000,0xa67a2bf0,0xa6e40000)
PSPermGen total 28416K, used 20144K [0xa0890000, 0xa2450000, 0xa4890000)
object space 28416K, 70% used [0xa0890000,0xa1c3c340,0xa2450000)
Dynamic libraries:
004aa000-004bf000 r-xp 00000000 fd:00 1867896 /lib/ld-2.3.4.so
004bf000-004c0000 r-xp 00015000 fd:00 1867896 /lib/ld-2.3.4.so
004c0000-004c1000 rwxp 00016000 fd:00 1867896 /lib/ld-2.3.4.so
004c3000-005e7000 r-xp 00000000 fd:00 1867897 /lib/tls/libc-2.3.4.so
005e7000-005e8000 r-xp 00124000 fd:00 1867897 /lib/tls/libc-2.3.4.so
005e8000-005eb000 rwxp 00125000 fd:00 1867897 /lib/tls/libc-2.3.4.so
005eb000-005ed000 rwxp 005eb000 00:00 0
005ef000-005f1000 r-xp 00000000 fd:00 1868983 /lib/libdl-2.3.4.so
005f1000-005f3000 rwxp 00001000 fd:00 1868983 /lib/libdl-2.3.4.so
005f5000-00616000 r-xp 00000000 fd:00 1868961 /lib/tls/libm-2.3.4.so
00616000-00618000 rwxp 00020000 fd:00 1868961 /lib/tls/libm-2.3.4.so
006e3000-006f1000 r-xp 00000000 fd:00 1868984 /lib/tls/libpthread-2.3.4.so
006f1000-006f3000 rwxp 0000d000 fd:00 1868984 /lib/tls/libpthread-2.3.4.so
006f3000-006f5000 rwxp 006f3000 00:00 0
009dd000-009ef000 r-xp 00000000 fd:00 1869140 /lib/libnsl-2.3.4.so
009ef000-009f1000 rwxp 00011000 fd:00 1869140 /lib/libnsl-2.3.4.so
009f1000-009f3000 rwxp 009f1000 00:00 0
08048000-08057000 r-xp 00000000 fd:00 1199000 /usr/java/jdk-1.5.0_09-i386/bin/java
08057000-08059000 rwxp 0000e000 fd:00 1199000 /usr/java/jdk-1.5.0_09-i386/bin/java
08059000-0ab15000 rwxp 08059000 00:00 0
98f9f000-98fa2000 ---p 98f9f000 00:00 0
98fa2000-99020000 rwxp 98fa2000 00:00 0
99020000-99023000 ---p 99020000 00:00 0
99023000-990a1000 rwxp 99023000 00:00 0
990a1000-990a4000 ---p 990a1000 00:00 0
990a4000-99122000 rwxp 990a4000 00:00 0
99122000-99125000 ---p 99122000 00:00 0
99125000-991a3000 rwxp 99125000 00:00 0
991a3000-991a6000 rwxp 991a3000 00:00 0
991a6000-99224000 rwxp 991a6000 00:00 0
99224000-99227000 ---p 99224000 00:00 0
99227000-992a5000 rwxp 99227000 00:00 0
992a5000-992a8000 rwxp 992a5000 00:00 0
992a8000-99326000 rwxp 992a8000 00:00 0
99326000-99329000 ---p 99326000 00:00 0
99329000-993a7000 rwxp 99329000 00:00 0
993a7000-993aa000 rwxp 993a7000 00:00 0
993aa000-99428000 rwxp 993aa000 00:00 0
99428000-9942b000 ---p 99428000 00:00 0
9942b000-994a9000 rwxp 9942b000 00:00 0
994a9000-994ac000 ---p 994a9000 00:00 0
994ac000-9952a000 rwxp 994ac000 00:00 0
9952a000-9952d000 rwxp 9952a000 00:00 0
9952d000-995ab000 rwxp 9952d000 00:00 0
995ab000-995ae000 ---p 995ab000 00:00 0
995ae000-9962c000 rwxp 995ae000 00:00 0
9962c000-9962f000 ---p 9962c000 00:00 0
9962f000-996ad000 rwxp 9962f000 00:00 0
996ad000-996b0000 rwxp 996ad000 00:00 0
996b0000-9972e000 rwxp 996b0000 00:00 0
9972e000-99731000 ---p 9972e000 00:00 0
99731000-997af000 rwxp 99731000 00:00 0
997af000-997b2000 ---p 997af000 00:00 0
997b2000-99830000 rwxp 997b2000 00:00 0
99830000-99833000 ---p 99830000 00:00 0
99833000-998b1000 rwxp 99833000 00:00 0
998b1000-998b4000 ---p 998b1000 00:00 0
998b4000-99932000 rwxp 998b4000 00:00 0
99932000-99935000 ---p 99932000 00:00 0
99935000-999b3000 rwxp 99935000 00:00 0
999b3000-999b6000 ---p 999b3000 00:00 0
999b6000-99a34000 rwxp 999b6000 00:00 0
99a34000-99a37000 ---p 99a34000 00:00 0
99a37000-99ab5000 rwxp 99a37000 00:00 0
99ab5000-99ab8000 ---p 99ab5000 00:00 0
99ab8000-99b36000 rwxp 99ab8000 00:00 0
99b36000-99b39000 rwxp 99b36000 00:00 0
99b39000-99bb7000 rwxp 99b39000 00:00 0
99bb7000-99bba000 ---p 99bb7000 00:00 0
99bba000-99c38000 rwxp 99bba000 00:00 0
99c38000-99c3b000 ---p 99c38000 00:00 0
99c3b000-99cb9000 rwxp 99c3b000 00:00 0
99cb9000-99cbc000 ---p 99cb9000 00:00 0
99cbc000-99d3a000 rwxp 99cbc000 00:00 0
99d3a000-99d3d000 ---p 99d3a000 00:00 0
99d3d000-99dbb000 rwxp 99d3d000 00:00 0
99dbb000-99dbe000 rwxp 99dbb000 00:00 0
99dbe000-99e3c000 rwxp 99dbe000 00:00 0
99e3c000-99e3f000 ---p 99e3c000 00:00 0
99e3f000-99ebd000 rwxp 99e3f000 00:00 0
99ebd000-99ec0000 rwxp 99ebd000 00:00 0
99ec0000-99f3e000 rwxp 99ec0000 00:00 0
99f3e000-99f41000 ---p 99f3e000 00:00 0
99f41000-99fbf000 rwxp 99f41000 00:00 0
99fbf000-99fc2000 ---p 99fbf000 00:00 0
99fc2000-9a040000 rwxp 99fc2000 00:00 0
9a040000-9a043000 ---p 9a040000 00:00 0
9a043000-9a0c1000 rwxp 9a043000 00:00 0
9a0c1000-9a0c4000 ---p 9a0c1000 00:00 0
9a0c4000-9a142000 rwxp 9a0c4000 00:00 0
9a142000-9a145000 ---p 9a142000 00:00 0
9a145000-9a1c3000 rwxp 9a145000 00:00 0
9a1c3000-9a1c6000 ---p 9a1c3000 00:00 0
9a1c6000-9a244000 rwxp 9a1c6000 00:00 0
9a244000-9a247000 ---p 9a244000 00:00 0
9a247000-9a2c5000 rwxp 9a247000 00:00 0
9a2c5000-9a2c8000 ---p 9a2c5000 00:00 0
9a2c8000-9a346000 rwxp 9a2c8000 00:00 0
9a346000-9a349000 ---p 9a346000 00:00 0
9a349000-9a3c7000 rwxp 9a349000 00:00 0
9a3c7000-9a3ca000 ---p 9a3c7000 00:00 0
9a3ca000-9a448000 rwxp 9a3ca000 00:00 0
9a448000-9a44b000 rwxp 9a448000 00:00 0
9a44b000-9a4c9000 rwxp 9a44b000 00:00 0
9a4c9000-9a4cc000 rwxp 9a4c9000 00:00 0
9a4cc000-9a54a000 rwxp 9a4cc000 00:00 0
9a54a000-9a54d000 ---p 9a54a000 00:00 0
9a54d000-9a5cb000 rwxp 9a54d000 00:00 0
9a5cb000-9a5ce000 rwxp 9a5cb000 00:00 0
9a5ce000-9a64c000 rwxp 9a5ce000 00:00 0
9a64c000-9a64f000 ---p 9a64c000 00:00 0
9a64f000-9a6cd000 rwxp 9a64f000 00:00 0
9a6cd000-9a6d0000 rwxp 9a6cd000 00:00 0
9a6d0000-9a74e000 rwxp 9a6d0000 00:00 0
9a74e000-9a751000 ---p 9a74e000 00:00 0
9a751000-9a7cf000 rwxp 9a751000 00:00 0
9a7cf000-9a7d2000 rwxp 9a7cf000 00:00 0
9a7d2000-9a850000 rwxp 9a7d2000 00:00 0
9a850000-9a853000 ---p 9a850000 00:00 0
9a853000-9a8d1000 rwxp 9a853000 00:00 0
9a8d1000-9a8d4000 rwxp 9a8d1000 00:00 0
9a8d4000-9a952000 rwxp 9a8d4000 00:00 0
9a952000-9a955000 ---p 9a952000 00:00 0
9a955000-9a9d3000 rwxp 9a955000 00:00 0
9a9d3000-9a9d6000 rwxp 9a9d3000 00:00 0
9a9d6000-9aa54000 rwxp 9a9d6000 00:00 0
9aa54000-9aa57000 ---p 9aa54000 00:00 0
9aa57000-9aad5000 rwxp 9aa57000 00:00 0
9ae00000-9af58000 rwxp 9ae00000 00:00 0
9af58000-9b000000 ---p 9af58000 00:00 0
9b000000-9b1fa000 rwxp 9b000000 00:00 0
9b1fa000-9b200000 ---p 9b1fa000 00:00 0
9b200000-9b400000 rwxp 9b200000 00:00 0
9b400000-9b5f9000 rwxp 9b400000 00:00 0
9b5f9000-9b600000 ---p 9b5f9000 00:00 0
9b600000-9b800000 rwxp 9b600000 00:00 0
9b800000-9ba00000 rwxp 9b800000 00:00 0
9ba00000-9bb00000 rwxp 9ba00000 00:00 0
9bb7f000-9bb82000 rwxp 9bb7f000 00:00 0
9bb82000-9bcfe000 rwxp 9bb82000 00:00 0
9bcfe000-9bd00000 ---p 9bcfe000 00:00 0
9bd7d000-9bd80000 ---p 9bd7d000 00:00 0
9bd80000-9bdfe000 rwxp 9bd80000 00:00 0
9bdfe000-9be01000 rwxp 9bdfe000 00:00 0
9be01000-9be7f000 rwxp 9be01000 00:00 0
9be7f000-9be82000 ---p 9be7f000 00:00 0
9be82000-9bff2000 rwxp 9be82000 00:00 0
9bff2000-9c000000 ---p 9bff2000 00:00 0
9c02c000-9c02f000 rwxp 9c02c000 00:00 0
9c02f000-9c0ad000 rwxp 9c02f000 00:00 0
9c0ad000-9c0b0000 rwxp 9c0ad000 00:00 0
9c0b0000-9c12e000 rwxp 9c0b0000 00:00 0
9c12e000-9c131000 rwxp 9c12e000 00:00 0
9c131000-9c1af000 rwxp 9c131000 00:00 0
9c200000-9c2f8000 rwxp 9c200000 00:00 0
9c2f8000-9c300000 ---p 9c2f8000 00:00 0
9c400000-9c4ee000 rwxp 9c400000 00:00 0
9c4ee000-9c500000 ---p 9c4ee000 00:00 0
9c57f000-9c582000 rwxp 9c57f000 00:00 0
9c582000-9c6f4000 rwxp 9c582000 00:00 0
9c6f4000-9c700000 ---p 9c6f4000 00:00 0
9c77d000-9c780000 ---p 9c77d000 00:00 0
9c780000-9c7fe000 rwxp 9c780000 00:00 0
9c7fe000-9c801000 ---p 9c7fe000 00:00 0
9c801000-9c87f000 rwxp 9c801000 00:00 0
9c87f000-9c882000 rwxp 9c87f000 00:00 0
9c882000-9c9f9000 rwxp 9c882000 00:00 0
9c9f9000-9ca00000 ---p 9c9f9000 00:00 0
9ca77000-9ca7a000 rwxp 9ca77000 00:00 0
9ca7a000-9caf8000 rwxp 9ca7a000 00:00 0
9caf8000-9cafb000 rwxp 9caf8000 00:00 0
9cafb000-9cb79000 rwxp 9cafb000 00:00 0
9cb79000-9cb7c000 rwxp 9cb79000 00:00 0
9cb7c000-9cbfa000 rwxp 9cb7c000 00:00 0
9cbfa000-9cbfd000 rwxp 9cbfa000 00:00 0
9cbfd000-9cc7b000 rwxp 9cbfd000 00:00 0
9cc7b000-9cc7e000 ---p 9cc7b000 00:00 0
9cc7e000-9ccfc000 rwxp 9cc7e000 00:00 0
9cea6000-9cea9000 rwxp 9cea6000 00:00 0
9cea9000-9cf27000 rwxp 9cea9000 00:00 0
9cf27000-9cf2a000 rwxp 9cf27000 00:00 0
9cf2a000-9cfa8000 rwxp 9cf2a000 00:00 0
9cfa8000-9cfab000 ---p 9cfa8000 00:00 0
9cfab000-9d029000 rwxp 9cfab000 00:00 0
9d029000-9d02c000 ---p 9d029000 00:00 0
9d02c000-9d0aa000 rwxp 9d02c000 00:00 0
9d0aa000-9d0ad000 ---p 9d0aa000 00:00 0
9d0ad000-9d12b000 rwxp 9d0ad000 00:00 0
9d12b000-9d12e000 rwxp 9d12b000 00:00 0
9d12e000-9d1ac000 rwxp 9d12e000 00:00 0
9d1ac000-9d1af000 rwxp 9d1ac000 00:00 0
9d1af000-9d22d000 rwxp 9d1af000 00:00 0
9d22d000-9d230000 rwxp 9d22d000 00:00 0
9d230000-9d2ae000 rwxp 9d230000 00:00 0
9d2ae000-9d2b1000 rwxp 9d2ae000 00:00 0
9d2b1000-9d32f000 rwxp 9d2b1000 00:00 0
9d32f000-9d332000 rwxp 9d32f000 00:00 0
9d332000-9d3b0000 rwxp 9d332000 00:00 0
9d3b0000-9d3b3000 ---p 9d3b0000 00:00 0
9d3b3000-9d431000 rwxp 9d3b3000 00:00 0
9d431000-9d434000 rwxp 9d431000 00:00 0
9d434000-9d4b2000 rwxp 9d434000 00:00 0
9d4b2000-9d4b5000 ---p 9d4b2000 00:00 0
9d4b5000-9d533000 rwxp 9d4b5000 00:00 0
9d533000-9d536000 ---p 9d533000 00:00 0
9d536000-9d5b4000 rwxp 9d536000 00:00 0
9d5b4000-9d5b7000 ---p 9d5b4000 00:00 0
9d5b7000-9d635000 rwxp 9d5b7000 00:00 0
9d635000-9d636000 r-xp 00000000 fd:00 1214048 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/librmi.so
9d636000-9d637000 rwxp 00000000 fd:00 1214048 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/librmi.so
9d637000-9d63a000 rwxp 9d637000 00:00 0
9d63a000-9d6b8000 rwxp 9d63a000 00:00 0
9d6b8000-9d6bb000 rwxp 9d6b8000 00:00 0
9d6bb000-9d739000 rwxp 9d6bb000 00:00 0
9d739000-9d73c000 ---p 9d739000 00:00 0
9d73c000-9d7ba000 rwxp 9d73c000 00:00 0
9d7ba000-9d7bd000 ---p 9d7ba000 00:00 0
9d7bd000-9d83b000 rwxp 9d7bd000 00:00 0
9e41e000-9e421000 rwxp 9e41e000 00:00 0
9e421000-9e49f000 rwxp 9e421000 00:00 0
9e49f000-9e4d4000 r-xs 00000000 fd:00 2473232 /var/db/nscd/hosts
9e4d4000-9e4e5000 r-xp 00000000 fd:00 1214046 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/libnet.so
9e4e5000-9e4e6000 rwxp 00011000 fd:00 1214046 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/libnet.so
9e4e6000-9e4e9000 rwxp 9e4e6000 00:00 0
9e4e9000-9e567000 rwxp 9e4e9000 00:00 0
9e567000-9e56a000 ---p 9e567000 00:00 0
9e56a000-9e5e8000 rwxp 9e56a000 00:00 0
9f834000-9f9ef000 r-xs 00000000 fd:04 6144498 /blahblah/xerces.jar
9ffd4000-9ffd5000 ---p 9ffd4000 00:00 0
9ffd5000-a0055000 rwxp 9ffd5000 00:00 0
a0055000-a0058000 ---p a0055000 00:00 0
a0058000-a00d6000 rwxp a0058000 00:00 0
a00d6000-a00d9000 ---p a00d6000 00:00 0
a00d9000-a0157000 rwxp a00d9000 00:00 0
a0157000-a015a000 ---p a0157000 00:00 0
a015a000-a01d8000 rwxp a015a000 00:00 0
a01d8000-a01db000 ---p a01d8000 00:00 0
a01db000-a0259000 rwxp a01db000 00:00 0
a0259000-a025c000 ---p a0259000 00:00 0
a025c000-a02da000 rwxp a025c000 00:00 0
a02da000-a02db000 r-xp 00fb3000 fd:00 969958 /usr/lib/locale/locale-archive
a02db000-a030d000 r-xp 00f2c000 fd:00 969958 /usr/lib/locale/locale-archive
a030d000-a050d000 r-xp 00000000 fd:00 969958 /usr/lib/locale/locale-archive
a050d000-a0510000 ---p a050d000 00:00 0
a0510000-a058e000 rwxp a0510000 00:00 0
a058e000-a0591000 ---p a058e000 00:00 0
a0591000-a060f000 rwxp a0591000 00:00 0
a060f000-a0610000 ---p a060f000 00:00 0
a0610000-a0690000 rwxp a0610000 00:00 0
a0690000-a0691000 ---p a0690000 00:00 0
a0691000-a0711000 rwxp a0691000 00:00 0
a0711000-a0712000 ---p a0711000 00:00 0
a0712000-a07a0000 rwxp a0712000 00:00 0
a07a0000-a07b2000 rwxp a07a0000 00:00 0
a07b2000-a07c5000 rwxp a07b2000 00:00 0
a07c5000-a080b000 rwxp a07c5000 00:00 0
a080b000-a0819000 rwxp a080b000 00:00 0
a0819000-a082b000 rwxp a0819000 00:00 0
a082b000-a083e000 rwxp a082b000 00:00 0
a083e000-a0883000 rwxp a083e000 00:00 0
a0883000-a088f000 rwxp a0883000 00:00 0
a088f000-a2450000 rwxp a088f000 00:00 0
a2450000-a4890000 rwxp a2450000 00:00 0
a4890000-a6e40000 rwxp a4890000 00:00 0
a6e40000-afa60000 rwxp a6e40000 00:00 0
afa60000-b1090000 rwxp afa60000 00:00 0
b1093000-b10a6000 rwxp b1093000 00:00 0
b10a6000-b1153000 rwxp b10a6000 00:00 0
b1153000-b15e3000 rwxp b1153000 00:00 0
b15e3000-b4153000 rwxp b15e3000 00:00 0
b4153000-b49c3000 r-xs 00000000 fd:00 1200731 /usr/java/jdk-1.5.0_09-i386/jre/lib/charsets.jar
b49c3000-b49d8000 r-xs 00000000 fd:00 1200759 /usr/java/jdk-1.5.0_09-i386/jre/lib/jce.jar
b49d8000-b4a5d000 r-xs 00000000 fd:00 1200760 /usr/java/jdk-1.5.0_09-i386/jre/lib/jsse.jar
b4a5d000-b4ac6000 rwxp b4a5d000 00:00 0
b4ac6000-b70dc000 r-xs 00000000 fd:00 1200767 /usr/java/jdk-1.5.0_09-i386/jre/lib/rt.jar
b70dc000-b70eb000 r-xp 00000000 fd:00 1214052 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/libzip.so
b70eb000-b70ed000 rwxp 0000e000 fd:00 1214052 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/libzip.so
b70ed000-b710e000 r-xp 00000000 fd:00 1214032 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/libjava.so
b710e000-b7110000 rwxp 00020000 fd:00 1214032 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/libjava.so
b7110000-b711b000 r-xp 00000000 fd:00 1214051 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/libverify.so
b711b000-b711c000 rwxp 0000b000 fd:00 1214051 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/libverify.so
b711c000-b7124000 rwxs 00000000 fd:00 2392802 /tmp/hsperfdata_elm_d/30978
b7124000-b760e000 r-xs 00000000 fd:00 2473112 /var/db/nscd/passwd
b760e000-b7614000 r-xp 00000000 fd:00 1214056 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/native_threads/libhpi.so
b7614000-b7615000 rwxp 00006000 fd:00 1214056 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/native_threads/libhpi.so
b7615000-b7616000 rwxp b7615000 00:00 0
b7616000-b7617000 r-xp b7616000 00:00 0
b7617000-b7b71000 r-xp 00000000 fd:00 1214060 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/server/libjvm.so
b7b71000-b7bd4000 rwxp 0055a000 fd:00 1214060 /usr/java/jdk-1.5.0_09-i386/jre/lib/i386/server/libjvm.so
b7bd4000-b7fed000 rwxp b7bd4000 00:00 0
bfe00000-bfe03000 ---p bfe00000 00:00 0
bfe03000-c0000000 rwxp bfe03000 00:00 0
ffffe000-fffff000 ---p 00000000 00:00 0
VM Arguments:
jvm_args: -Xmx200M -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseParallelGC -XX:+UseAdaptiveSizePolicy -Djava.security.manager -Djava.security.policy=/blah/blah/blah.policy -Dsun.rmi.dgc.client.gcInterval=72000000 -Dsun.rmi.dgc.server.gcInterval=72000000
java_command: blahblahblah
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/usr/java/jdk-1.5.0_09-i386
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
LD_LIBRARY_PATH=/usr/java/jdk-1.5.0_09-i386/jre/lib/i386/server:/usr/java/jdk-1.5.0_09-i386/jre/lib/i386:/usr/java/jdk-1.5.0_09-i386/jre/../lib/i386
Signal Handlers:
SIGSEGV: [libjvm.so+0x508860], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGBUS: [libjvm.so+0x508860], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGFPE: [libjvm.so+0x42cac0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGPIPE: [libjvm.so+0x42cac0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGILL: [libjvm.so+0x42cac0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x42ef10], sa_mask[0]=0x00000000, sa_flags=0x14000004
SIGHUP: [libjvm.so+0x42e940], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGINT: [libjvm.so+0x42e940], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGQUIT: [libjvm.so+0x42e940], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGTERM: [libjvm.so+0x42e940], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
--------------- S Y S T E M ---------------
OS:Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
uname:Linux 2.6.9-22.0.2.ELsmp #1 SMP Thu Jan 5 17:13:01 EST 2006 i686
libc:glibc 2.3.4 NPTL 2.3.4
rlimit: STACK 10240k, CORE 0k, NPROC 131071, NOFILE 1024, AS infinity
load average:30.16 19.62 12.95
CPU:total 2 (cores per cpu 1, threads per core 1) family 15 model 37 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnowext, 3dnow
Memory: 4k page, physical 8145028k(148604k free), swap 1023k(997k free)
vm_info: Java HotSpot(TM) Server VM (1.5.0_09-b01) for linux-x86, built on Sep 7 2006 13:17:49 by java_re with gcc 3.2.1-7a (J2SE release)

There's no JNI component of RMI so this is only an RMI problem to the extent that RMI uses TCP. It's a Java TCP accept() problem.That's what I figured. Shame nobody else on the entire Internet appears to have experienced the same problem... :-( Nevertheless, there is no native code in our application so it's looking like a bug in the native socket accept implementation, yes? And that appears to be exacerbated by RMI and/or our use of RMI.
I suspect we are (or the third party code is) doing something strange at VM shutdown since the crash always happens after a log output saying that the process has completed its work. So my current lines of attack are around JVM shutdown handlers, finalizers, etc.
Our project also uses OpenAdaptor (open source ETL tool) and I discovered that this by default calls runFinalizersOnExit(true), so we're going to try re-configuring that today too in case there's something dodgy going on with the finalizers somewhere.
That EDI register of 0x8 looks very suspicious. Have you tried the Bug Parade?Your expertise extends to understand the underlying hardware implemention? Is there no end to your talents ejp?! :-)
I have tried the bug parade but there's nothing obvious there. Plus, it's just about the worst bug tracking system in existance (to go with the worst forum software I guess! LOL) and things just get closed with no comment, or ignored, or turn into a flame war, etc... Still, I tried and didn't have any luck.
Thanks ejp!

Similar Messages

  • RMI and native code

    Hi
    Can anybody send me a sample code(HelloWorld type)that is based on RMI and uses native code(eg. win32).
    SANJAY

    If you're trying to do anything with native code, then you should be familiar with JNI API, windows or not.
    Check out the JNI tutorials on this site and i'm sure they'll provide you with JNI tutorials and samples.

  • Failure upon Socket.accept

    We are seeing our logs filling with the following exception:
    Wed Sep 20 20:23:14 PDT 2000:<E> <ListenThread> Listen failed, failure
    count: '1'
    java.net.SocketException: Software caused connection abort
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.socketAccept(Compiled Code)
    at java.net.PlainSocketImpl.accept(Compiled Code)
    at java.net.ServerSocket.implAccept(Compiled Code)
    at java.net.ServerSocket.accept(Compiled Code)
    at weblogic.t3.srvr.ListenThread.run(Compiled Code)
    Has anyone else experienced this?
    We are running WLS 5.1, Solaris 7, and Solaris_JDK_1.2.1_04. The soft
    limit for file descriptors is 1024, the hard limit is 4096. We are no
    where near the file descriptor limit.
    Thanks
    Kevin

    Adam,
    I am fairly new to WL development. Are you implying that the server my client startup class is connecting to is somehow calling close on my server? I am not sure how or where this would be possible as I am connecting to the remote server on a different port.
    During the 15 or so failure messages and reconnect attempts, my client can still receive messages from the remote server; I am just assuming that port 7001 just became unavailable for some reason.
    Any ideas?
    -Nathan
    "Adam Messinger" <[email protected]> wrote:
    Nathan,
    It appears that client socket is calling connect() and then close(). This
    makes the server's call to accept() fail because the socket is already
    closed.
    Regards,
    Adam
    "Nathan Yeager" <[email protected]> wrote in message
    news:3a314bee$[email protected]..
    Hi,
    I am running 4.5.1 SP13. I have a startup class which registers itself asan RMI observer with a remote server. It initially connects, and receives
    the first message.
    Not long after receiving the first message, the following is outputnumerous times before the server shuts itself down:
    Fri Dec 08 14:53:39 CST 2000:<E> <ListenThread> Listen failed. Failurecount: 1
    Fri Dec 08 14:53:39 CST 2000:<E> <ListenThread> java.net.SocketException:socket closed
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:413)
    at java.net.ServerSocket.implAccept(ServerSocket.java:241)
    at java.net.ServerSocket.accept(ServerSocket.java:222)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:280)
    Fri Dec 08 14:53:39 CST 2000:<E> <ListenThread> Attempting to close andreopen server socket
    This appears to be a fairly generic error message and I don't have much togo by. Any ideas?
    -Nathan Yeager

  • Any bad side-effects to lengthy blocking in native code? - crosspost

    [This question was also posted on the Native Methods forum a day ago, so far no response]
    1) Are there any negative side-effects to having one (or maybe a few) Java threads block for an extended period (e.g. hours) in native code? Naturally the thread would NOT be one of the "special" threads (such as the Swing event dispatcher, etc).
    2) Does the answer vary by platform? I'm interested in Win32, Linux and possibly Solaris (in that order).
    3) What if I scale the number of threads blocked in JNI code up to 100 threads. Does that change any of the answers? This is perhaps a silly number, I'm just trying to understand if more resources are consumed by blocking in the JNI as opposed to blocking in Java.
    4) Do modern JVM's use one native thread per Java thread? If so, then I would guess there is really nothing special about blocking in native code.
    Lastly, Is this stuff spelled out in some document? Or is there some newsgroup dedicated to the topic? I looked a comp.lang.java.machine, but there is nothing there but spam.
    Motivation for query -- In my application I need to interface with legacy C++ code that blocks (mostly on socket and i/o selects). I'm not thrilled about native code, but if there are no serious side-effects to extended blocking, it may be a viable approach.

    [This question was also posted on the Native Methods
    forum a day ago, so far no response]
    1) Are there any negative side-effects to having one
    (or maybe a few) Java threads block for an extended
    period (e.g. hours) in native code? Naturally the
    thread would NOT be one of the "special" threads (such
    as the Swing event dispatcher, etc).No. It is common to have a "reader" thread for a blocking socket connection. This results in a block in native code for days (months). The only impact is that you may end up creating alot of threads to handle this blocking code.
    >
    2) Does the answer vary by platform? I'm interested in Win32, Linux and possibly Solaris (in that order).I would hope not. You may find that WIn32 will run out of threads fairly quickly (at about 1000 threads) Earlier versions of Linux create a different process per thread which can have a non-trival overhead. Solaris will probibly not care. It has a thread number limit but if you reach it you are probibly doing something wroung.
    >
    3) What if I scale the number of threads blocked in
    JNI code up to 100 threads. Does that change any of
    the answers? This is perhaps a silly number, I'm just
    trying to understand if more resources are consumed by
    blocking in the JNI as opposed to blocking in Java.It takes a while to start a thread, it also consumes a minimal amount of per thread memory which can add up if you have 100s of threads. f you are writing the JNI I would suggest writing it to scale such that say more connections/files etc can be handled by a small number of threads (like NIO does) and these issues are reduced.
    >
    Motivation for query -- In my application I need to
    interface with legacy C++ code that blocks (mostly on
    socket and i/o selects). I'm not thrilled about native
    code, but if there are no serious side-effects to
    extended blocking, it may be a viable approach.See above.

  • Any bad side-effects to lengthy blocking in native code? (Win32,Linux,Solar

    1) Are there any negative side-effects to having one (or maybe a few) Java threads block for an extended period (e.g. hours) in native code? Naturally the thread would NOT be one of the "special" threads (such as the Swing event dispatcher, etc).
    2) Does the answer vary by platform? I'm interested in Win32, Linux and possibly Solaris (in that order).
    3) What if I scale the number of threads blocked in JNI code up to 100 threads. Does that change any of the answers? This is perhaps a silly number, I'm just trying to understand if more resources are consumed by blocking in the JNI as opposed to blocking in Java.
    4) Do modern JVM's use one native thread per Java thread? If so, then I would guess there is really nothing special about blocking in native code.
    Motivation for query -- In my application I need to interface with legacy C++ code that blocks (mostly on socket and i/o selects). I'm not thrilled about native code, but if there are no serious side-effects to extended blocking, it may be a viable approach.

    1) Are there any negative side-effects to having one
    (or maybe a few) Java threads block for an extended
    period (e.g. hours) in native code? Naturally the
    thread would NOT be one of the "special" threads (such
    as the Swing event dispatcher, etc).As far as I know the native code is loaded dynamic when a thread will use it.
    So if the thread 1 needs the code written in the native.dll the thread 1 will use
    the first instance of native.dll. So let's say this is blocked.
    Then after 2 hours another thread called thread2 calls the native.dll code. Then
    java ask the OS to create another instance of the native.dll and so on.
    So now there are 2 threads and 2 instances of the dll in the memory.
    All these apply to the Win32 OSs.
    >
    2) Does the answer vary by platform? I'm interested
    in Win32, Linux and possibly Solaris (in that order).
    3) What if I scale the number of threads blocked in
    JNI code up to 100 threads. Does that change any of
    the answers? This is perhaps a silly number, I'm just
    trying to understand if more resources are consumed by
    blocking in the JNI as opposed to blocking in Java.
    If your machine could suffer 100 pure java threads then it is not a problem to be some of them JNI ones.
    4) Do modern JVM's use one native thread per Java
    thread? Yes. Exactly as far as I know and experienced.
    If so, then I would guess there is really
    nothing special about blocking in native code.Exactly.
    >
    >
    Motivation for query -- In my application I need to
    interface with legacy C++ code that blocks (mostly on
    socket and i/o selects). I'm not thrilled about
    native code, but if there are no serious side-effects
    to extended blocking, it may be a viable approach.Yes it is. That is actually why Native methods are existing for.

  • Why native code outside the VM when I use JNI in web application?

    I have a web application by using JBOSS as the server in windows XP environment. I need to call native functions in my servletAction class to check some information. After I start JBOSS and WebServer(tomcat), it works well when I launch the web page to call that native funtions in the first a few times, but after a while when I reopen that page in IE to call native funtions it throws me an unexpected error and shut down the jboss automatically. Could know how to solve it? Thank you guys in advance!
    Error message:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x63BA7AD
    Function=[Unknown.]
    Library=C:\WINDOWS\system32\HaspKeyDAO.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at Key.readBlock(Native Method)     
         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:324)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113)
         at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:283)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
         at org.jboss.ejb.Container.invoke(Container.java:854)
         at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
         at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:775)
         at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
         at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
    Dynamic libraries:
    0x00400000 - 0x0040B000      C:\j2sdk1.4.2_06\bin\java.exe
    0x7C900000 - 0x7C9B0000      C:\WINDOWS\system32\ntdll.dll
    0x7C800000 - 0x7C8F4000      C:\WINDOWS\system32\kernel32.dll
    0x77DD0000 - 0x77E6B000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77E70000 - 0x77F01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77C10000 - 0x77C68000      C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x08139000      C:\j2sdk1.4.2_06\jre\bin\client\jvm.dll
    0x77D40000 - 0x77DD0000      C:\WINDOWS\system32\USER32.dll
    0x77F10000 - 0x77F56000      C:\WINDOWS\system32\GDI32.dll
    0x76B40000 - 0x76B6D000      C:\WINDOWS\system32\WINMM.dll
    0x10000000 - 0x10007000      C:\j2sdk1.4.2_06\jre\bin\hpi.dll
    0x00390000 - 0x0039E000      C:\j2sdk1.4.2_06\jre\bin\verify.dll
    0x003B0000 - 0x003C9000      C:\j2sdk1.4.2_06\jre\bin\java.dll
    0x003D0000 - 0x003DD000      C:\j2sdk1.4.2_06\jre\bin\zip.dll
    0x003E0000 - 0x003EF000      C:\j2sdk1.4.2_06\jre\bin\net.dll
    0x71AB0000 - 0x71AC7000      C:\WINDOWS\system32\WS2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71A50000 - 0x71A8F000      C:\WINDOWS\System32\mswsock.dll
    0x76F20000 - 0x76F47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76FB0000 - 0x76FB8000      C:\WINDOWS\System32\winrnr.dll
    0x76F60000 - 0x76F8C000      C:\WINDOWS\system32\WLDAP32.dll
    0x03070000 - 0x030AC000      C:\Program Files\NewDotNet\newdotnet6_38.dll
    0x774E0000 - 0x7761D000      C:\WINDOWS\system32\ole32.dll
    0x77120000 - 0x771AC000      C:\WINDOWS\system32\OLEAUT32.dll
    0x77260000 - 0x772FE000      C:\WINDOWS\system32\urlmon.dll
    0x77F60000 - 0x77FD6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x77C00000 - 0x77C08000      C:\WINDOWS\system32\VERSION.dll
    0x771B0000 - 0x77256000      C:\WINDOWS\system32\WININET.dll
    0x77A80000 - 0x77B14000      C:\WINDOWS\system32\CRYPT32.dll
    0x77B20000 - 0x77B32000      C:\WINDOWS\system32\MSASN1.dll
    0x77920000 - 0x77A13000      C:\WINDOWS\system32\SETUPAPI.dll
    0x71B20000 - 0x71B32000      C:\WINDOWS\system32\MPR.dll
    0x76C30000 - 0x76C5E000      C:\WINDOWS\system32\WINTRUST.dll
    0x76C90000 - 0x76CB8000      C:\WINDOWS\system32\IMAGEHLP.dll
    0x7C9C0000 - 0x7D1D4000      C:\WINDOWS\system32\SHELL32.dll
    0x773D0000 - 0x774D2000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
    0x5D090000 - 0x5D127000      C:\WINDOWS\system32\comctl32.dll
    0x76FC0000 - 0x76FC6000      C:\WINDOWS\system32\rasadhlp.dll
    0x662B0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71A90000 - 0x71A98000      C:\WINDOWS\System32\wshtcpip.dll
    0x042C0000 - 0x042C6000      C:\j2sdk1.4.2_06\jre\bin\ioser12.dll
    0x04410000 - 0x04418000      C:\j2sdk1.4.2_06\jre\bin\nio.dll
    0x046A0000 - 0x046A5000      C:\j2sdk1.4.2_06\jre\bin\rmi.dll
    0x047F0000 - 0x0490E000      C:\jboss-4.0.0-winsort\server\default\tmp\native\SharedLib\HaspKeyDAO.dll
    0x04A20000 - 0x04A73000      C:\jboss-4.0.0-winsort\server\default\tmp\native\msc\dll\haspms32.dll
    0x06390000 - 0x064AE000      C:\WINDOWS\system32\HaspKeyDAO.dll
    0x76F50000 - 0x76F58000      C:\WINDOWS\system32\wtsapi32.dll
    0x76360000 - 0x76370000      C:\WINDOWS\system32\WINSTA.dll
    0x5B860000 - 0x5B8B4000      C:\WINDOWS\system32\NETAPI32.dll
    0x59A60000 - 0x59B01000      C:\WINDOWS\system32\DBGHELP.dll
    0x76BF0000 - 0x76BFB000      C:\WINDOWS\system32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 9216K, used 2204K [0x10010000, 0x10a00000, 0x12770000)
    eden space 8256K, 26% used [0x10010000, 0x102370e8, 0x10820000)
    from space 960K, 0% used [0x10820000, 0x10820000, 0x10910000)
    to space 960K, 0% used [0x10910000, 0x10910000, 0x10a00000)
    tenured generation total 121024K, used 39043K [0x12770000, 0x19da0000, 0x30010000)
    the space 121024K, 32% used [0x12770000, 0x14d90ec8, 0x14d91000, 0x19da0000)
    compacting perm gen total 23808K, used 23618K [0x30010000, 0x31750000, 0x34010000)
    the space 23808K, 99% used [0x30010000, 0x31720888, 0x31720a00, 0x31750000)
    Local Time = Thu May 26 11:34:39 2005
    Elapsed Time = 3209
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_06-b03 mixed mode)
    Following is what I am doing:
    I have a key.java file with several native functions.
    In key.cpp I defined the implementation of above functions then created dynamic link library file key.dll. I put the key.dll to WEB-INF/lib/key.dll.
    Then in a servlet Action class, I called new key().keyPresent and new key().readBlock(0, 8, block, p1,p1).
    Public class Key{
    public native int keyPresent(int password1, int password2);
    public native void readBlock(int startMemoryLocation, int size,
    byte[] block, int password1, int password2);
    static {
    System.loadLibrary("Key");
    //A Singleton Class
    private static Key key;
    private Key()
    public static Key getSingletonObject()
    if ( key== null)
    key = new Key();          
    return key;
    public Object clone()
         throws CloneNotSupportedException
    throw new CloneNotSupportedException();
    Key.cpp:
    #include <jni.h>
    #include "Key.h"
    #include <stdio.h>
    #include "hasp.h"
    #include <memory.h>
    JNIEXPORT jint JNICALL Java_Key_keyPresent
    (JNIEnv *env, jobject obj, jint pass1, jint pass2)
         try{
              int keyPresent = 0;
              int p1, p2, p3, p4;
              int seed = 100;
              int port = 0;
              p1 = p2 = p3 = p4 = 0;
              hasp(LOCALHASP_ISHASP, seed, port, 0, 0, &p1, &p2, &p3, &p4);
              if (p1 == 0) {
                   printf("\nNo Hasp exists. Program aborted.\n");
                   return -1;
              if (p3 == HASPERR_VERSION_MISMATCH) {
              printf("Old driver found - please update driver to actual version.\n");
              return 2;
              hasp(LOCALHASP_HASPSTATUS, seed, port, pass1, pass2, &p1, &p2, &p3, &p4);
              if (p3 == 0) {
                   return 4;
              hasp(LOCALHASP_HASPGENERATION, seed, port, pass1, pass2, &p1, &p2, &p3, &p4);
              if (p3) {
                   printf("Failed: haspKey password is not correct!");
                   return 4;
              } else {
                   switch (p1) {
                   case 0:
                   keyPresent = 3;
                                  break;
                   case 1:
                        keyPresent =1;
                        break;
              return keyPresent;
         }catch(...){
              return -999;
    * READBLOCK
    * reads a block of data from the HASP memory
    JNIEXPORT void JNICALL Java_Key_readBlock
    (JNIEnv *env, jobject obj, jint startMemoryLocation, jint nSize, jbyteArray pBlock, jint pass1, jint pass2)
         try{
              int     p1, p2, p3, p4;
              p1 = (startMemoryLocation+1)/2;
              p2 = nSize >> 1;
              jbyte *javablob = env->GetByteArrayElements(pBlock, 0);
              memset(javablob, 0, nSize);
              p4 = (int)javablob;
              int seed = 100;
              int port = 102;
              hasp(MEMOHASP_READBLOCK, seed, port, pass1, pass2, &p1, &p2, &p3, &p4);
              env->ReleaseByteArrayElements(pBlock, javablob, 0);
              if (p3) {
                   printf("Failed. Error number: %d.\n", p3);
              } else {
         }catch(...){
              printf("readBlock function failed");
    }

    the error happens in your native-code which runs outside the VM of course, since its native.
    You access some memory where you don't have rights to do so, in a normal win32-app you would get the "application crashed at 0xdeadbeef"-window, and since java cannon guarantee that your code did not destroy something it shuts down.
    I would try to debug my code withought java in a C++ IDE/Debugger.
    good luck, lg Clemens

  • Socket.accept() method ?

    Hi,
    I'm trying to write a networking app. The client seems to work - it sends a String object through an ObjectOutuptStream.
    The problem seems to be that the socket.accept() method in the server isnt working!
    //PlusServer.java
    //Server that takes commands from Android Client, executes commands & finally returns result.
    import java.net.*;
    import java.io.*;
    public class PlusServer
        //instance variables
        static Boolean finished = false;
        //Main method
        public static void main(String[] args)
            System.out.println(" 000 Entered Main method");
            //Disable Security Manager
            //System.setSecurityManager(null);
                try
            ServerSocket listener = new ServerSocket(1234);
            System.out.println("0 setup ServerSocket on port 1234");
                while(!finished)
                    Socket client = listener.accept();//wait for connection
                    //The program doesn't proceed any further! Why?
                    InputStream in = client.getInputStream();
                    OutputStream out = client.getOutputStream();
                    //read cmd
                    ObjectInputStream oin = new ObjectInputStream(in);
                    String cmd = (String)oin.readObject();
                    if (cmd.equals("Connect"))
                        client.close();
                        finished=true;
                    //Send results
                    // blah, blah, blah
                listener.close();   
                catch(Exception e){System.out.println("Error: "+e);}
    }The code for the client is available in another forum, here:
    http://androidforums.com/developer-101/144926-android-network-programming.html#post1333747

    If you plan to use ServerSocket for networking in java, you better get much more familiar and friendly with threads, cause you are going to need them.
    I can't look at the other forum from work to see what the client code is, but your code looks really funny here.
    Some advice, you are obviously new to this part of java coding, stick to sending strings instead of objects while you are new, it is much easier if you just stick to sending strings, and there is nothing you can't do by just sending strings. Even though in some cases sending objects is the better approach, first learn how to do client server communications the easy way and it will then naturally come to you when you should use objects. Your program clearly could have used strings only. And I am willing to bet that you would have possibly seen the problem yourself if you had.
    Also, this is a very poor algorithm. What happens if you want to send two objects (or two strings if you adhear to my advice above)? Do you really think it is necessary and sound to have to reconnect the server and client for every objoct/string you want to send between them? In some cases, perhaps not this one since you are communicating with a mobile device it seems, it is ideal to not ever terminate the connection between the client and server, but instead allow threads to handle keeping open lines of communication.
    Now, were I a betting man, I would bet that in your client code you are either neglecting to flush at all, or doing it incorrectly. Again I can't see that code so I am not certain, but that is a common mistake for people new to this and its symptoms fit with what you are describing seeing perfectly. I highely recomend using autoflush, especially to someone new to network programming.
    JSG
    Edited by: JustSomeGuy on Aug 10, 2010 11:29 AM
    Edited by: JustSomeGuy on Aug 10, 2010 11:30 AM

  • Accesing native code form EJB

    Hi there,
    I need to read some cpp methods from dll file in my EJB component. I know the specification of EJB doesn&#8217;t allow it but I read that is a few way to do it. I really don&#8217;t know which technology should I use?? There is possibility to use RMI, COBRA ,XML-RPC maybe something more??? Witch of this technology is the best? I'll be very glad if you have some tutorial how to do it or maybe answer how to solve this problem???
    Btw sorry for my English.
    Thanks

    The question can also be framed as:
    "Can native code (in the form of libraries like libxyz.a on Linux) be integrated with the Wireless Toolkit (WTK) without compiling the WTK.
    WTK experts please help me out.
    Regards....

  • Java application crashes due to some problem in native  code

    Hi All
    I have a Java application that calls APIs in a 3rd party DLL(I don't have access to its source code or logs) through my VC++ DLL(Win32) that acts as the wrapper DLL.
    The Application has many functionalities and is based on multithreading (both on Java layer as well as C++ layer). Most of the functionalities are working , but when I try to close the application, it crashes.
    Moreover the crashing occurs inconstently, sometimes it does not crash. Instead of showing any debug information , it simply creates a error file with disassembly code that I am not able to understand.
    Though the error seems like an java error, but actually it seems to be due to native code. I have try catch blocks in my code and also implemented settranslator functionality to get hold of structured/C exceptions. But still I am not able to catch any exceptions.
    I am pasting the the contents of the file here:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c9111de, pid=488, tid=1848
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_14-b05 mixed mode)
    # Problematic frame:
    # C [ntdll.dll+0x111de]
    --------------- T H R E A D ---------------
    Current thread (0x009d1790): JavaThread "CompilerThread0" daemon [_thread_in_native, id=1848]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000001
    Registers:
    EAX=0x00000001, EBX=0x00030000, ECX=0x02d17a18, EDX=0x00030278
    ESP=0x02c2f8e8, EBP=0x02c2fb08, ESI=0x02d17a10, EDI=0x00000001
    EIP=0x7c9111de, EFLAGS=0x00010202
    Top of Stack: (sp=0x02c2f8e8)
    0x02c2f8e8: 009fa9a0 000000c0 00000008 0811d3d8
    0x02c2f8f8: 0000000c 00a2c0e0 00000003 00000004
    0x02c2f908: 08018216 00000001 02c2fcc4 08018385
    0x02c2f918: 00000002 00000001 02c2f93c 02d06d0c
    0x02c2f928: 0802a50a 00000000 00000001 02c2f93c
    0x02c2f938: 04a3cb4c 02d01008 02c2f964 0802a850
    0x02c2f948: 02c2f96e 00000000 00000007 00000000
    0x02c2f958: 04a3cb38 00000004 08018216 00000001
    Instructions: (pc=0x7c9111de)
    0x7c9111ce: 39 89 bd 0c ff ff ff 8b 46 0c 89 85 68 ff ff ff
    0x7c9111de: 8b 10 3b 57 04 0f 85 8c 31 02 00 3b d1 0f 85 84
    Stack: [0x02bf0000,0x02c30000), sp=0x02c2f8e8, free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [ntdll.dll+0x111de]
    C [MSVCRT.dll+0x1c3c9]
    C [MSVCRT.dll+0x1c3e7]
    C [MSVCRT.dll+0x1c42e]
    V [jvm.dll+0xacda9]
    V [jvm.dll+0x17102]
    V [jvm.dll+0x16c8d]
    V [jvm.dll+0x16dca]
    V [jvm.dll+0x170a7]
    V [jvm.dll+0x172e8]
    V [jvm.dll+0x4dc65]
    V [jvm.dll+0x4d894]
    V [jvm.dll+0xd3a36]
    V [jvm.dll+0xd3a04]
    C [MSVCRT.dll+0x2a3b0]
    C [kernel32.dll+0xb683]
    Current CompileTask:
    HotSpot Client Compiler:423 b sun.awt.AWTAutoShutdown.isReadyToShutdown()Z (33 bytes)
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x049d6328 JavaThread "Thread-19" [_thread_blocked, id=1440]
    0x049d24d0 JavaThread "Thread-18" [_thread_blocked, id=3620]
    0x049d40c8 JavaThread "Thread-17" [_thread_blocked, id=2476]
    0x02df0538 JavaThread "TimerQueue" daemon [_thread_blocked, id=3876]
    0x00036a78 JavaThread "DestroyJavaVM" [_thread_blocked, id=2448]
    0x02e43768 JavaThread "Thread-6" [_thread_blocked, id=3664]
    0x02e23130 JavaThread "Thread-4" [_thread_blocked, id=2816]
    0x02e21d08 JavaThread "Thread-2" [_thread_blocked, id=3344]
    0x02da3f78 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2528]
    0x02da3268 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4008]
    0x02d91f90 JavaThread "AWT-Windows" daemon [_thread_blocked, id=648]
    0x02d3a478 JavaThread "AWT-Shutdown" [_thread_blocked, id=2988]
    =>0x009d1790 JavaThread "CompilerThread0" daemon [_thread_in_native, id=1848]
    0x009d0a90 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3568]
    0x009ce128 JavaThread "Finalizer" daemon [_thread_blocked, id=1824]
    0x009ccda0 JavaThread "Reference Handler" daemon [_thread_blocked, id=3280]
    Other Threads:
    0x00a0b6e8 VMThread [id=608]
    0x00a0d620 WatcherThread [id=3012]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 640K, used 583K [0x10010000, 0x100c0000, 0x104f0000)
    eden space 576K, 90% used [0x10010000, 0x10091e40, 0x100a0000)
    from space 64K, 99% used [0x100b0000, 0x100bfff8, 0x100c0000)
    to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
    tenured generation total 7772K, used 5451K [0x104f0000, 0x10c87000, 0x14010000)
    the space 7772K, 70% used [0x104f0000, 0x10a42d80, 0x10a42e00, 0x10c87000)
    compacting perm gen total 8192K, used 8137K [0x14010000, 0x14810000, 0x18010000)
    the space 8192K, 99% used [0x14010000, 0x148024e8, 0x14802600, 0x14810000)
    Dynamic libraries:
    0x00400000 - 0x0040b000 c:\dcsthick\jre\bin\java.exe
    0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000 C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
    0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x08143000 c:\dcsthick\jre\bin\client\jvm.dll
    0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
    0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
    0x10000000 - 0x10007000 c:\dcsthick\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
    0x00390000 - 0x0039e000 c:\dcsthick\jre\bin\verify.dll
    0x003b0000 - 0x003c9000 c:\dcsthick\jre\bin\java.dll
    0x003d0000 - 0x003de000 c:\dcsthick\jre\bin\zip.dll
    0x02e70000 - 0x02f84000 C:\dcsthick\jre\bin\awt.dll
    0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
    0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
    0x5ad70000 - 0x5ada8000 C:\WINDOWS\SYSTEM32\uxtheme.dll
    0x02fe0000 - 0x03031000 C:\dcsthick\jre\bin\fontmanager.dll
    0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
    0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
    0x73940000 - 0x73a10000 C:\WINDOWS\system32\D3DIM700.DLL
    0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
    0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
    0x03320000 - 0x0333c000 C:\dcsthick\lib\CrewsDmApiJniNt.dll
    0x031b0000 - 0x031bb000 c:\dcsthick\lib\CRWNT_DM.dll
    0x03240000 - 0x03249000 c:\dcsthick\lib\BAT_API.dll
    0x03340000 - 0x03352000 c:\dcsthick\lib\DC_DSM32.dll
    0x03360000 - 0x03369000 c:\dcsthick\lib\CRWTOOLS.dll
    0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
    0x03370000 - 0x0337a000 c:\dcsthick\lib\PMAPI.dll
    0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\COMCTL32.dll
    0x03790000 - 0x037b2000 c:\dcsthick\ResaDLL\DC_DSMNB.dll
    0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
    0x038d0000 - 0x038f2000 c:\dcsthick\ResaDLL\DC_DSMIP.dll
    0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll
    0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\mswsock.dll
    0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
    0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
    0x66580000 - 0x6658f000 C:\WINDOWS\system32\pnrpnsp.dll
    0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
    0x032e0000 - 0x0330a000 C:\dcsthick\lib\ResaHostConnection.dll
    0x03250000 - 0x03257000 c:\dcsthick\lib\CRWNT_GWALC.dll
    0x03310000 - 0x03319000 c:\dcsthick\lib\ALCAPI.dll
    0x763b0000 - 0x763f9000 C:\WINDOWS\system32\comdlg32.dll
    0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
    0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
    0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    VM Arguments:
    jvm_args: -Dcfdynaproppath=c:\dcsthick/config/ -Dcfdynapropxml=RESA_KCOdynamicproperties.xml -DConfigPath=c:\dcsthick/config/RESA_KCOConfig.xml -DResolution=High -DWorkstationID=GWGTE -DMode=GateBoarding -DlogPath=c:\temp\kcologs -DlogInformation=0 -DGateway=ALCSQ1 -DNetBiosPort=A
    java_command: com.singaporeair.dcs.standalone.application.model.ApplicationModel SQ/IGATEADXX
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=c:\dcsthick\jre\bin
    PATH=c:\dcsthick\jre\bin;c:\dcsthick/lib;c:\dcsthick/ResaDLL
    USERNAME=USER
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 family 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1039600k(565656k free), swap 2501208k(2091128k free)
    vm_info: Java HotSpot(TM) Client VM (1.4.2_14-b05) for windows-x86, built on Mar 14 2007 16:46:11 by "java_re" with MS VC++ 6.0
    The JAVA Application during initialisation establishes a connection with the host server for various devices. For each of the device it establishes a separate connection and keeps listening on these connections using multithreading.
    During App close, we need to close each of these connections one by one for each device.
    The opening /closing of connection is done by 3rd party DLL and call to there APIs is done through a C++ Wrapper DLL that I have built between the Java layer and their DLL.
    When we close the Application, I am always able to close the connections on the first 2 devices. Then all of a sudden it crashes either for the 3rd device conn. close or for the 4th one. The code is the same for all the devices . That too sometimes it just goes fine without crashing. If its a null pointer exception, why is it that it crashes on some occassions and not in other times. More importantly, why is it that it does not fail for the first 2 devices , but fails for the 3rd or 4th device connection close?
    Can please anyone help me. Please suggest me as to how I can determine the cause of the error.
    And is this error really coming in ntdll.dll or is it getting caused of my dll?

    The opening /closing of connection is done by 3rd party DLL and call to there APIs is done through a C++ Wrapper DLL that I have built between the Java layer and their DLL.The specific error indicates a pointer/memory problem.
    The first place that is likely is in your code.
    The second most likely place for the cause is because you are using the third party library incorrectly. For example before exiting you are supposed to clean up resources and you are not doing so.
    As a remote possibility, much less likely that either of the above, there is a bug in jnative or in the 3rd party library.

  • An unexpected exception has been detected in native code outside the VM.

    I thought that my problem had been solved yesterday when I managed to run my application with out getting "An unexpected exception has been detected in native code outside the VM."
    I was told to uninstall "j2sdk1.4.1_02" and install my old version of 1.3.1 and then completely remove that (as i do not think i removed it correctly in the first place), then reinstall my new version again (j2sdk1.4.1_02). This appeared to work, and my application ran. However, today i planned to do more work on it and it errored again. I am getting the following error:
    C:\Documents and Settings\Mike Costen\Desktop\Mar27d>java ImageViewerFrame
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D1C369C
    Function=Java_sun_awt_font_NativeFontWrapper_registerFonts+0x14BC
    Library=C:\j2sdk1.4.1_02\jre\bin\fontmanager.dll
    Current Java thread:
    at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
    - locked <06C15D48> (a java.lang.Class)
    at sun.java2d.SunGraphicsEnvironment.addPathFonts(SunGraphicsEnvironment.java:736)
    at sun.java2d.SunGraphicsEnvironment.registerFonts(SunGraphicsEnvironment.java:587)
    at sun.java2d.SunGraphicsEnvironment.access$100(SunGraphicsEnvironment.java:49)
    at sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:209)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.java2d.SunGraphicsEnvironment.loadFonts(SunGraphicsEnvironment.java:203)
    - locked <02F948A0> (a sun.awt.Win32GraphicsEnvironment)
    at sun.java2d.SunGraphicsEnvironment.mapFontName(SunGraphicsEnvironment.java:451)
    at java.awt.Font.initializeFont(Font.java:313)
    at java.awt.Font.<init>(Font.java:345)
    at sun.awt.windows.WDesktopProperties.setFontProperty(WDesktopProperties.java:148)
    - locked <02AE0000> (a sun.awt.windows.WDesktopProperties)
    at sun.awt.windows.WDesktopProperties.getWindowsParameters(Native Method)
    at sun.awt.windows.WDesktopProperties.<init>(WDesktopProperties.java:56)
    at sun.awt.windows.WToolkit.initializeDesktopProperties(WToolkit.java:865)
    at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1533)
    - locked <02F92380> (a sun.awt.windows.WToolkit)
    at sun.awt.shell.ShellFolder.<clinit>(ShellFolder.java:171)
    at javax.swing.filechooser.FileSystemView.getRoots(FileSystemView.java:324)
    at javax.swing.filechooser.WindowsFileSystemView.getHomeDirectory(FileSystemView.java:625)
    at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(MetalFileChooserUI.java:213)
    at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:130)
    at javax.swing.plaf.metal.MetalFileChooserUI.installUI(MetalFileChooserUI.java:152)
    at javax.swing.JComponent.setUI(JComponent.java:449)
    at javax.swing.JFileChooser.updateUI(JFileChooser.java:1700)
    at javax.swing.JFileChooser.setup(JFileChooser.java:345)
    at javax.swing.JFileChooser.<init>(JFileChooser.java:320)
    at javax.swing.JFileChooser.<init>(JFileChooser.java:273)
    at ImageViewerFrame.<init>(ImageViewerFrame.java:30)
    at ImageViewerFrame.main(ImageViewerFrame.java:227)
    Dynamic libraries:
    0x00400000 - 0x00406000 C:\j2sdk1.4.1_02\bin\java.exe
    0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll
    0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll
    0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll
    0x78000000 - 0x7807F000 C:\WINDOWS\system32\RPCRT4.dll
    0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
    0x6D340000 - 0x6D46A000 C:\j2sdk1.4.1_02\jre\bin\client\jvm.dll
    0x77D40000 - 0x77DC6000 C:\WINDOWS\system32\USER32.dll
    0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
    0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
    0x6D1E0000 - 0x6D1E7000 C:\j2sdk1.4.1_02\jre\bin\hpi.dll
    0x6D310000 - 0x6D31E000 C:\j2sdk1.4.1_02\jre\bin\verify.dll
    0x6D220000 - 0x6D239000 C:\j2sdk1.4.1_02\jre\bin\java.dll
    0x6D330000 - 0x6D33D000 C:\j2sdk1.4.1_02\jre\bin\zip.dll
    0x6D000000 - 0x6D105000 C:\j2sdk1.4.1_02\jre\bin\awt.dll
    0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV
    0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.dll
    0x771B0000 - 0x772D1000 C:\WINDOWS\system32\ole32.dll
    0x6D190000 - 0x6D1E0000 C:\j2sdk1.4.1_02\jre\bin\fontmanager.dll
    0x73760000 - 0x737A4000 C:\WINDOWS\System32\ddraw.dll
    0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll
    0x73940000 - 0x73A07000 C:\WINDOWS\System32\D3DIM700.DLL
    0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
    0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll
    0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
    0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
    Local Time = Mon Mar 31 08:59:02 2003
    Elapsed Time = 6
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode)
    # An error report file has been saved as hs_err_pid584.log.
    # Please refer to the file for further information.
    C:\Documents and Settings\Mike Costen\Desktop\Mar27d>
    I am now not sure at all why my computer is doing this, as it worked yesterday...
    Any light shed on this matter is much appreciated.
    Thanks, Mike

    Welcome to native code hell! The reason we all use Java is because
    native code sucks. It is to be isolated and quarantined to the smallest
    area possible.
    File a TAR/SR. Maybe you just need a newer vesion of the OCI client
    libraries on your machine. Maybe they are out of sync with the native
    portion of the type-2 driver.
    Say why you went from type-4 to type-2. In my opinion, unless you have
    a very good reason, you should go back to the reliable java driver. Java
    can't kill a JVM.
    Good luck,
    Joe Weinstein at BEA Systems

  • Error in native code while using JMF player

    I have written the following test program:
    import java.io.File;
    import java.io.IOException;
    import javax.media.Time;
    import javax.media.Player;
    import javax.media.Manager;
    import javax.media.NoPlayerException;
    class MyMP3Player {
    public static void main(String [] args) {
    try {
    File mp3File = new File("test.mp3");
    Player aPlayer = Manager.createPlayer(mp3File.toURL());
    aPlayer.start(); // Starts asynchronous playback
    Thread.sleep(10*1000); // Allow playback to continue for 10
    aPlayer.stop(); // stops playback (well, it really PAUSES!!!)
    aPlayer.deallocate();
    aPlayer.close();
    catch (IOException e) {e.printStackTrace();}
    catch (NoPlayerException npe) {npe.printStackTrace();}
    catch (InterruptedException ie) {ie.printStackTrace();}
    It works fine for 2 times: I can hear the first 10 seconds of the test.mp3 file. Then, on the third run, after it has played the file for the 10 seconds, the program gives me the error pasted below and exits. Does anyone know how to fix this? Am I doing something wrong in the program? BTW, I am running WinXP.
    ===== ERROR BEGINS HERE =====
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x73F91D04
    Function=[Unknown.]
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    at com.sun.media.amovie.ActiveMovie.dispose0(Native Method)
    at com.sun.media.amovie.ActiveMovie.dispose(ActiveMovie.java:329)
    at com.sun.media.amovie.AMController.doClose(AMController.java:632)
    - locked <029F77C8> (a java.lang.Integer)
    at com.sun.media.BasicController.close(BasicController.java:261)
    at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
    at com.sun.media.content.video.mpeg.Handler.doClose(Handler.java:158)
    at com.sun.media.BasicController.close(BasicController.java:261)
    at MyMP3Player.main(MyMP3Player.java:30)
    Dynamic libraries:
    0x00400000 - 0x00406000 C:\WINDOWS\system32\java.exe
    0x77F50000 - 0x77FF9000 C:\WINDOWS\System32\ntdll.dll
    0x77E60000 - 0x77F45000 C:\WINDOWS\system32\kernel32.dll
    0x77DD0000 - 0x77E5B000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77CC0000 - 0x77D35000 C:\WINDOWS\system32\RPCRT4.dll
    0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
    0x6D340000 - 0x6D46A000 C:\Program Files\Java\j2re1.4.1_02\bin\client\jv
    m.dll
    0x77D40000 - 0x77DCD000 C:\WINDOWS\system32\USER32.dll
    0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
    0x76B40000 - 0x76B6C000 C:\WINDOWS\system32\WINMM.dll
    0x6D1E0000 - 0x6D1E7000 C:\Program Files\Java\j2re1.4.1_02\bin\hpi.dll
    0x6D310000 - 0x6D31E000 C:\Program Files\Java\j2re1.4.1_02\bin\verify.dl
    l
    0x6D220000 - 0x6D239000 C:\Program Files\Java\j2re1.4.1_02\bin\java.dll
    0x6D330000 - 0x6D33D000 C:\Program Files\Java\j2re1.4.1_02\bin\zip.dll
    0x10000000 - 0x10015000 C:\WINDOWS\system32\jmutil.dll
    0x0AFA0000 - 0x0AFAD000 C:\WINDOWS\system32\jmam.dll
    0x771B0000 - 0x772CA000 C:\WINDOWS\system32\ole32.dll
    0x5AD70000 - 0x5ADA4000 C:\WINDOWS\system32\uxtheme.dll
    0x76FD0000 - 0x77048000 C:\WINDOWS\system32\CLBCATQ.DLL
    0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.dll
    0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
    0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
    0x72D20000 - 0x72D29000 C:\WINDOWS\system32\wdmaud.drv
    0x72D10000 - 0x72D18000 C:\WINDOWS\system32\msacm32.drv
    0x77BE0000 - 0x77BF4000 C:\WINDOWS\system32\MSACM32.dll
    0x77BD0000 - 0x77BD7000 C:\WINDOWS\system32\midimap.dll
    0x73F10000 - 0x73F65000 C:\WINDOWS\system32\DSOUND.DLL
    0x73EE0000 - 0x73EE4000 C:\WINDOWS\system32\KsUser.dll
    0x6D000000 - 0x6D105000 C:\Program Files\Java\j2re1.4.1_02\bin\awt.dll
    0x73000000 - 0x73023000 C:\WINDOWS\system32\WINSPOOL.DRV
    0x76390000 - 0x763AA000 C:\WINDOWS\system32\IMM32.dll
    0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
    0x6D510000 - 0x6D58C000 C:\WINDOWS\system32\DBGHELP.dll
    0x76BF0000 - 0x76BFB000 C:\WINDOWS\system32\PSAPI.DLL
    Local Time = Wed May 28 09:46:23 2003
    Elapsed Time = 19
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode)
    # An error report file has been saved as hs_err_pid180.log.
    # Please refer to the file for further information.

    Try posting your question under the Java Media Framework forum instead.
    You'll get much better responses if you ask the right people !
    regards,
    Owen

  • Can I change the path where my app reads native code?

    I have created an application that is using a native code file. It is (that is the DLL file) stored in the JDK folder in (jdk1.6.0_16\jre\bin) and my application reads from there.
    Is it possible to make the application to read the native file from somwhere else? From the JAR file?

    You can get the VM to look for native files (DLLs on Windows, SOs on Linux) by specifying
    java -Djava.library.path="path to your DLL/SO" etc. when you start your app.

  • Null pointer exception in native code

    Hi
    We are running JRockit 1.4.2 and we are having a lot of crashes recently. All of them have this error
    Error Message: Null pointer exception in native code
    Signal info : si_signo=11, si_code=1
    but the location of the crash differs. Our last one occured in java.util.Hashmap.get(). Another common element is that they appear to occur after deserialisation.
    Has anyone else had similar problems?
    Any help much appreciated.
    Thanks,
    Dave
    Thread Stack Trace:
    at java/util/HashMap.get(Optimized Method)@0x1c9b350
    at java/io/ObjectStreamClass.lookup(Optimized Method)@0x7e6fbde
    at java/io/ObjectStreamClass.initProxy(Unknown Source)@0x5feef04
    at java/io/ObjectInputStream.readProxyDesc(Optimized Method)@0xaa7b0ec
    at java/io/ObjectInputStream.readObject(Optimized Method)@0xa7bee63
    at java/rmi/MarshalledObject.get(Optimized Method)@0xbfe238c
    at org/jnp/interfaces/MarshalledValuePair.get(MarshalledValuePair.java:28)@0x263b571
    at org/jnp/interfaces/NamingContext.lookup(Optimized Method)@0xb08cfe1
    at org/jnp/interfaces/NamingContext.lookup(Optimized Method)@0xbf57275

    Thanks for the reply.
    The version is
    BEA WebLogic JRockit(TM) 1.4.2_04 JVM (build ari-29212-20040415-1332-linux-ia32, Native Threads, GC strategy: parallel)
    I have opened a support case but here is the contents of the dump file. Thanks again for any help.
    ===== BEGIN DUMP =============================================================
    JRockit dump produced after 2 days, 03:50:51 on Tue Jan 18 22:27:28 2005
    Additional information is available in:
    /home/ebask11/rel_15_59912-jb-3.2.3-2.19/bin/jrockit.26704.dump
    /home/ebask11/rel_15_59912-jb-3.2.3-2.19/bin/core
    Please send the file(s), information about your system
    setup and the program you were running to [email protected]. Thank you.
    Error Message: Null pointer exception in native code
    Signal info : si_signo=11, si_code=1
    Version : BEA WebLogic JRockit(TM) 1.4.2_04 JVM ari-29212-20040415-1332-linux-ia32
    Threads / GC : Native Threads, GC strategy: parallel
    : mmHeap->data = 0x20000000, mmHeap->top = 0x40000000
    : mmStartCompaction = 0x20000000, mmEndCompaction = 0x22800000
    Number CPUs : 2
    Tot Phys Mem : 4107608064
    OS version : Red Hat Linux release 7.3 (Valhalla)
    Linux version 2.4.22ow1np-ht (root@devbgb0211) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)) #8 SMP Mon Oct 13 19:54:55 GMT 2003
    State : JVM is running
    Command Line : -Djava.class.path=. -Djava.security.manager=java.rmi.RMISecurityManager -Xmx512m -Xms512m -Djmx.host=prdlog2 -Duser.timezone=GMT -Dprogram.name=run.sh -Djava.class.path=/home/ebask11/live_jboss/server/default/syslib:/home/ebask11/live_jboss/server/default/syslib/jce.zip:/home/ebask11/live_jboss/bin/run.jar:/usr/java/bea/jdk/1.4.2/lib/tools.jar -Dsun.java.command=org.jboss.Main -c default
    Environment : JAVA_HOME=/usr/java/bea/jdk/1.4.2, java.home=/usr/java/bea/jdk/1.4.2/jre, java.class.path=/home/ebask11/live_jboss/server/default/syslib:/home/ebask11/live_jboss/server/default/syslib/jce.zip:/home/ebask11/live_jboss/bin/run.jar:/usr/java/bea/jdk/1.4.2/lib/tools.jar, java.library.path=/usr/java/bea/jdk/1.4.2/jre/lib/i386/jrockit:/usr/java/bea/jdk/1.4.2/jre/lib/i386:/usr/java/bea/jdk/1.4.2/jre/../lib/i386
    C Heap : Good; no memory allocations have failed
    Registers:
    EAX = 33115950 EBX = 25252a50
    ECX = 00000002 EDX = 200da968
    ESI = 21aba548 EDI = 21aba548
    ESP = 0ac20000 EIP = 00000000
    EBP = 21aba548 EFL = 00010206
    CS = 0023 DS = 002b ES = 002b
    SS = 002b FS = 0357 GS = 0357
    Stack:
    0ac20000 :01c9b350 200da968 200da970 200da930 200da920 07e6fbde
    0ac20018 :2233ff08 0adc6cb8 200da936 00000000 00000000 21aba548
    0ac20030 :00000000 25a3c710 24f42f30 200da920 05feef04 21aba548
    0ac20048 :00000000 200f35d8 0aa7b0ec 00000000 271a5318 00000000
    0ac20060 :00000010 00000000 24f19bc8 24f19590 271a5318 0adc6cb8
    0ac20078 :271a5368 245b2710 271a5318 00000001 00000000 200f35d8
    0ac20090 :24f42f30 00000000 21aba548 00000000 00000000 0adc6cb8
    0ac200a8 :0a7bee63 24f1a3b0 00000000 0aa8003e 24f19d78 245b2710
    0ac200c0 :24f1a3f0 0adc6cb8 0b0df368 00000001 24f19d10 ffffffff
    0ac200d8 :24f19cc8 24f19d10 0bfe238c 00000003 205e68f8 245b2710
    0ac200f0 :245b2710 245b26f8 245b1e70 00000000 0b08d69b 00000000
    0ac20108 :205e1590 245b1e70 24f14a70 24f14428 24f144e0 24f14740
    0ac20120 :0000000a 24f14428 0bf57275 00000003 0aa7712b 00000030
    0ac20138 :258174e0 0adc6cb8 00000000 24f13fe0 00000000 258339f8
    0ac20150 :87effc53 00000101 0378e84b 258174e0 0378e525 24f13fe0
    0ac20168 :2585f4e8 2585f4e8 0378e21d 2a280920 24f13fe0 00000001
    0ac20180 :24f128a8 00000000 00000000 2585f4e8 24ed15c8 0378db6f
    0ac20198 :24ed1598 24ed16a0 05ed9299 24ed1730 20085640 24ed15c8
    0ac201b0 :24eb9bc0 00000000 24ed1730 24e9c5a0 24ed15c8 00000000
    0ac201c8 :24eb9b80 391182e8 24e9c5b0 00000000 391182e8 08006231
    0ac201e0 :00000000 24e9c5a0 24e9c5b0 08005bea 00000000 24e9c5a0
    0ac201f8 :24e9c5b0 31a26218 24ec68e8 00000027 0adc6cb8 0000001d
    0ac20210 :00000000 24e9c5a0 24ec6848 27986b80 24e9c5a0 24e9c5b0
    0ac20228 :27968208 24e9c5a0 24e9c5a0 31a263b0 0800fe11 24e9c5b0
    0ac20240 :368dd1e0 24e9c5b0 24e9c5a0 00c448bc 04ab64f4 24e9c5b0
    0ac20258 :0470ae51 24e9c5b0 24ec62e8 ffffffff 24e9c5b0 368dd1e0
    0ac20270 :ffffffff 00000002 3196a2f8 24e9c5a0 24eb9440 0bd5d31a
    0ac20288 :24e9c5b0 24eb9440 0bfa0e4a 24e9c5b0 24e9c5a0 24e9c5b0
    0ac202a0 :03fb5c09 24e9c5b0 24ec6238 00000000 00000000 00000000
    0ac202b8 :00000000 22921d98 24ec6368 25a3c710 03fbdb83 24e9c5b0
    0ac202d0 :03fbdb67 24e9c5b0 0c9ff12c 0adc6cb8 27a28c98 042e5528
    0ac202e8 :00000000 24ec6368 24ec6368 0c0b7c86 24e9c5b0 03fbda44
    0ac20300 :24e9c5a0 24e9c5b0 24e9c5a0 24eb9440 24e9c5a0 24eb9440
    0ac20318 :04ab631e 24e9c5b0 24e9c5b0 368eb0c8 254cd0b0 24e9c5a0
    0ac20330 :24e9c5a0 24eb9440 0bfa0f23 24e9c5b0 24eb9440 24e9c5b0
    0ac20348 :0adc6d44 24e9c5b0 368eb0c8 368eb0c8 368eb0c8 368eb0c8
    0ac20360 :368eb0c8 22921d98 24eb9610 25a3c710 03fbdb83 24e9c5b0
    0ac20378 :03fbdb67 24e9c5b0 0c9ff12c 0adc6cb8 254c4c70 00000000
    0ac20390 :00000000 24eb9610 24eb9610 0c0b7c86 24e9c5b0 03fbda44
    0ac203a8 :24e9c5a0 24e9c5b0 24e9c5a0 24eb9440 00000000 00000001
    0ac203c0 :03fbcc0d 24e9c5b0 07fbaf2f 00000000 24eb9440 3196a3f8
    0ac203d8 :3196a070 24e9c5a0 00000000 24e9c5b0 368dd1e0 24e9c5b0
    0ac203f0 :24e44550 24798b78 00000101 87effc52 00000000 3196a268
    0ac20408 :07fbc349 24e44550 24eb9430 24eb9430 24e44550 02787424
    0ac20420 :24e44550 3196a070 24798b78 0bf9dde1 24e44550 03fbc71d
    0ac20438 :24e44550 24e44550 24e9c698 2f5c12c0 2f5c1cd8 00000004
    0ac20450 :2f5c14a8 07fbc349 24e44550 24e9cc48 00000000 2f5c1d38
    0ac20468 :03fbc428 24e44550 24798b78 24e9cc48 24e44550 00000004
    0ac20480 :2f5c14a8 07fbc371 24e44550 24e9cc48 00000004 09bc5570
    0ac20498 :03fb98ad 24e44550 200a4008 3419b0e0 00000000 24e9c698
    0ac204b0 :24798b78 24e44550 24798b78 24e44550 24e9cc48 319fd4e0
    0ac204c8 :00000004 2f5c14a8 07fbc371 24e44550 24e9cc48 24798b78
    0ac204e0 :24798b78 03fb8a7a 24e44550 3419f128 24e9cc48 24e44550
    0ac204f8 :00000004 2f5c14a8 07fbc371 24e44550 24e9cc48 31a34d88
    0ac20510 :00000101 03fb8934 24e44550 24798b78 87effc52 24e9cc48
    0ac20528 :00000004 2f5c14a8 07fbc371 24e44550 24e9cc48 24e9cc48
    0ac20540 :24e44550 02787424 24e44550 2f5c12c0 24e44550 0bf9dde1
    0ac20558 :24e44550 03fb8875 24e44550 24798b78 00000000 2f5c12c0
    0ac20570 :0bf23542 24e44550 0adc6cb8 22961f38 24798b78 24e9c5c8
    0ac20588 :25a3c710 25a3c710 22921d98 24e44550 00000004 229629e0
    0ac205a0 :07fbc349 24e44550 24e9c688 24798b78 24e44550 0bf2376a
    0ac205b8 :24e44550 00000000 229496f0 00000004 229629e0 07fbc371
    0ac205d0 :24e44550 24e9c688 24e44550 0280d39c 0278d370 24e44550
    0ac205e8 :00000040 24798b78 27f4b688 00000030 229490a0 00000004
    0ac20600 :229629e0 07fbc371 24e44550 24e9c688 3196a070 00000000
    0ac20618 :0bfa040d 24e44550 00000000 00000000 0ad52e9c 22965b90
    0ac20630 :24798b78 00000008 00000000 200c7480 00000000 000e3274
    0ac20648 :00000000 00000000 24798b78 24e44550 24e9c688 00000004
    0ac20660 :229629e0 07fbc371 24e44550 24e9c688 00000004 24e9c688
    0ac20678 :0bf9c372 24e44550 0adc6cb8 25a3c710 00000019 228a5da0
    0ac20690 :00000101 87effc52 01c9b3aa 7025a84b 229127d8 22911f18
    0ac206a8 :229127d8 0bf9e5eb 0adc6cb8 22965b90 24798b78 246934c8
    0ac206c0 :22962a40 24e44550 00000000 00000004 229629e0 07fbc371
    0ac206d8 :24e44550 24e9c688 24e9c688 24e44550 02787424 24e44550
    0ac206f0 :22961f38 0233875c 0bf9dde1 24e44550 02787686 24e44550
    0ac20708 :24798b78 24e44550 22917728 00000000 22912938 07fbc349
    0ac20720 :24e44550 24e9c590 24e9c590 24e44550 02787424 24e44550
    0ac20738 :247963d8 24798b78 0bf9dde1 24e44550 0275384d 24e44550
    0ac20750 :24791f18 24e44550 24e44550 2298ae60 24791348 24791f18
    0ac20768 :0000000a 247963d8 0bf987e2 24791f18 24798b60 0adc6cb8
    0ac20780 :24791348 247912c8 00000055 0adc6cb8 24791b38 24796468
    0ac20798 :247919e0 24791f18 24791348 22981450 24e11ad0 2298d1e0
    0ac207b0 :247912c8 247912c8 0adc6cb8 0bf993f2 24e11ad0 247912c8
    0ac207c8 :24e11b10 0000000d 07cbea65 00000000 0ad52e9c 25a3c710
    0ac207e0 :24e11ad0 247912c8 247912b0 22981450 41ed8d4e 00000002
    0ac207f8 :22981d60 25a3c710 25a3c6e8 22981450 02751c10 24e11ad0
    Code:
    Loaded modules:
    (* denotes the module causing the exception)
    0x08048000-0x0804cd66 /usr/java/bea/jdk/1.4.2/bin/java
    0x00127000-0x0013343a /lib/i686/libpthread.so.0
    0x0013c000-0x0015ca02 /lib/i686/libm.so.6
    0x0015e000-0x0015fbac /lib/libdl.so.2
    0x42000000-0x4212b962 /lib/i686/libc.so.6
    0x00161000-0x003293cf /usr/java/bea/jdk/1.4.2/jre/lib/i386/jrockit/libjvm.so
    0x003c7000-0x003cff0d /lib/libnss_files.so.2
    0x00c29000-0x00c29ffa /usr/lib/gconv/ISO8859-1.so
    0x00c2b000-0x00c3afa5 /usr/java/bea/jdk/1.4.2/jre/lib/i386/libverify.so
    0x01211000-0x012309cf /usr/java/bea/jdk/1.4.2/jre/lib/i386/libjava.so
    0x01233000-0x0124485a /lib/libnsl.so.1
    0x01505000-0x0150e012 /lib/libnss_nisplus.so.2
    0x01625000-0x01627c71 /lib/libnss_dns.so.2
    0x01b0e000-0x01b1b990 /lib/libresolv.so.2
    0x00ddc000-0x00ddc6e9 /usr/java/bea/jdk/1.4.2/jre/lib/i386/librmi.so
    0x0196e000-0x019715c1 /usr/java/bea/jdk/1.4.2/jre/lib/i386/libioser12.so
    Java Thread ID = 0x00003500, lastJavaFrame = (nil), Name = TP-Processor32
    Thread Stack Trace:
    at java/util/HashMap.get(Optimized Method)@0x1c9b350
    at java/io/ObjectStreamClass.lookup(Optimized Method)@0x7e6fbde
    at java/io/ObjectStreamClass.initProxy(Unknown Source)@0x5feef04
    at java/io/ObjectInputStream.readProxyDesc(Optimized Method)@0xaa7b0ec
    at java/io/ObjectInputStream.readObject(Optimized Method)@0xa7bee63
    at java/rmi/MarshalledObject.get(Optimized Method)@0xbfe238c
    at org/jnp/interfaces/MarshalledValuePair.get(MarshalledValuePair.java:28)@0x263b571
    at org/jnp/interfaces/NamingContext.lookup(Optimized Method)@0xb08cfe1
    at org/jnp/interfaces/NamingContext.lookup(Optimized Method)@0xbf57275
    at javax/naming/InitialContext.lookup(Optimized Method)@0xaa7712b
    at com/lastminute/ebasket/basket/JNDIHostedEJBObjectsFactory.lookupBasketHome(JNDIHostedEJBObjectsFactory.java:352)@0x378e84b
    at com/lastminute/ebasket/basket/JNDIHostedEJBObjectsFactory.findBasket(JNDIHostedEJBObjectsFactory.java:310)@0x378e21d
    at com/lastminute/ebasket/basket/JNDIHostedEJBObjectsFactory.findBasket(JNDIHostedEJBObjectsFactory.java:250)@0x378db6f
    at com/lastminute/ebasketx/ui/servlet/AddToBasketAction.perform(AddToBasketAction.java:101)@0x5ed9299
    at org/apache/struts/action/Action.execute(Optimized Method)@0x8006231
    at org/apache/struts/action/RequestProcessor.processActionPerform(RequestProcessor.java:484)@0x5ed8fe1
    at org/apache/struts/action/RequestProcessor.process(Optimized Method)@0x8004b71
    at org/apache/struts/action/ActionServlet.process(Optimized Method)@0x800fe11
    at org/apache/struts/action/ActionServlet.doGet(ActionServlet.java:507)@0x4ab64f4
    at javax/servlet/http/HttpServlet.service(HttpServlet.java:740)@0x470ae51
    at javax/servlet/http/HttpServlet.service(Optimized Method)@0xbd5d31a
    at org/apache/catalina/core/ApplicationFilterChain.internalDoFilter(Optimized Method)@0xbfa0e4a
    at org/apache/catalina/core/ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)@0x3fbdb83
    at org/apache/catalina/core/ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)@0x3fbdb67
    at jrockit/vm/AccessController.do_privileged_exc(Optimized Method)@0xc9ff12c
    at jrockit/vm/AccessController.doPrivileged(Optimized Method)@0xc0b7c86
    at org/apache/catalina/core/ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)@0x3fbda44
    at com/lastminute/ebasketx/ui/helper/SessionFilter.doFilter(SessionFilter.java:56)@0x4ab631e
    at org/apache/catalina/core/ApplicationFilterChain.internalDoFilter(Optimized Method)@0xbfa0f23
    at org/apache/catalina/core/ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)@0x3fbdb83
    at org/apache/catalina/core/ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)@0x3fbdb67
    at jrockit/vm/AccessController.do_privileged_exc(Optimized Method)@0xc9ff12c
    at jrockit/vm/AccessController.doPrivileged(Optimized Method)@0xc0b7c86
    at org/apache/catalina/core/ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)@0x3fbda44
    at org/apache/catalina/core/StandardWrapperValve.invoke(StandardWrapperValve.java:256)@0x3fbcc0d
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc349
    at org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:480)@0x2787424
    at org/apache/catalina/core/ContainerBase.invoke(Optimized Method)@0xbf9dde1
    at org/apache/catalina/core/StandardContextValve.invoke(StandardContextValve.java:191)@0x3fbc71d
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc349
    at org/jboss/web/tomcat/security/JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)@0x3fbc428
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
    at org/apache/catalina/authenticator/AuthenticatorBase.invoke(AuthenticatorBase.java:494)@0x3fb98ad
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
    at org/apache/catalina/valves/CertificatesValve.invoke(CertificatesValve.java:246)@0x3fb8a7a
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
    at org/jboss/web/tomcat/tc4/statistics/ContainerStatsValve.invoke(ContainerStatsValve.java:76)@0x3fb8934
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
    at org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:480)@0x2787424
    at org/apache/catalina/core/ContainerBase.invoke(Optimized Method)@0xbf9dde1
    at org/apache/catalina/core/StandardContext.invoke(StandardContext.java:2417)@0x3fb8875
    at org/apache/catalina/core/StandardHostValve.invoke(Optimized Method)@0xbf23542
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc349
    at org/apache/catalina/valves/ErrorDispatcherValve.invoke(Optimized Method)@0xbf2376a
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
    at org/apache/catalina/valves/ErrorReportValve.invoke(ErrorReportValve.java:172)@0x278d370
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
    at org/jboss/web/tomcat/security/SecurityAssociationValve.invoke(Optimized Method)@0xbfa040d
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
    at org/apache/catalina/valves/AccessLogValve.invoke(Optimized Method)@0xbf9c372
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
    at org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:480)@0x2787424
    at org/apache/catalina/core/ContainerBase.invoke(Optimized Method)@0xbf9dde1
    at org/apache/catalina/core/StandardEngineValve.invoke(StandardEngineValve.java:174)@0x2787686
    at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc349
    at org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:480)@0x2787424
    at org/apache/catalina/core/ContainerBase.invoke(Optimized Method)@0xbf9dde1
    at org/apache/coyote/tomcat4/CoyoteAdapter.service(CoyoteAdapter.java:197)@0x275384d
    at org/apache/jk/server/JkCoyoteHandler.invoke(Optimized Method)@0xbf987e2
    at org/apache/jk/common/HandlerRequest.invoke(Optimized Method)@0xbf993f2
    at org/apache/jk/common/ChannelSocket.invoke(ChannelSocket.java:673)@0x2751c10
    at org/apache/jk/common/ChannelSocket.processConnection(Optimized Method)@0x7fb5e35
    at org/apache/jk/common/SocketConnection.runIt(Optimized Method)@0xbf99f01
    at org/apache/tomcat/util/threads/ThreadPool$ControlRunnable.run(ThreadPool.java:677)@0x224f434
    at java/lang/Thread.run(Optimized Method)@0x7e7473a
    at java/lang/Thread.startThreadFromVM(Optimized Method)@0x1c9c0da
    --- End of stack trace
    Additional information is available in:
    /home/ebask11/rel_15_59912-jb-3.2.3-2.19/bin/jrockit.26704.dump
    /home/ebask11/rel_15_59912-jb-3.2.3-2.19/bin/core
    Please send the file(s), information about your system
    setup and the program you were running to [email protected]. Thank you.

  • Error in native code

    My application terminates with the following error message.
    Can anyone tell how to locate the Java method(s) and reason for the error?
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x807a0a7
    Function name=(N/A)
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.awt.motif.X11Graphics.disposeImpl(Native Method)
         at sun.awt.motif.X11Graphics.dispose(X11Graphics.java:246)
         at sun.awt.motif.X11Graphics.finalize(X11Graphics.java:255)
         at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
         at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:81)
         at java.lang.ref.Finalizer.access$100(Finalizer.java:12)
         at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:158)
    Dynamic libraries:
    08048000-0804c000 r-xp 00000000 03:06 1667910 /home/cygnet/CygNetClient/jre/bin/i386/native_threads/java
    0804c000-0804d000 rw-p 00003000 03:06 1667910 /home/cygnet/CygNetClient/jre/bin/i386/native_threads/java
    40000000-40016000 r-xp 00000000 03:01 488642 /lib/ld-2.2.4.so
    40016000-40017000 rw-p 00015000 03:01 488642 /lib/ld-2.2.4.so
    40017000-40028000 r-xp 00000000 03:06 2093064 /home/cygnet/CygNetClient/jre/lib/i386/libverify.so
    40028000-4002a000 rw-p 00010000 03:06 2093064 /home/cygnet/CygNetClient/jre/lib/i386/libverify.so
    4002b000-40038000 r-xp 00000000 03:01 586374 /lib/i686/libpthread-0.9.so
    40038000-40040000 rw-p 0000c000 03:01 586374 /lib/i686/libpthread-0.9.so
    40040000-40049000 r-xp 00000000 03:06 2207525 /home/cygnet/CygNetClient/jre/lib/i386/native_threads/libhpi.so
    40049000-4004a000 rw-p 00008000 03:06 2207525 /home/cygnet/CygNetClient/jre/lib/i386/native_threads/libhpi.so
    4004a000-4023a000 r-xp 00000000 03:06 2485510 /home/cygnet/CygNetClient/jre/lib/i386/client/libjvm.so
    4023a000-4033a000 rw-p 001ef000 03:06 2485510 /home/cygnet/CygNetClient/jre/lib/i386/client/libjvm.so
    40351000-40354000 r-xp 00000000 03:01 488655 /lib/libdl-2.2.4.so
    40354000-40355000 rw-p 00002000 03:01 488655 /lib/libdl-2.2.4.so
    40355000-40487000 r-xp 00000000 03:01 586370 /lib/i686/libc-2.2.4.so
    40487000-4048c000 rw-p 00131000 03:01 586370 /lib/i686/libc-2.2.4.so
    40490000-404a3000 r-xp 00000000 03:01 488660 /lib/libnsl-2.2.4.so
    404a3000-404a4000 rw-p 00012000 03:01 488660 /lib/libnsl-2.2.4.so
    404a7000-404c9000 r-xp 00000000 03:01 586372 /lib/i686/libm-2.2.4.so
    404c9000-404ca000 rw-p 00021000 03:01 586372 /lib/i686/libm-2.2.4.so
    404ca000-404fe000 r-xp 00000000 03:02 65416 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    404fe000-4050a000 rw-p 00033000 03:02 65416 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    4050c000-4052d000 r-xp 00000000 03:06 2093065 /home/cygnet/CygNetClient/jre/lib/i386/libjava.so
    4052d000-4052f000 rw-p 00020000 03:06 2093065 /home/cygnet/CygNetClient/jre/lib/i386/libjava.so
    40530000-40544000 r-xp 00000000 03:06 2093066 /home/cygnet/CygNetClient/jre/lib/i386/libzip.so
    40544000-40547000 rw-p 00013000 03:06 2093066 /home/cygnet/CygNetClient/jre/lib/i386/libzip.so
    40547000-4127b000 r--s 00000000 03:06 1815090 /home/cygnet/CygNetClient/jre/lib/rt.jar
    412a8000-4159f000 r--s 00000000 03:06 1815091 /home/cygnet/CygNetClient/jre/lib/i18n.jar
    4159f000-415b5000 r--s 00000000 03:06 1815078 /home/cygnet/CygNetClient/jre/lib/sunrsasign.jar
    4365d000-4365e000 r--p 00000000 03:02 288016 /usr/lib/locale/en_US/LC_IDENTIFICATION
    4365e000-4365f000 r--p 00000000 03:02 544110 /usr/lib/locale/en_US/LC_MEASUREMENT
    4365f000-43660000 r--p 00000000 03:02 48242 /usr/lib/locale/en_US/LC_TELEPHONE
    49cbf000-49cea000 r--p 00000000 03:02 592103 /usr/lib/locale/en_US/LC_CTYPE
    49cea000-49ceb000 r--p 00000000 03:02 48244 /usr/lib/locale/en_US/LC_ADDRESS
    49ceb000-49cec000 r--p 00000000 03:02 48243 /usr/lib/locale/en_US/LC_NAME
    49cec000-49ced000 r--p 00000000 03:02 112041 /usr/lib/locale/en_US/LC_PAPER
    49ced000-49cee000 r--p 00000000 03:02 384072 /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
    49cee000-49cef000 r--p 00000000 03:02 544109 /usr/lib/locale/en_US/LC_MONETARY
    49cef000-49cf5000 r--p 00000000 03:02 464164 /usr/lib/locale/en_US/LC_COLLATE
    49cf5000-49cf6000 r--p 00000000 03:02 288017 /usr/lib/locale/en_US/LC_TIME
    49cf6000-49cf7000 r--p 00000000 03:02 592099 /usr/lib/locale/en_US/LC_NUMERIC
    49cf7000-49cf9000 r-xp 00000000 03:02 386307 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
    49cf9000-49cfa000 rw-p 00001000 03:02 386307 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
    49cfa000-49d01000 r-xp 00000000 03:02 98309 /usr/X11R6/lib/libXcursor.so.1.0
    49d01000-49d02000 rw-p 00007000 03:02 98309 /usr/X11R6/lib/libXcursor.so.1.0
    49d02000-49d08000 r-xp 00000000 03:02 98319 /usr/X11R6/lib/libXrender.so.1.2
    49d08000-49d09000 rw-p 00006000 03:02 98319 /usr/X11R6/lib/libXrender.so.1.2
    49d0a000-49d14000 r-xp 00000000 03:01 488676 /lib/libnss_files-2.2.4.so
    49d14000-49d15000 rw-p 00009000 03:01 488676 /lib/libnss_files-2.2.4.so
    4a581000-4a82d000 r--s 00000000 03:06 2256578 /home/corview/ricEMS/corView/corView.jar
    4a82d000-4abfb000 r-xp 00000000 03:06 2093073 /home/cygnet/CygNetClient/jre/lib/i386/libawt.so
    4abfb000-4ac0b000 rw-p 003cd000 03:06 2093073 /home/cygnet/CygNetClient/jre/lib/i386/libawt.so
    4ac20000-4ac51000 r-xp 00000000 03:06 2093072 /home/cygnet/CygNetClient/jre/lib/i386/libmlib_image.so
    4ac51000-4ac53000 rw-p 00030000 03:06 2093072 /home/cygnet/CygNetClient/jre/lib/i386/libmlib_image.so
    4ac53000-4ac59000 r-xp 00000000 03:02 96316 /usr/X11R6/lib/libXp.so.6.2
    4ac59000-4ac5a000 rw-p 00006000 03:02 96316 /usr/X11R6/lib/libXp.so.6.2
    4ac5a000-4ac9e000 r-xp 00000000 03:02 96322 /usr/X11R6/lib/libXt.so.6.0
    4ac9e000-4aca1000 rw-p 00044000 03:02 96322 /usr/X11R6/lib/libXt.so.6.0
    4aca2000-4acae000 r-xp 00000000 03:02 96304 /usr/X11R6/lib/libXext.so.6.4
    4acae000-4acaf000 rw-p 0000b000 03:02 96304 /usr/X11R6/lib/libXext.so.6.4
    4acaf000-4acb3000 r-xp 00000000 03:02 96324 /usr/X11R6/lib/libXtst.so.6.1
    4acb3000-4acb4000 rw-p 00003000 03:02 96324 /usr/X11R6/lib/libXtst.so.6.1
    4acb4000-4ad68000 r-xp 00000000 03:02 96296 /usr/X11R6/lib/libX11.so.6.2
    4ad68000-4ad6b000 rw-p 000b4000 03:02 96296 /usr/X11R6/lib/libX11.so.6.2
    4ad6b000-4ad72000 r-xp 00000000 03:02 96294 /usr/X11R6/lib/libSM.so.6.0
    4ad72000-4ad73000 rw-p 00007000 03:02 96294 /usr/X11R6/lib/libSM.so.6.0
    4ad73000-4ad86000 r-xp 00000000 03:02 96290 /usr/X11R6/lib/libICE.so.6.3
    4ad86000-4ad87000 rw-p 00012000 03:02 96290 /usr/X11R6/lib/libICE.so.6.3
    4ad89000-4ae13000 r-xp 00000000 03:06 2093074 /home/cygnet/CygNetClient/jre/lib/i386/libfontmanager.so
    4ae13000-4ae23000 rw-p 00089000 03:06 2093074 /home/cygnet/CygNetClient/jre/lib/i386/libfontmanager.so
    4b4a7000-4b4ac000 r--s 00000000 03:02 560239 /usr/lib/gconv/gconv-modules.cache
    4b4ac000-4b4ae000 r-xp 00000000 03:02 560187 /usr/lib/gconv/ISO8859-1.so
    4b4ae000-4b4af000 rw-p 00001000 03:02 560187 /usr/lib/gconv/ISO8859-1.so
    4b4af000-4b4c8000 r-xp 00000000 03:02 386310 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
    4b4c8000-4b4ca000 rw-p 00019000 03:02 386310 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
    4b4cb000-4b4d4000 r-xp 00000000 03:06 2093069 /home/cygnet/CygNetClient/jre/lib/i386/libnet.so
    4b4d4000-4b4d5000 rw-p 00008000 03:06 2093069 /home/cygnet/CygNetClient/jre/lib/i386/libnet.so
    4baa7000-4bad6000 r-xp 00000000 03:06 2093075 /home/cygnet/CygNetClient/jre/lib/i386/libjpeg.so
    4bad6000-4bad7000 rw-p 0002e000 03:06 2093075 /home/cygnet/CygNetClient/jre/lib/i386/libjpeg.so
    Local Time = Wed Nov 10 12:18:45 2004
    Elapsed Time = 11801
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.3.1_03-b03 interpreted mode)
    #

    Try adding some debug statements in your code and read the log... that should help you locate the method.
    ;)

  • Reading Applet variable to javascript but getting some [native code] error?

    Hello All,
    I am trying to get the value of an applet variable into a javascript variable.
    The variable in applet is: Public String list;
    I am accepting it in javascript as: var val = document.content.list; where content is the applet name or ID
    When I do: alert(val); , I get an alert box with "Hi" on it. Which is as expected.
    However when I try to do: alert(val.length); , i get an alert box with "function length { [native code] }" in it.
    I have seen such a thing for the first time in my life, I am quite new to the world of coding.
    Can anyone tell me how can I solve this problem, because further I need to pass this javascript variable val to a server side script using Xmlhttp method.
    Presently when I am passing the variable, it doesn't get saved on the server which I intend to do after passing the variable.
    Any Suggestions??

    mailsforabhinav wrote:
    However when I try to do: alert(val.length); , i get an alert box with "function length { [native code] }" in it.That's because the returned String is still a Java string so you have to use val.length() to get the length!
    If really want to convert the Java string to Javascript String then do
    var val = document.content.list + "";
    alert(val.length);Bye.

Maybe you are looking for

  • HT1657 I rented a movie from iTunes but it is not showing up in the Movies section. What do I do?

    I just rented and downloaded a movie from iTunes and now it will not show up in my iTunes library. What do I do? It DOES show up in iTunes on my iPhone. It DOES NOT show up on my desktop. Any thoughts? Ideas? I rented it for a flight I get on in 3 ho

  • Double click on OOPS grid

    Hi,     I have 3 grids , like the following code. SET HANDLER gr_event_handler->handle_double_click FOR o_grid.  "GT_SUM_COPA. SET HANDLER gr_event_handler->handle_double_click FOR o_grid2. SET HANDLER gr_event_handler->handle_double_click FOR o_grid

  • Error 11503: What does this mean?

    I purchased an Itunes music card and when i tried to download the songs it gives me an error 11503. Could not purchase unknown. unknown error occured. There was an error in the music store, please try again later. Well i have tried again later and it

  • Review approved time sheets in MSS

    Hello to everybody We are working on a ESS/MSS implementation (ECC6.00 with EhP4), including CATS regular scenarios. In MSS the "Approve Time" scenario displays all Time sheets submitted by the employees. After the approval, the manager is no more ab

  • Elements 13  organizer problem !

    I have 11 elements and the organizer of the program to shut down every time! Now, I bought the upgrade to version 13, and it will not again be able to update organizer small photos. Instead of the images is just an hourglass icon and the actual photo