[jboss-user] [Clustering/JBoss] - cluster invocation failed under heavy load and rejoin one no

targit do-not-reply at jboss.com
Thu Nov 6 07:17:35 EST 2008


hi,

following szenario produces under heavy load exceptions: 

Using JDK6, JBoss AS 4.2.3GA

Start 2 instances with:

./run.sh -c all -b10.3.60.60 -DBind.address=10.3.60.60

and

./run.sh -c all -b10.3.60.57 -Dbind.address=10.3.60.57

after starting. Cluster will be formed !

Then start stress client with following code:

	try {
		
		  Properties p = new Properties();   
		  p.put(Context.INITIAL_CONTEXT_FACTORY,   
			    "org.jnp.interfaces.NamingContextFactory");   
		  p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
		  p.put(Context.PROVIDER_URL, "10.3.60.57:1100,10.3.60.60:1100");
		  
		  InitialContext ctx = new InitialContext(p);
		  while (true) {
				try {
					HelloWorldEJBRemote ejb = (HelloWorldEJBRemote) ctx.lookup("HelloWorldEJB");
					System.out.println(ejb.helloWorld("hello"));
				} catch (Exception ex) {
					ex.printStackTrace();
				}

		  }
		
		} catch (Exception ex) {
			ex.printStackTrace();
		}


then all will be ok. Shutdown one server. Test client is running and produce no exceptions. I start the stopped server to rejoin the cluster. but test-client produce following exceptions:

java.lang.RuntimeException: cluster invocation failed, last exception was: 
	at org.jboss.aspects.remoting.ClusterChooserInterceptor.invoke(ClusterChooserInterceptor.java:166)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.ejb3.remoting.ClusteredIsLocalInterceptor.invoke(ClusteredIsLocalInterceptor.java:55)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.ejb3.stateless.StatelessClusteredProxy.invoke(StatelessClusteredProxy.java:112)
	at $Proxy1.helloWorld(Unknown Source)
	at Main.main(Main.java:26)
Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://10.3.60.60:3873/]
	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:579)
	at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
	at org.jboss.remoting.Client.invoke(Client.java:1634)
	at org.jboss.remoting.Client.invoke(Client.java:548)
	at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.aspects.remoting.ClusterChooserInterceptor.invoke(ClusterChooserInterceptor.java:77)
	... 10 more
Caused by: java.net.BindException: Address already in use: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:518)
	at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:192)
	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:827)
	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:569)
	at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
	at org.jboss.remoting.Client.invoke(Client.java:1634)
	at org.jboss.remoting.Client.invoke(Client.java:548)
	at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.aspects.remoting.ClusterChooserInterceptor.invoke(ClusterChooserInterceptor.java:77)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.ejb3.remoting.ClusteredIsLocalInterceptor.invoke(ClusteredIsLocalInterceptor.java:55)
	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
	at org.jboss.ejb3.stateless.StatelessClusteredProxy.invoke(StatelessClusteredProxy.java:112)
	at $Proxy1.helloWorld(Unknown Source)
	at Main.main(Main.java:26)
	at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
	... 12 more


whats wrong ? or its a design error ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187322#4187322

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187322



More information about the jboss-user mailing list