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

Similar Messages

  • 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!

  • 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

  • Failure (42458): Error accepting connection -5993 (Resource temporarily unavailable)

    what will cause this error message for iplanet 4.0 web server?

    Hi,
    "failure (42458): Error accepting connection -5993 (Resource temporarily unavailable)"
    The above error is Common message with SSL turned on with pre 3.6 Sp3 releases.
    These were Spurious messages (defect 343349 in the release notes for 3.6).
    I think it's fixed in 4.x version.
    Thanks,
    Daks.

  • Socket Accept failure

    Hi,
    I am running 4.5.1 SP13. I have a startup class which registers itself as an RMI observer with a remote server. It initially connects, and receives the first message.
    Not long after receiving the first message, the following is output numerous times before the server shuts itself down:
    Fri Dec 08 14:53:39 CST 2000:<E> <ListenThread> Listen failed. Failure count: 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 and reopen server socket
    This appears to be a fairly generic error message and I don't have much to go by. Any ideas?
    -Nathan Yeager

    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

  • SIGPIPE and socket accept() calls

    Hi!
    I am developing a client/server application that utilises TCP stream sockets for communication between multiple clients and a single server. The main server thread creates a socket, binds it, listens and waits to accept incoming socket connections. When a connection is established it farms of a thread to handle the client's request. The server is being developed on SunOS 5.8 (sparc).
    My problem is that the server receives a SIGPIPE during a blocking call to accept() shortly after a one (and only one) client initiates a connection.
    I can't find any suporting documentation as to why SIGPIPE would be raised during an accept() call.
    I mean, accept() accepts the socket and returns a file descriptor to the socket. If the client teared down the connection (which the client ISN'T doing) after connecting then I would expect the server to have a valid socket descriptor and EPIPE or SIGPIPEs to occur whenever the server calls socket operations like send() or recv().
    Any ideas why the SIGPIPE might be happening in accept()?

    Get a new iPhone. it's very difficult to get all the water out of the phone and corrosion will occur inside. Your phone will likely not be reliable even if it recovers.

  • Socket Accept.

    Hi,
    Due to certain reasons I'm still using jdk118 ... on RedHat 7.2 with kernel 2.4.7-10
    The problem is, I've a code which looks like:
    while(threadRunning)
    try
    NewSocket = s.accept();
    catch(IOException e)
    Debug.print("ERROR 1");
    catch(Exception e)
    Debug.print("ERROR 2");
    When accept is encountered for the first time, it runs as expected. But next time onwards it start printing "ERROR 1", it seems it is not blocking.
    On RedHat 7.0/6.2 it is working fine but it gives this behavior on 7.2.
    Otherwise the program is working fine, but I wonder why this message keeps popping up.
    Anyhelp in this direction is appreciated.
    Thanks
    MS

    how strong are these "reasons" to use jdk1.1.8? Instead of printing out "ERROR 1", print something out more usefull. Trying e.getMessage() or print out a stack trace.

  • Failure upon boot - cannot recognize root drive

    Hello,
    I am new to Arch Linux. I 3want to build and boot 3.* kernel from Linus' git repository. It seems to build OK, but I cannot boot it successfuly. I stops at processing uevents and drops me to shell. I build it with makepkg -ci method . I suspect that something with my initramdisk is not OK, I tried to build one on my own, but it failed the same.
    My PKGBUILD is:
    pkgname=kernel30-3.0.0
    basekernel=3.0.0
    pkgver=3.0.0
    pkgrel=1
    pkgdesc="The Linux Kernel and modules"
    arch=('i686' 'x86_64')
    license=('GPL')
    url="http://www.kernel.org"
    depends=('module-init-tools' 'mkinitcpio')
    provides=(kernel30)
    install=kernel30.install
    build() {
      LOCAL_VERSION="$(grep "CONFIG_LOCALVERSION=" $startdir/.config | sed 's/.*"\(.*\)"/\1/')"
      cd ..
      # Modify the make line below to make -j[# of processors + 1] if you
      # have a multi-core system. This will enable you to compile the kernel faster.
      make -j 9 || return 1
      mkdir -p $startdir/pkg/{lib/modules,boot}
      make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
      # There's no separation of firmware depending on kernel version -
      # comment this line if you intend on using the built kernel exclusively,
      # otherwise there'll be file conflicts with the existing kernel
      rm -rf $startdir/pkg/lib/firmware
      install -Dm644 "System.map" "$startdir/pkg/boot/System.map30$LOCAL_VERSION"
      install -Dm644 "arch/x86/boot/bzImage" "$startdir/pkg/boot/vmlinuz30$LOCAL_VERSION"
      # Change the version strings in kernel30.install
      sed -i \
            -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=\"$basekernel\"/" \
            -e "s/LOCAL_VERSION=.*/LOCAL_VERSION=\"$LOCAL_VERSION\"/" \
            $startdir/kernel30.install
    My kernel30.install is:
    KERNEL_VERSION="3.0.0"
    LOCAL_VERSION="-ARCH"
    post_install () {
      echo ">>> Updating module dependencies..."
      /sbin/depmod -A -v ${KERNEL_VERSION}${LOCAL_VERSION}
      echo ">>> Creating initial ramdisk..."
      mkinitcpio -k "${KERNEL_VERSION}${LOCAL_VERSION}" -g "/boot/kernel30${LOCAL_VERSION}.img"
    post_upgrade() {
      echo ">>> Updating module dependencies..."
      /sbin/depmod -A -v ${KERNEL_VERSION}${LOCAL_VERSION}
      echo ">>> Creating initial ramdisk..."
      mkinitcpio -k "${KERNEL_VERSION}${LOCAL_VERSION}" -g "/boot/kernel30${LOCAL_VERSION}.img"
    I'd appreciate any help. I'd be happy to have environment that is capable as Debian, which I am used to.
    Thanks in advance,
    Piotr Hosowicz

    What version are you trying to build?
    the standard rc1 & rc2 are OK, but rc3 & rc4 have a permissions problem with scripts/depmod.sh
    You need to
    chmod +x scripts/depmod.sh
    for the kernel to be able to boot (unless you have zero modules)
    I have filed a bug here:
    https://bugzilla.kernel.org/show_bug.cgi?id=37562
    I have had no other problems with linux-3.0 on arch, gentoo or slackware.

  • Error message on upgrade failure upon Firefox startup even though upgrade was successful. How to remove message?

    I was upgrading Firefox through the About dropdown menu. I was unable to download successfully but later was able to download and install. Now everytime I open Firefox I get the message "The update could not be installed. Please make sure no other copies of Firefox are running and try again". I would like to get rid of this message as the update was successful. I am currently on v 9.0.1 with an XP os.

    I totally agree, there have been many Mac users that have been effected by this.

  • Failure upon calling web service on the ESB deployed from jDeveloper

    Hello!
    I've created a database adapter and a routing service that calls the database adapter. When registering the services on the ESB, I get error when I try to call it, as the Wsdl references a wsdl file on http://localhost:8888...... As I see it, it should refer to in on the same server as the esb (soa suite) runs? I think this might be a deployment issue in jDeveloper, maybe ant? Any clue on this?
    brgds, Paul Jørstad

    Thank you very much for you reply!
    But I do not get any further.. In the ESB control, the Soap Endpoint URI still says:
    SOAP Endpoint URI
    http://localhost:8888/event/xal/rs_product_p_get_complete_bom_flat
    And in my wsdl file:
    <soap:address location="http://oslsoad1/event/xal/rs_product_p_get_complete_bom_flat"/>
    I've tried to de-register, and register the service.

  • Ports used by the child socket which was created by server_socket.accept()?

    When a server socket creates a child socket, on which port it(child) listens? When I tried to print getLocalPort(), it is always printing the port on which server was listening. When a server socket accepts a connection it creates a new socket, I think. It should listen on a port other than the server socket's port. Otherwise if all the child sockets and server listen at the same port my Multithreaded server should not work. Fortunately it is working.
    Can anyone of you please clarify this child-port-number?
    Seems that Sun people limited the length of the subject field. Is it?
    Seenu.

    when you create the socket on your clients you can specify which port the client will communicate from, otherwise it will be randomly generated by the machine:
    // CONSTRUCTOR TO USE
    Socket(InetAddress address, int port, InetAddress localAddr, int localPort)
    just to clear something up, why do you care what the client ports are unless you are CLOSING the connection first, re-opening, and sending data back. once the client connects the stream is open. the only port you need to free up for your firewall is the port the sever socket is listening on so the clients dont get rejected when trying to connect.
    i hope this helps.
    ~ranemaker

  • Wsa S160 accept usage control and web reputation filter update failure??

    end-user noticed there are some failure on the accept usage control and web reputation filter update. it show update /download failure on nov 11 and nov 14. I do check the update log it shows Mon Nov 14 14:45:11 2011 Info: Starting scheduled update Mon Nov 14 14:45:12 2011 Info: Scheduled next update to occur at Mon Nov 14 14:50:12 2011 Mon Nov 14 14:45:59 2011 Info: wbrs released download lock Mon Nov 14 14:45:59 2011 Warning: wbrs update failed but the new update shows "not available" . is this a eror or it is normal ?
    IF there is not new release for update, if I click update, will it report a update failure? or what else I can check?
    i checked the update log.
    Mon Nov 14 14:45:11 2011 Info: Starting scheduled update
    Mon Nov 14 14:45:12 2011 Info: Scheduled next update to occur at Mon Nov 14 14:50:12 2011
    Mon Nov 14 14:45:59 2011 Info: wbrs released download lock
    Mon Nov 14 14:45:59 2011 Warning: wbrs update failed
    Mon Nov 14 14:50:12 2011 Info: Starting scheduled update
    Mon Nov 14 14:50:18 2011 Info: Acquired server manifest, starting update 4966
    Mon Nov 14 14:50:18 2011 Info: Server manifest specified an update for merlin
    Mon Nov 14 14:50:18 2011 Info: merlin was signalled to start a new update
    Mon Nov 14 14:50:18 2011 Info: merlin processing files from the server manifest
    Mon Nov 14 14:50:18 2011 Info: merlin started downloading files
    Mon Nov 14 14:50:18 2011 Info: merlin beginning download of remote file "http://updates.ironport.com/merlin/masters-2.1/1453"
    Mon Nov 14 14:50:18 2011 Info: merlin waiting on download lock
    Mon Nov 14 14:50:18 2011 Info: merlin acquired download lock
    Mon Nov 14 14:50:18 2011 Info: Scheduled next update to occur at Mon Nov 14 14:55:18 2011
    Mon Nov 14 14:50:27 2011 Info: merlin released download lock
    Mon Nov 14 14:50:27 2011 Info: merlin successfully downloaded file "http://updates.ironport.com/merlin/masters-2.1/1453"
    Mon Nov 14 14:50:27 2011 Info: merlin started applying files
    Mon Nov 14 14:50:27 2011 Info: merlin applying file "merlin/masters-2.1/1453"
    Mon Nov 14 14:50:27 2011 Info: merlin restarting merlin
    Mon Nov 14 14:50:27 2011 Info: merlin verifying applied files
    Mon Nov 14 14:50:27 2011 Info: merlin updating the client manifest
    Mon Nov 14 14:50:27 2011 Info: merlin update completed
    Mon Nov 14 14:50:27 2011 Info: merlin waiting for new updates
    Mon Nov 14 14:50:59 2011 Info: wbrs started downloading files
    Mon Nov 14 14:50:59 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321069006.inc"
    Mon Nov 14 14:50:59 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:50:59 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:50:59 2011 Info: wbrs released download lock
    Mon Nov 14 14:50:59 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321069006.inc"
    Mon Nov 14 14:50:59 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321069341.inc"
    Mon Nov 14 14:50:59 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:50:59 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:50:59 2011 Info: wbrs released download lock
    Mon Nov 14 14:50:59 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321069341.inc"
    Mon Nov 14 14:50:59 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321070032.inc"
    Mon Nov 14 14:50:59 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:50:59 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:50:59 2011 Info: wbrs released download lock
    Mon Nov 14 14:50:59 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321070032.inc"
    Mon Nov 14 14:50:59 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321070355.inc"
    Mon Nov 14 14:50:59 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:50:59 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321070355.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321071157.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321071157.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321071469.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321071469.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321071901.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321071901.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321072452.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321072452.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321072766.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321072766.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321073089.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321073089.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321073407.inc"
    Mon Nov 14 14:51:00 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:00 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321073407.inc"
    Mon Nov 14 14:51:01 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321074165.inc"
    Mon Nov 14 14:51:01 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321074165.inc"
    Mon Nov 14 14:51:01 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321075094.inc"
    Mon Nov 14 14:51:01 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321075094.inc"
    Mon Nov 14 14:51:01 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321075449.inc"
    Mon Nov 14 14:51:01 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs acquired download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs released download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs successfully downloaded file "http://updates.ironport.com/wbrs/ip/1321075449.inc"
    Mon Nov 14 14:51:01 2011 Info: wbrs beginning download of remote file "http://updates.ironport.com/wbrs/ip/1321075769.inc"
    Mon Nov 14 14:51:01 2011 Info: wbrs waiting on download lock
    Mon Nov 14 14:51:01 2011 Info: wbrs acquired download lock

    I think this happens occasionally, its not a big deal.
    Your box tried again, and eventually got update 5 min later.
    You may want to extend the time on this a bit to help performance... every 5 min does add some load.
    Support had me set mine at 8 hours...

  • Adding Accepted Socket to Selector

    OK,
    I have gleaned the java.nio.channels.Selector et al.
    I think I understand how to accept a socket. However, once I have; how do I add it to the Selector so that I can register for events on the new connected socket. Here is my source:
    Set<SelectionKey> fdset = null;
    Socket sock = null;
    ServerSocket lstn = null;
    selInst = Selector.open();
    do
    if( null==lstn )
    ServerSocketChannel rChan = selInst.provider().openServerSocketChannel();
    lstn = rChan.socket();
    lstn.bind( new InetSocketAddress(2007) );
    rChan.register( selInst, SelectionKey.OP_ACCEPT );
    if( 0>selInst.select() )
    continue;
    fdset = selInst.selectedKeys();
    for( SelectionKey key : fdset )
    if( key.isAcceptable() )
    ServerSocketChannel rCh0 = (ServerSocketChannel)key.channel();
    sock = rCh0.socket().accept();
    rCh0.register( selInst, SelectionKey.OP_READ )
    //xx wait a minute -- ServerSocketChannel::socket() returns a ServerSocket,
    //xx not a Socket class, don't I need a new SocketChannel? How do I
    //xx attach my accepted socket?
    } while( true );
    See the comments above. The jist is there is no way to open() a new SocketChannel using an existing Socket class [returned by accept()], as far as I can tell.
    Thanks,
    James
    Beverly, MA

    I posted it as an official bug. Here is the tiny app I wrote to reproduce the problem:
    * James A. Renton
    * Beverly, MA
    public class Main
        public Main()
        static void DoOtherWork( )
        {   //xx THIS function symbolizes other stuff
            //xx my thread could do as a result of using NIO
            //xx SUCH AS read and handle internal
            //xx process-specific message queue for
            //xx starting/stopping this thread
            //xx initiating work to be delegated
            //xx to the far end machine this thread communicates with.
            try{ Thread.sleep( 1000 );}catch( Throwable rEx ){/*NOOP*/};
        static ServerSocketChannel listen( Selector rSel, String zItfIP, int nPort )
            try
                ServerSocket sockLstn = null;
                ServerSocketChannel chanLstn = rSel.provider().openServerSocketChannel();
                chanLstn.configureBlocking(false);
                sockLstn = chanLstn.socket();
                sockLstn.bind( new InetSocketAddress(zItfIP,nPort) );
                chanLstn.register( rSel, SelectionKey.OP_ACCEPT );
                return chanLstn;
            catch( java.io.IOException rEx )
                System.out.printf( "accept SETUP FAILED, ERR=[%s]\n", rEx.toString() );
                return null;
        static SocketChannel connect( Selector rSel, String zTargetIP, int nPort )
            try
                SocketChannel chanOut = rSel.provider().openSocketChannel();
                chanOut.configureBlocking(false);
                if( chanOut.connect(new InetSocketAddress(zTargetIP,nPort)) )
                    chanOut.register( rSel, SelectionKey.OP_READ );
                else
                    chanOut.register( rSel, SelectionKey.OP_CONNECT );
                return chanOut;
            catch( java.io.IOException rEx )
                System.out.printf( "connect SETUP FAILED, ERR=[%s]\n", rEx.toString() );
                return null;
        static Selector GetSel( )
            try { return Selector.open(); }
            catch( java.io.IOException rEx )
                System.out.printf( "Selector.open() FAILED, ERR=[%s]\n", rEx.toString() );
                return null;
        static int DoSelect( Selector rSel, int millis )
            try { return rSel.select( millis ); }
            catch( java.io.IOException rEx )
                System.out.printf( "select() FAILED, ERR=[%s]\n", rEx.toString() );
                return -1;
        public static void main(String[] args)
            int nConnected = 0;
            java.util.Set<SelectionKey> fdset = null;
            System.out.printf( "java.version=[%s]\n", System.getProperty("java.version") );
            System.out.printf( "os.name=[%s]\n", System.getProperty("os.name") );
            System.out.printf( "os.version=[%s]\n", System.getProperty("os.version") );
            Selector selInst = GetSel();
            listen( selInst, "localhost", 2008 );
            connect( selInst, "localhost", 2008 );
            while( 0<=DoSelect(selInst,150) )
                fdset = selInst.selectedKeys();
                if( !fdset.isEmpty() )
                    for( SelectionKey key : fdset )
                        try
                            if( key.isAcceptable() )
                                ServerSocketChannel chanLstn = (ServerSocketChannel)key.channel();
                                SocketChannel chanAccept = chanLstn.accept();
                                if( null==chanAccept )
                                    System.out.println( "*** BUG0 : KEY FLAGGED ACCEPTING, NOTHING TO ACCEPT!" );
                                else
                                    InetSocketAddress addr[] = new InetSocketAddress[2];
                                    chanAccept.configureBlocking(false);
                                    chanAccept.register( selInst, SelectionKey.OP_READ );
                                    addr[0] = (InetSocketAddress)chanAccept.socket().getLocalSocketAddress();
                                    addr[1] = (InetSocketAddress)chanAccept.socket().getRemoteSocketAddress();
                                    System.out.printf( "ACCEPTED SOCK (%s)<-(%s) OK.\n",
                                                        addr[0].toString(), addr[1].toString() );
                            else if( key.isConnectable() )
                                SocketChannel rCh = (SocketChannel)key.channel();
                                Boolean bRC = rCh.finishConnect();
                                key.interestOps(SelectionKey.OP_READ);
                                if( 0!=nConnected++ )
                                    System.out.printf( "*** BUG1 : KEY FLAGGED CONNECTING, ALREADY CONNECTED, RC=[%s]\n",
                                                        bRC.toString() );
                                else
                                    InetSocketAddress addr[] = new InetSocketAddress[2];
                                    addr[0] = (InetSocketAddress)rCh.socket().getLocalSocketAddress();
                                    addr[1] = (InetSocketAddress)rCh.socket().getRemoteSocketAddress();
                                    System.out.printf( "CONNECT SOCK (%s)->(%s) OK, RC=[%s]\n",
                                                        addr[0].toString(), addr[1].toString(), bRC.toString() );
                        catch( java.io.IOException rEx )
                            System.out.printf( "UnHandled IOException, ERR=[%s]", rEx.toString() );
                            rEx.printStackTrace();
                DoOtherWork();
    }

  • Systemd socket launching service and failing

    I'm creating an AUR package for poppassd (POP3 Password Changing Service). The application runs in command line using stdin/stdout but is intended to be run using xinetd and pipe the socket as I/O. The code works fine when I run via command line
    $ sudo /usr/bin/poppassd
    200 poppassd
    QUIT
    500 Username required
    $
    When I start the socket
    systemctl start poppassd.socket
    the socket opens and when I try to use telnet to connect I get a disconnect right away and journalctl reports the service exited with a status of 1/FAILURE
    Any ideas why the following service and socket files are not working?
    poppassd.service
    [Unit]
    Description=POP3 Password Change Service
    [Service]
    ExecStart=/usr/bin/poppassd
    StandardInput=socket
    StandardOutput=inherit
    StandardError=journal
    poppassd.socket
    [Socket]
    ListenStream=0.0.0.0:106
    [Install]
    WantedBy=sockets.target

    Note: i've never used poppassd and have not tested what i am about to suggest.
    Since poppassd is written to be invoked by inetd with the nowait flag, it probably wants to be started with an accepted socket, not a listening socket. To do this in systemd, first add the following to the [Socket] section of poppassd.socket:
    Accept=true
    Then change the name of poppassd.service to [email protected]
    Some socket activated template services (ie. [email protected]) also prepend '-' to the ExecStart value to prevent a single failed instance from throwing the service into a failed state.

  • CIFS accelerator keepalive failure

    Software Release 4.4.5
    WAVE-294-K9
    Alert:
    cceAlarmHistModuleId= 1000  cceAlarmHistCategory= 3  cceAlarmHistInfo= Raise-Alarm: CIFS accelerator keepalive failure.   cceAlarmHistTimeStamp= 3539553200
    I got the following alert.
    Does anyone know where I can find the log files or the CIFs accelerator keepalive failure counter?
    I wanted to know the best way to clear the counter statistics and make sure that if this hits up again I can at least get a better
    idea of how frequent it is happening.
    I ran the following command and was curious if the "sessions timeout" is related to this keepalive failure?
    show statistics accelerator cifs detail
    CIFS:
    Global Statistics
    Time Accelerator was started: Wed Sep 25 08:51:51 2013
    Time Statistics were Last Reset/Cleared: Wed Sep 25 08:51:51 2013
    Total Handled Connections: 15293
    Total Optimized Connections: 166
    Total Connections Handed-off with Compression Policies Unchanged: 13638
    Total Dropped Connections: 0
    Current Active Connections: 0
    Current Pending Connections: 0
    Maximum Active Connections: 9
    Number of local reply generating requests: 166596
    Number of remote reply generating requests: 217438
    The Average time to generate a local reply (msec): 4
    Average time to receive remote reply (ms): 92
    Policy Engine Statistics
    Session timeouts: 13, Total timeouts: 121
    Last keepalive received 00.0 Secs ago
    Last registration occurred 19:03:18:36.6 Days:Hours:Mins:Secs ago
    Hits: 1218122, Update Released: 142074
    Active Connections: 18, Completed Connections: 821832
    Drops: 0, Pre-Resource Counter: 0
    Rejected Connection Counts Due To: (Total: 254198)
    Not Registered : 3, Keepalive Timeout : 65
    No License : 0, Load Level : 0
    Connection Limit : 0, Rate Limit : 0
    Minimum TFO : 254130, Resource Manager : 0
    Global Config : 0, TFO Limit : 0
    Server-Side : 0, DM Deny : 0
    No DM Accept : 0
    Auto-Discovery Statistics
    Total Connections queued for accept: 487511
    Connections queuing failures: 0
    Socket pairs queued for accept: 487511
    Socket pairs queuing failures: 0
    AO discovery successful: 741192
    AO discovery failure: 6

    Hi,
    The accelerator is failing to perform a wellness update within the allotted time. That is
    why we see keepalive failures. The implications are that some connections may not be
    getting optimized properly by the AO, and thus optimization performance may be reduced.
    I don't think there is any counter for number of keep alive failure messages you get but you can
    see if Keepalive Timeout counter is increasing.
    You can find this counter under "policy engine statistics".
    Keepalive Timeout : 65--->You can check if this value is increasing during the time you get this message.
    Regards,
    Kanwal

Maybe you are looking for