[jboss-jira] [JBoss JIRA] Commented: (JGRP-984) JGroups can not parse IPV6 literals in TCPPING protocol configuration
Richard Achmatowicz (JIRA)
jira-events at lists.jboss.org
Tue Nov 10 18:33:20 EST 2009
[ https://jira.jboss.org/jira/browse/JGRP-984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12494049#action_12494049 ]
Richard Achmatowicz commented on JGRP-984:
------------------------------------------
I now know how this issue arises.
In order to work around the fact that the AS does not yet process IPv6 URLs correctly, we start the AS by enclosing an IPv6 bind address in square brackets:
./run.sh -b [<IPv6 address>] -c all
Through direct substitution into the JGroups configuration, we get:
<TCPPING initial_hosts="[3ffe:ffff:100:f101::1][7800],[3ffe:ffff:100:f101::2][7800]" port_range="3"
timeout="3000"
down_thread="false" up_thread="false"
num_initial_members="3"/>
which does generate the exception above. But this not valid *JGroups* syntax for hostname + port combinations, which should be written as <hostname>[<port>].
The root cause of the problem is the incorrect processing of IPv6 URLs by the AS, which forces us to enclose the bind address in square brackets.
Thus, this is not really a JGroups issue, but a wider AS IPv6 issue.
> JGroups can not parse IPV6 literals in TCPPING protocol configuration
> ---------------------------------------------------------------------
>
> Key: JGRP-984
> URL: https://jira.jboss.org/jira/browse/JGRP-984
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 2.4.6
> Reporter: Brian Stansberry
> Assignee: Bela Ban
> Fix For: 2.4.7, 2.6.11, 2.8
>
>
> ON JBPAPP-2013 Dominik Pospisil reports the IPv6 address parsing fix in 2.4.6 doesn't handle TCPPING:
> Both
> <TCPPING initial_hosts="::1[7810],fec0::f101:21a:a0ff:fea0:d745[7810]" port_range="3" timeout="3000" down_thread="false" up_thread="false" num_initial_members="3"/>
> and
> <TCPPING initial_hosts="[::1][7810],[fec0::f101:21a:a0ff:fea0:d745][7810]" port_range="3" timeout="3000" down_thread="false" up_thread="false" num_initial_members="3"/>
> fails with:
> 16:57:56,443 ERROR [TCPPING] exeption is java.lang.NumberFormatException: For input string: "::1"
> 16:57:56,443 ERROR [TCPPING] exeption is java.lang.NumberFormatException: For input string: "fec0::f101:21a:a0ff:fea0:d745"
--
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