[jboss-jira] [JBoss JIRA] Commented: (JBAS-8710) HASingleton PreferredMasterElectionPolicy failing with IPv6 addresses

Richard Achmatowicz (JIRA) jira-events at lists.jboss.org
Fri Dec 3 12:12:47 EST 2010


    [ https://jira.jboss.org/browse/JBAS-8710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567555#comment-12567555 ] 

Richard Achmatowicz commented on JBAS-8710:
-------------------------------------------

For the record, here is what is seen in the server logs:

12:09:08,381 INFO  [org.jboss.deployment.MainDeployer] deploy, url=file:/tmp/JBoss-AS-6.0.x-ipv6/testsuite/output/lib/ha-singleton-election.sar
12:09:08,640 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Configured: name=PreferredMasterElectionPolicy_1 state=Instantiated: java.lang.RuntimeException: Error configuring property: preferredMaster for PreferredMasterElectionPolicy_1
	at org.jboss.kernel.plugins.dependency.ConfigureAction.dispatchSetProperty(ConfigureAction.java:112) [jboss-kernel.jar:2.2.0.Alpha10]
	at org.jboss.kernel.plugins.dependency.ConfigureAction.setAttributes(ConfigureAction.java:85) [jboss-kernel.jar:2.2.0.Alpha10]
	at org.jboss.kernel.plugins.dependency.ConfigureAction.installActionInternal(ConfigureAction.java:44) [jboss-kernel.jar:2.2.0.Alpha10]
	at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.Alpha10]
	at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.Alpha10]
	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.Alpha10]
[snip]
Caused by: java.lang.IllegalArgumentException: Cannot extract host/address from 3ffe:ffff:0100:f101::1:1099
	at org.jboss.ha.singleton.PreferredMasterElectionPolicy.setPreferredMaster(PreferredMasterElectionPolicy.java:71) [:6.0.0-SNAPSHOT]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
	at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]



> HASingleton PreferredMasterElectionPolicy failing with IPv6 addresses
> ---------------------------------------------------------------------
>
>                 Key: JBAS-8710
>                 URL: https://jira.jboss.org/browse/JBAS-8710
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Clustering, Test Suite
>    Affects Versions: 6.0.0.CR1
>            Reporter: Richard Achmatowicz
>            Assignee: Richard Achmatowicz
>             Fix For: 6.0.0.Final
>
>
> The bean org.jboss.ha.singleton.PreferredMasterElectionPolicy has an attribute preferredMaster which identified a process in a cluster which should be the master node in a clustered partition.
> The preferred master attriubute is specified in the form host:port.
> This format works fine for IPv4 addresses, but breaks down for IPv6 addresses unless the host part is surrounded with square brackets, according to rfc2732.
> There are two places which above class may break:
> (i) in setting the preferred master attribute
> (ii) in comparing ClusterNode instances using PreferredMasterElectionPolicy.find() to check if a given preferred master is in the current cluster.
>  
>  
>  

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list