Hi Prabhat,
 
I run the clustering tests on XP all the time.  Basically the only thing I've had to do is uncomment the lines in local.properties:
 
node0=${env.MYTESTIP_1}
node1=${env.MYTESTIP_2}
 
It never worked for me if I didn't do that; i.e. do what cruisecontrol does and rely on localhost and machine name.  I haven't tried localhost/machine name for at least 9 months, but the JGroups version in the AS is unchanged during that period, so no reason to expect it to work now.
 
I've never had any need to disable media sense or alter the standard configs to run the tests.

Brian Stansberry
Lead, AS Clustering
JBoss, a division of Red Hat



From: jboss-development-bounces@lists.jboss.org [mailto:jboss-development-bounces@lists.jboss.org] On Behalf Of Prabhat Jha
Sent: Tuesday, September 26, 2006 3:19 PM
To: jboss-development@lists.jboss.org
Cc: QA
Subject: [jboss-dev] jbas 4.0.5 clustering test on windows

Hi,

 

I am working on Branch_4_0 testuite and running it on windows. It’s dev28 box in qa lab. I get failures on clustering tests and I think it’s because some config is not done correctly. The tests I have looked run on cluster-UDP-0 and cluster-UDP-1 server configurations. The server logs for these servers look very similar to that from linux. I see following errors in testsuite log:

 

org.jboss.test.cluster.partition.test.PartitionRestartUnitTestCase-Default-UDP:

 

"Service unavailable.; nested exception is:

            org.jboss.ha.framework.interfaces.GenericClusteringException: Test failover from server interceptor" type="org.jboss.invocation.ServiceUnavailableException">org.jboss.invocation.ServiceUnavailableException: Service unavailable.; nested exception is:

            org.jboss.ha.framework.interfaces.GenericClusteringException: Test failover from server interceptor

            at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxyHA.invoke(JRMPInvokerProxyHA.java:303)

            at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)

            at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)

            at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

            at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)

            at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:121)

            at org.jboss.ha.framework.test.ExplicitFailoverClientInterceptor.invoke(ExplicitFailoverClientInterceptor.java:94)

            at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)

            at $Proxy2.getNodeState(Unknown Source)

            at org.jboss.test.cluster.partition.test.PartitionRestartUnitTestCase.testStatefulBeanFailover(PartitionRestartUnitTestCase.java:88)

            at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)

            at junit.extensions.TestSetup$1.protect(TestSetup.java:19)

            at junit.extensions.TestSetup.run(TestSetup.java:23)

Caused by: org.jboss.ha.framework.interfaces.GenericClusteringException: Test failover from server interceptor

            at org.jboss.ha.framework.test.ExplicitFailoverServerInterceptor.checkFailoverNeed(ExplicitFailoverServerInterceptor.java:117)

            at org.jboss.ha.framework.test.ExplicitFailoverServerInterceptor.invoke(ExplicitFailoverServerInterceptor.java:88)

            at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)

            at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)

            at org.jboss.ejb.Container.invoke(Container.java:954)

            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

            at org.jboss.invocation.jrmp.server.JRMPInvokerHA.invoke(JRMPInvokerHA.java:177)

            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)

            at sun.rmi.transport.Transport$1.run(Transport.java:148)

            at java.security.AccessController.doPrivileged(Native Method)

            at sun.rmi.transport.Transport.serviceCall(Transport.java:144)

            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)

            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)

            at java.lang.Thread.run(Thread.java:534)

            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)

            at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)

            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)

            at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)

            at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxyHA.invoke(JRMPInvokerProxyHA.java:187)

 

Rest of the failures are mainly AssertionFailedError. Is there something need to be configured on Windows for clustering tests to pass? I have run JGroups demo application successfully on this machine.

 

Regards,

Prabhat