[Remoting] - Connect or not CannotConnectException that is the question ?
by ecatum
Hi,
I m develloped an application which use jboss remoting and rmi.
For the server, I implement ServerInvocationHandler.
For the client, I use org.jboss.remoting.Client to communicate with the server.
I periodically make invocation from clients to the server and release the connection using disconnect().
Problem :
After a perdiod of time, the server no longer accepts client connections and clients catch this exception :
| 11:12:55,515 ERROR [STDERR] org.jboss.remoting.CannotConnectException: Error making invocation in RMI client invoker.
| 11:12:55,515 ERROR [STDERR] at org.jboss.remoting.transport.rmi.RMIClientInvoker.transport(RMIClientInvoker.java:241)
| 11:12:55,515 ERROR [STDERR] at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
| 11:12:55,515 ERROR [STDERR] at org.jboss.remoting.Client.invoke(Client.java:525)
| 11:12:55,516 ERROR [STDERR] at org.jboss.remoting.Client.invoke(Client.java:488)
| 11:12:55,516 ERROR [STDERR] at org.jboss.remoting.Client.invokeOneway(Client.java:574)
| 11:12:55,516 ERROR [STDERR] Caused by: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception java.net.SocketTimeoutException: Read timed out
| 11:12:55,516 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:203)
| 11:12:55,517 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
| 11:12:55,517 ERROR [STDERR] at org.jboss.remoting.transport.rmi.RMIServerInvoker_Stub.transport(Unknown Source)
| 11:12:55,517 ERROR [STDERR] at org.jboss.remoting.transport.rmi.RMIClientInvoker.transport(RMIClientInvoker.java:207)
| 11:12:55,517 ERROR [STDERR] ... 7 more
| 11:12:55,517 ERROR [STDERR] Caused by: java.net.SocketTimeoutException: Read timed out
| 11:12:55,517 ERROR [STDERR] at java.net.SocketInputStream.socketRead0(Native Method)
| 11:12:55,518 ERROR [STDERR] at java.net.SocketInputStream.read(SocketInputStream.java:129)
| 11:12:55,518 ERROR [STDERR] at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
| 11:12:55,518 ERROR [STDERR] at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
| 11:12:55,518 ERROR [STDERR] at java.io.DataInputStream.readByte(DataInputStream.java:241)
| 11:12:55,518 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:189)
| 11:12:55,518 ERROR [STDERR] ... 10 more
|
Can it be the Client connection which aren't correctly released ?
Have somebody indications where in jboss I can search the origin of the problem ?
Thanks a lot.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151414#4151414
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151414
18 years, 2 months
[JBoss Cache: Core Edition] - Re: Remoting On Existing POJO Channel
by kblanken
The trace.log starting from the call of startService() follows:
[5/16/08 16:01:21:840 CEST] 00000027 TreeCache I org.jboss.cache.TreeCache _createService No transaction manager lookup class has been defined. Transactions cannot be used
| [5/16/08 16:01:21:934 CEST] 00000027 TreeCache 1 org.jboss.cache.TreeCache createEvictionPolicy Not using an EvictionPolicy
| [5/16/08 16:01:22:325 CEST] 00000027 InterceptorCh 1 org.jboss.cache.factories.InterceptorChainFactory createPessimisticInterceptorChain interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.ReplicationInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| 5/16/08 16:01:24:606 CEST] 00000027 TreeCache 1 org.jboss.cache.TreeCache _createService cache mode is REPL_SYNC
| [5/16/08 16:01:24:637 CEST] 00000027 TreeCache I org.jboss.cache.TreeCache _createService channel is already running
| [5/16/08 16:01:24:668 CEST] 00000028 STABLE 3 org.jgroups.protocols.pbcast.STABLE startStableTask stable task started
| [5/16/08 16:01:24:778 CEST] 00000029 SystemOut O
| -------------------------------------------------------
| GMS: address is 80.253.209.188:2438
| -------------------------------------------------------
| [5/16/08 16:01:24:825 CEST] 0000002a PingSender 3 org.jgroups.protocols.PingSender run sending GET_MBRS_REQ
| [5/16/08 16:01:24:840 CEST] 0000002b FD_SOCK 3 org.jgroups.protocols.FD_SOCK$ServerSocketHandler run waiting for client connections on 0.0.0.0/0.0.0.0:2440
| [5/16/08 16:01:24:840 CEST] 0000002c PingWaiter 3 org.jgroups.protocols.PingWaiter findInitialMembers waiting for initial members: time_to_wait=2000, got 0 rsps
| [5/16/08 16:01:25:840 CEST] 0000002a PingSender 3 org.jgroups.protocols.PingSender run sending GET_MBRS_REQ
| [5/16/08 16:01:26:840 CEST] 0000002c PingWaiter 3 org.jgroups.protocols.PingWaiter findInitialMembers initial mbrs are []
| [5/16/08 16:01:26:856 CEST] 00000028 GMS 1 org.jgroups.protocols.pbcast.ClientGmsImpl join initial_mbrs are []
| [5/16/08 16:01:26:856 CEST] 00000028 GMS 1 org.jgroups.protocols.pbcast.ClientGmsImpl join no initial members discovered: creating group as first member
| [5/16/08 16:01:26:934 CEST] 00000028 GMS 1 org.jgroups.protocols.pbcast.GMS installView [local_addr=80.253.209.188:2438] view is [80.253.209.188:2438|0] [80.253.209.188:2438]
| [5/16/08 16:01:26:950 CEST] 00000028 FC 3 org.jgroups.protocols.FC handleViewChange new membership: [80.253.209.188:2438]
| [5/16/08 16:01:26:950 CEST] 00000028 FC 3 org.jgroups.protocols.FC handleViewChange creditors are []
| [5/16/08 16:01:26:965 CEST] 00000028 STABLE 3 org.jgroups.protocols.pbcast.STABLE resetDigest resetting digest from NAKACK: [80.253.209.188:2438#-1]
| [5/16/08 16:01:26:965 CEST] 0000002d FD_SOCK 1 org.jgroups.protocols.FD_SOCK down VIEW_CHANGE received: [80.253.209.188:2438]
| [5/16/08 16:01:26:981 CEST] 0000002d FD_SOCK 1 org.jgroups.protocols.FD_SOCK getCacheFromCoordinator first member; cache is empty
| [5/16/08 16:01:26:981 CEST] 0000002e FD_SOCK 3 org.jgroups.protocols.FD_SOCK up i-have-sock: 80.253.209.188:2438 --> 80.253.209.188:2440 (cache is {80.253.209.188:2438=80.253.209.188:2440})
| [5/16/08 16:01:26:996 CEST] 00000028 GMS 1 org.jgroups.protocols.pbcast.GMS setImpl 80.253.209.188:2438 changed role to org.jgroups.protocols.pbcast.CoordGmsImpl
| [5/16/08 16:01:26:996 CEST] 00000028 GMS 1 org.jgroups.protocols.pbcast.ClientGmsImpl becomeSingletonMember created group (first member). My view is [80.253.209.188:2438|0], impl is org.jgroups.protocols.pbcast.CoordGmsImpl
| [5/16/08 16:01:27:043 CEST] 00000027 TreeCache I org.jboss.cache.TreeCache startService TreeCache local address is 80.253.209.188:2438
| [5/16/08 16:01:27:090 CEST] 00000027 JChannel 3 org.jgroups.JChannel getState cannot get state from myself (80.253.209.188:2438): probably the first member
| [5/16/08 16:01:27:137 CEST] 00000027 TreeCache 1 org.jboss.cache.TreeCache getCoordinator getCoordinator(): waiting on viewAccepted()
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151411#4151411
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151411
18 years, 2 months