Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Socket error...

MagnusEAug 31 2009 — edited Sep 2 2009
Now and then I get the following socket error (after this error the cache node crash and cant be contacted again). Any sugestions what may be the problem?

This by the way on Windows XP with Sun JRE 6 and both the cache node and the client are run on the same machine.

Cache Node JVM arguments:
-server
-XX:+UseParallelGC
-XX:ParallelGCThreads=2
-XX:+UseAdaptiveSizePolicy
-XX:MaxDirectMemorySize=1024m
-Dtangosol.coherence.guard.timeout=99999999
-Dtangosol.coherence.management=all
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=9999
-Dtangosol.pof.config=my-pof-config.xml
-Dtangosol.pof.enabled=true
-Dtangosol.coherence.cacheconfig=master-coherence-cache-config.xml
-Dtangosol.coherence.wka=n27858
-Dtangosol.coherence.wka.port=55550
-Dtangosol.coherence.localport=55550
-Dtangosol.coherence.distributed.localstorage=true

Client JVM arguments:
-Xms64m
-Xmx512m
-Dtangosol.coherence.cacheconfig=master-coherence-cache-config.xml
-Dtangosol.pof.config=my-pof-config.xml
-Dtangosol.pof.enabled=true
-Dtangosol.coherence.wka=n27858
-Dtangosol.coherence.wka.port=55550
-Dtangosol.coherence.distributed.localstorage=false
-Dtangosol.coherence.management.remote=true
-server
-Xbatch

/Magnus
On the cache node:
2009-08-31 13:19:06.029/4519.904 Oracle Coherence GE 3.5/459 <D5> (thread=PacketPublisher, member=1): Attempt to refresh sockets: [UnicastUdpSocket{State=STATE_OPEN, address:port=138.106.151.116:55550}, TcpSocketAccepter{State=STATE_OPEN, ServerSocket=138.106.151.116:55550}] caused by UnicastUdpSocket{State=STATE_OPEN, address:port=138.106.151.116:55550}; exception java.net.BindException: Cannot assign requested address: Datagram send failed
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:612)
	at com.tangosol.coherence.component.net.socket.UdpSocket.send(UdpSocket.CDB:17)
	at com.tangosol.coherence.component.net.udpPacket.OutgoingUdpPacket.send(OutgoingUdpPacket.CDB:10)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketSpeaker$BundlingQueue.flush(PacketSpeaker.CDB:62)
	at com.tangosol.coherence.component.util.queue.ConcurrentQueue.flush(ConcurrentQueue.CDB:1)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.flushSend(PacketPublisher.CDB:1)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.onWait(PacketPublisher.CDB:1)
	at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:34)
	at java.lang.Thread.run(Thread.java:619)
2009-08-31 13:19:09.201/4523.076 Oracle Coherence GE 3.5/459 <D4> (thread=Cluster, member=1): TcpRing: Number of socket exceptions exceeded maximum; last was "java.net.SocketTimeoutException: connect timed out"; removing the member: 4
2009-08-31 13:19:09.201/4523.076 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=1): Member 4 left service Management with senior member 1
2009-08-31 13:19:09.201/4523.076 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=1): Member(Id=4, Timestamp=2009-08-31 13:19:09.201, Address=138.106.151.116:8088, MachineId=30580, Location=site:global.scd.scania.com,machine:N27858,process:440, Role=IntellijRtExecutionAppMain) left Cluster with senior member 1
2009-08-31 13:19:09.248/4523.123 Oracle Coherence GE 3.5/459 <D5> (thread=PacketPublisher, member=1): Attempt to refresh sockets: [UnicastUdpSocket{State=STATE_CLOSED, address:port=138.106.151.116:55550}, TcpSocketAccepter{State=STATE_CLOSED, address:port=138.106.151.116:55550}] caused by UnicastUdpSocket{State=STATE_CLOSED, address:port=138.106.151.116:55550}; exception java.net.BindException: Cannot assign requested address: Cannot bind
	at java.net.PlainDatagramSocketImpl.bind0(Native Method)
	at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
	at java.net.DatagramSocket.bind(DatagramSocket.java:368)
	at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
	at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
	at com.tangosol.coherence.component.net.socket.UdpSocket.instantiateDatagramSocket(UdpSocket.CDB:20)
	at com.tangosol.coherence.component.net.socket.UdpSocket.open(UdpSocket.CDB:8)
	at com.tangosol.coherence.component.net.Cluster$SocketManager$UnicastUdpSocket.open(Cluster.CDB:6)
	at com.tangosol.coherence.component.net.Cluster$SocketManager.refreshSockets(Cluster.CDB:73)
	at com.tangosol.coherence.component.net.Cluster$SocketManager$UnicastUdpSocket.onException(Cluster.CDB:7)
	at com.tangosol.coherence.component.net.socket.UdpSocket.onSendException(UdpSocket.CDB:1)
	at com.tangosol.coherence.component.net.socket.UdpSocket.send(UdpSocket.CDB:37)
	at com.tangosol.coherence.component.net.udpPacket.OutgoingUdpPacket.send(OutgoingUdpPacket.CDB:10)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketSpeaker$BundlingQueue.flush(PacketSpeaker.CDB:62)
	at com.tangosol.coherence.component.util.queue.ConcurrentQueue.flush(ConcurrentQueue.CDB:1)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.flushSend(PacketPublisher.CDB:1)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.onWait(PacketPublisher.CDB:1)
	at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:34)
	at java.lang.Thread.run(Thread.java:619)
2009-08-31 13:19:12.560/4526.435 Oracle Coherence GE 3.5/459 <Error> (thread=TcpRingListener, member=1): Stopping cluster due to unhandled exception: com.tangosol.net.messaging.ConnectionException: TcpSocketAccepter.accept: unable to reopen socket; State=STATE_CLOSED
	at com.tangosol.coherence.component.net.socket.TcpSocketAccepter.accept(TcpSocketAccepter.CDB:47)
	at com.tangosol.coherence.component.util.daemon.TcpRingListener.acceptConnection(TcpRingListener.CDB:10)
	at com.tangosol.coherence.component.util.daemon.TcpRingListener.onNotify(TcpRingListener.CDB:9)
	at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:37)
	at java.lang.Thread.run(Thread.java:619)
On the client:
2009-08-31 13:16:34.621/1.297 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
2009-08-31 13:16:34.824/1.500 Oracle Coherence GE 3.5/459 <Info> (thread=Cluster, member=n/a): This Member(Id=4, Timestamp=2009-08-31 13:16:34.652, Address=138.106.151.116:8088, MachineId=30580, Location=site:global.scd.scania.com,machine:N27858,process:440, Role=IntellijRtExecutionAppMain, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1) joined cluster with senior Member(Id=1, Timestamp=2009-08-31 12:03:47.562, Address=138.106.151.116:55550, MachineId=30580, Location=site:global.scd.scania.com,machine:N27858,process:5464, Role=IntellijRtExecutionAppMain, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1)
2009-08-31 13:16:34.840/1.516 Oracle Coherence GE 3.5/459 <Info> (thread=Cluster, member=n/a): Loading POF configuration from resource "file:/C:/Javaproj/ssserz_private_ws/OAS/Development/resources/oas-pof-config.xml"
2009-08-31 13:16:34.902/1.578 Oracle Coherence GE 3.5/459 <Info> (thread=Cluster, member=n/a): Loading POF configuration from resource "jar:file:/C:/Javaproj/ssserz_private_ws/OAS/Base/lib/coherence.jar!/coherence-pof-config.xml"
2009-08-31 13:16:35.183/1.859 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Management with senior member 1
2009-08-31 13:16:35.183/1.859 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=n/a): Member 1 joined Service DistributedCache with senior member 1
2009-08-31 13:16:35.183/1.859 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=n/a): Member 1 joined Service InvocationService with senior member 1
2009-08-31 13:16:35.199/1.875 Oracle Coherence GE 3.5/459 <D5> (thread=Invocation:Management, member=4): Service Management joined the cluster with senior service member 1
2009-08-31 13:16:35.449/2.125 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=4): TcpRing: connecting to member 1 using TcpSocket{State=STATE_OPEN, Socket=Socket[addr=/138.106.151.116,port=55550,localport=2913]}
2009-08-31 13:19:06.404/153.080 Oracle Coherence GE 3.5/459 <D5> (thread=PacketPublisher, member=4): Attempt to refresh sockets: [UnicastUdpSocket{State=STATE_OPEN, address:port=138.106.151.116:8088}, TcpSocketAccepter{State=STATE_OPEN, ServerSocket=138.106.151.116:8088}] caused by UnicastUdpSocket{State=STATE_OPEN, address:port=138.106.151.116:8088}; exception java.net.BindException: Cannot assign requested address: Datagram send failed
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:612)
	at com.tangosol.coherence.component.net.socket.UdpSocket.send(UdpSocket.CDB:17)
	at com.tangosol.coherence.component.net.udpPacket.OutgoingUdpPacket.send(OutgoingUdpPacket.CDB:10)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketSpeaker$BundlingQueue.flush(PacketSpeaker.CDB:62)
	at com.tangosol.coherence.component.util.queue.ConcurrentQueue.flush(ConcurrentQueue.CDB:1)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.flushSend(PacketPublisher.CDB:1)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.onWait(PacketPublisher.CDB:1)
	at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:34)
	at java.lang.Thread.run(Thread.java:619)
2009-08-31 13:19:06.592/153.268 Oracle Coherence GE 3.5/459 <D5> (thread=PacketPublisher, member=4): Attempt to refresh sockets: [UnicastUdpSocket{State=STATE_CLOSED, address:port=138.106.151.116:8088}, TcpSocketAccepter{State=STATE_CLOSED, address:port=138.106.151.116:8088}] caused by UnicastUdpSocket{State=STATE_CLOSED, address:port=138.106.151.116:8088}; exception java.net.BindException: Cannot assign requested address: Cannot bind
	at java.net.PlainDatagramSocketImpl.bind0(Native Method)
	at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
	at java.net.DatagramSocket.bind(DatagramSocket.java:368)
	at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
	at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
	at com.tangosol.coherence.component.net.socket.UdpSocket.instantiateDatagramSocket(UdpSocket.CDB:20)
	at com.tangosol.coherence.component.net.socket.UdpSocket.open(UdpSocket.CDB:8)
	at com.tangosol.coherence.component.net.Cluster$SocketManager$UnicastUdpSocket.open(Cluster.CDB:6)
	at com.tangosol.coherence.component.net.Cluster$SocketManager.refreshSockets(Cluster.CDB:73)
	at com.tangosol.coherence.component.net.Cluster$SocketManager$UnicastUdpSocket.onException(Cluster.CDB:7)
	at com.tangosol.coherence.component.net.socket.UdpSocket.onSendException(UdpSocket.CDB:1)
	at com.tangosol.coherence.component.net.socket.UdpSocket.send(UdpSocket.CDB:37)
	at com.tangosol.coherence.component.net.udpPacket.OutgoingUdpPacket.send(OutgoingUdpPacket.CDB:10)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketSpeaker$BundlingQueue.flush(PacketSpeaker.CDB:62)
	at com.tangosol.coherence.component.util.queue.ConcurrentQueue.flush(ConcurrentQueue.CDB:1)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.flushSend(PacketPublisher.CDB:1)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.onWait(PacketPublisher.CDB:1)
	at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:34)
	at java.lang.Thread.run(Thread.java:619)
2009-08-31 13:19:06.951/153.627 Oracle Coherence GE 3.5/459 <D4> (thread=Cluster, member=4): TcpRing: Number of socket exceptions exceeded maximum; last was "java.net.SocketTimeoutException: connect timed out"; removing the member: 1
2009-08-31 13:19:06.951/153.627 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=4): Member 1 left service Management with senior member 4
2009-08-31 13:19:06.951/153.627 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=4): Member 1 left service DistributedCache with senior member n/a
2009-08-31 13:19:06.951/153.627 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=4): Member 1 left service InvocationService with senior member n/a
2009-08-31 13:19:06.951/153.627 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=4): Member(Id=1, Timestamp=2009-08-31 13:19:06.951, Address=138.106.151.116:55550, MachineId=30580, Location=site:global.scd.scania.com,machine:N27858,process:5464, Role=IntellijRtExecutionAppMain) left Cluster with senior member 4
2009-08-31 13:19:06.951/153.627 Oracle Coherence GE 3.5/459 <D5> (thread=Invocation:Management, member=4): Service Management: sending ServiceConfigSync to all
2009-08-31 13:19:07.920/154.596 Oracle Coherence GE 3.5/459 <Error> (thread=PacketListener1, member=4): Stopping cluster due to unhandled exception: com.tangosol.net.messaging.ConnectionException: UdpSocket.receive: unable to reopen socket; State=STATE_CLOSED
	at com.tangosol.coherence.component.net.socket.UdpSocket.receive(UdpSocket.CDB:53)
	at com.tangosol.coherence.component.net.UdpPacket.receive(UdpPacket.CDB:4)
	at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketListener.onNotify(PacketListener.CDB:19)
	at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:37)
	at java.lang.Thread.run(Thread.java:619)
2009-08-31 13:19:07.920/154.596 Oracle Coherence GE 3.5/459 <D5> (thread=Cluster, member=4): Service Cluster left the cluster
2009-08-31 13:19:08.014/154.690 Oracle Coherence GE 3.5/459 <D5> (thread=Invocation:Management, member=4): Service Management left the cluster
This post has been answered by 567247 on Sep 1 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2009
Added on Aug 31 2009
2 comments
1,895 views