Running cluster-ha-singleton example on domain mode
howardl815 Jul 17, 2013 12:16 PMHi,
I'm running cluter-ha-singleton example on clutered machine in domain mode. It's on one machine with two ports offsetted. When the singleton service is running on the server 1 and I shut down the server 1, I get the below error message.
[INFO] --- exec-maven-plugin:1.2.1:exec (default-cli) @ jboss-as-cluster-ha-singleton-client ---
Lookup Bean name is: ejb:/jboss-as-cluster-ha-singleton-service/ServiceAccessBean!org.jboss.as.quickstarts.cluster.hasingleton.service.ejb.ServiceAccess
Exception in thread "main" java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:jboss-as-cluster-ha-singleton-service, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@45660d6
at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:727)
at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116)
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)
at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)
at $Proxy0.getNodeNameOfTimerService(Unknown Source)
at org.jboss.as.quickstarts.cluster.hasingleton.service.client.SingletonServiceClient.getServiceNodeName(SingletonServiceClient.java:54)
at org.jboss.as.quickstarts.cluster.hasingleton.service.client.SingletonServiceClient.main(SingletonServiceClient.java:67)
And when I start the server 1 again and run the client, the service was switched to server 2 fine. And if I kill the server 2 while the singleton service is running on server 2, I don't get the above exception. It switches to server 1 fine. This exception happens only when the singleton service is running on server 1 and the server 1 was killed. What am I doing wrong? Thank you very much for any help.