1 Reply Latest reply on Nov 12, 2008 9:45 PM by clebert.suconic

    JBMESSAGING 1.4 Test failures -- JGroup upgrade issue?

    gaohoward

      Hi guys,

      I'm running tests in jbm14 branch. The tests are ok when i set integration.base=EAP4. But when I set integration.base=AS5, some tests failed, mostly in clustering tests. I found the some stack trace (see below), and i'm thinking may be it's the JGroup problem (I see we use 2.4.4.GA-brew for EAP4 and 2.6.6.GA for AS5).

      Can anyone shed some light on it? Thanks.

      Stack:

      ###################################### Start IN-VM test: testClusteredBindUnbind
      [junit] @main 17:29:45,346 INFO [ServiceContainer] Starting arjuna tx mgr
      [junit] @main 17:29:45,346 INFO [InVMContext] Binding java:/TransactionManager obj Transaction: unknown rebind false
      [junit] @main 17:29:45,346 INFO [InVMContext] Binding UserTransaction obj org.jboss.tm.usertx.client.ServerVMClientUserTransaction@b9e45a rebind true
      [junit] @main 17:29:45,347 INFO [ServiceContainer] connection url:jdbc:mysql://localhost/messaging
      [junit] @main 17:29:45,347 INFO [ServiceContainer] driver:jdbc:mysql://localhost/messaging
      [junit] @main 17:29:45,347 INFO [ServiceContainer] username:sa
      [junit] @main 17:29:45,347 INFO [ServiceContainer] password:null
      [junit] @main 17:29:45,372 INFO [InVMContext] Binding DefaultDS obj org.jboss.resource.adapter.jdbc.WrapperDataSource@3251c7 rebind true
      [junit] @main 17:29:45,372 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourceBinding' to JNDI name 'java:/DefaultDS'
      [junit] @main 17:29:45,372 INFO [ServiceContainer] DELETING ALL DATA FROM DATABASE!
      [junit] @main 17:29:45,383 INFO [ServiceContainer] creating server for: bisocket://localhost:6296/?marshaller=org.jboss.jms.wireformat.JMSWireFormat&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat&dataType=jms&socket.check_connection=false&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&serverSocketClass=org.jboss.jms.server.remoting.ServerSocketWrapper&numberOfCallRetries=1&pingFrequency=214748364&pingWindowFactor=10&stopLeaseOnFailure=true&clientLeasePeriod=10000&validatorPingPeriod=10000&validatorPingTimeout=5000&timeout=0&connectionWait=10&JBM_clientMaxPoolSize=200
      [junit] @main 17:29:45,411 INFO [InVMContext] Binding messaging-securitydomain obj org.jboss.test.messaging.tools.container.MockJBossSecurityManager@fa7cd3 rebind false
      [junit] @main 17:29:45,412 INFO [ServiceContainer] Could find multiplexer config
      [junit] @main 17:29:45,415 INFO [ServiceContainer] Remoting type: .............. bisocket
      [junit] @main 17:29:45,415 INFO [ServiceContainer] Clustering mode: ............ NON-CLUSTERED
      [junit] @main 17:29:45,415 INFO [ServiceContainer] Persistence config file: .... server/default/deploy/mysql-persistence-service.xml
      [junit] @main 17:29:45,423 INFO [ClusteredPostOfficeTest] Creating clusteredPostOffice node 1
      [junit] @main 17:29:45,427 INFO [ServiceContainer] Persistence config file: .... server/default/deploy/mysql-persistence-service.xml
      [junit] @main 17:29:45,432 INFO [JChannel] JGroups version: 2.6.6.GA
      [junit] @main 17:29:45,434 INFO [JChannel] JGroups version: 2.6.6.GA
      [junit] @main 17:29:45,436 WARN [UDP] could not bind to /228.11.11.11 (IPv4 address); make sure your mcast_addr is of the same type as the IP stack (IPv4 or IPv6).
      [junit] Will ignore mcast_addr, but this may lead to cross talking (see http://www.jboss.com/wiki/Edit.jsp?page=CrossTalking for details).
      [junit] Exception was: java.net.BindException: Cannot assign requested address
      [junit]
      [junit] -------------------------------------------------------
      [junit] GMS: address is 127.0.0.1:54015
      [junit] -------------------------------------------------------
      [junit] @main 17:29:47,439 INFO [GroupMember] org.jboss.messaging.core.impl.postoffice.GroupMember$ControlMembershipListener@584ce6 got new view [127.0.0.1:54015|0] [127.0.0.1:54015], old view is null
      [junit] @main 17:29:47,439 INFO [GroupMember] I am (127.0.0.1:54015)
      [junit] @main 17:29:47,439 INFO [GroupMember] New Members : 1 ([127.0.0.1:54015])
      [junit] @main 17:29:47,439 INFO [GroupMember] All Members : 1 ([127.0.0.1:54015])
      [junit] @main 17:29:47,440 WARN [MPING] could not bind to /228.6.6.6 (IPv4 address); make sure your mcast_addr is of the same type as the IP stack (IPv4 or IPv6).
      [junit] Will ignore mcast_addr, but this may lead to cross talking (see http://www.jboss.com/wiki/Edit.jsp?page=CrossTalking for details).
      [junit] Exception was: java.net.BindException: Cannot assign requested address
      [junit]
      [junit] -------------------------------------------------------
      [junit] GMS: address is 127.0.0.1:7900
      [junit] -------------------------------------------------------
      [junit] @main 17:29:52,444 INFO [ClusteredPostOfficeTest] Creating clusteredPostOffice node 2
      [junit] @main 17:29:52,447 INFO [ServiceContainer] Persistence config file: .... server/default/deploy/mysql-persistence-service.xml
      [junit] @main 17:29:52,451 INFO [JChannel] JGroups version: 2.6.6.GA
      [junit] @main 17:29:52,453 INFO [JChannel] JGroups version: 2.6.6.GA
      [junit] @main 17:29:52,454 WARN [ClusteredPostOfficeTest] org.jgroups.ChannelException: failed to start protocol stack
      [junit] org.jgroups.ChannelException: failed to start protocol stack
      [junit] at org.jgroups.JChannel.startStack(JChannel.java:1555)
      [junit] at org.jgroups.JChannel.connect(JChannel.java:365)
      [junit] at org.jboss.messaging.core.impl.postoffice.GroupMember.start(GroupMember.java:139)
      [junit] at org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.start(MessagingPostOffice.java:357)
      [junit] at org.jboss.test.messaging.core.PostOfficeTestBase.createClusteredPostOffice(PostOfficeTestBase.java:98)
      [junit] at org.jboss.test.messaging.core.PostOfficeTestBase.createClusteredPostOffice(PostOfficeTestBase.java:162)
      [junit] at org.jboss.test.messaging.core.postoffice.ClusteredPostOfficeTest.testClusteredBindUnbind(ClusteredPostOfficeTest.java:217)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at junit.framework.TestCase.runTest(TestCase.java:164)
      [junit] at junit.framework.TestCase.runBare(TestCase.java:130)
      [junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
      [junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
      [junit] at junit.framework.TestResult.run(TestResult.java:109)
      [junit] at junit.framework.TestCase.run(TestCase.java:120)
      [junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)
      [junit] at junit.framework.TestSuite.run(TestSuite.java:225)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743)
      [junit] Caused by: java.lang.IllegalStateException: cluster 'MessagingPostOffice-CTRL' is already connected to singleton transport: [MessagingPostOffice-CTRL, dummy-1226482192453]
      [junit] at org.jgroups.stack.Configurator.startProtocolStack(Configurator.java:88)
      [junit] at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:410)
      [junit] at org.jgroups.JChannel.startStack(JChannel.java:1552)
      [junit] ... 21 more