[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1632) jboss.messaging.controlchanneludpaddress and jboss.messaging.datachanneludpaddress do not correctly override the default values in the persistence file when running the testsuite.

Pavel Slavicek (JIRA) jira-events at lists.jboss.org
Mon Nov 9 05:14:05 EST 2009


    [ https://jira.jboss.org/jira/browse/JBMESSAGING-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12493736#action_12493736 ] 

Pavel Slavicek commented on JBMESSAGING-1632:
---------------------------------------------

Hi Howard,

configuration values are not passed. Problem is in the used configuration values in the XX-persistence-service.xml files and in the JBM implementation.

For example Xx-persistence-service.xml files contain following configuration values:
mcast_addr="${jboss.messaging.datachanneludpaddress,jboss.partition.udpGroup:228.6.6.6}"

But class which is used for reading configuration values (org.jboss.messaging.util.XMLUtil.readerToElement and doReplace, see comments for doReplace method) does not support used format in mcast_addr configuration values. DoReplace method is implemented as:
... s = s.replace("${" + propertyName + ":" + defaultValue + "}"...
This implementation will not replace configuration value correctly.

Workaround for it:
use simple ,,templates" (without jboss.partition.udpGroup) in xx-persistence-service.xml files mcast_addr="${jboss.messaging.datachanneludpaddress:228.6.6.6}"

Fix:
1) use simple ,,templates" with one propery in xx-persistence-service.xml files mcast_addr="${jboss.messaging.datachanneludpaddress:228.6.6.6}"

or

2) New implementation of the methods org.jboss.messaging.util.XMLUtil.readerToElement and doReplace methods.

JBM 1.4.6.GA contains same implementation and same configuration values for EAP4.


> jboss.messaging.controlchanneludpaddress and jboss.messaging.datachanneludpaddress do not correctly override the default values in the persistence file when running the testsuite.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBMESSAGING-1632
>                 URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1632
>             Project: JBoss Messaging
>          Issue Type: Bug
>    Affects Versions: 1.4.0.SP3.CP08
>            Reporter: Phillip Thurmond
>            Assignee: Howard Gao
>             Fix For: 1.4.0.SP3.CP10
>
>
> I am running an example test from the JBM testsuite using the following command:
> ant -Dtest.bind.address=3ffe:ffff:0100:f101::1 -Djboss.messaging.datachanneludpport=45567 -Djboss.messaging.controlchanneludpport=45568 -Djboss.messaging.datachanneludpaddress=ff0e::1:2:3 -Djboss.messaging.controlchanneludpaddress=ff0e::1:2:3 -Dtest-mask=*FailoverNodeTest clustering-tests
> The ipv6 address 'ff0e::1:2:3' should be overriding the default values of '228.6.6.6' and '228.7.7.7' in the mysql-persistence-service.xml  file.  Instead, jgroups tries to use the default values as can be seen in this log snippet:
> 13:27:08,412 WARN  @RMI TCP Connection(2)-127.0.1.1 [UDP] could not bind to /228.7.7.7 (IPv4 address); make sure your mcast_addr is of the same type as the IP stack (IPv4 or IPv6).
> Will ignore mcast_addr, but this may lead to cross talking (see http://www.jboss.com/wiki/Edit.jsp?page=CrossTalking for details).
> Exception was: java.net.BindException: Cannot assign requested address
> This causes the several tests to fail.  If I edit the mysql-persistence-service.xml and replace the default multicast addresses with 'ff0e::1:2:3',  jgroups uses the correct addresses, and the test passes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list