[mod_cluster-issues] [JBoss JIRA] Commented: (MODCLUSTER-156) Parsing of IPv6 loopback address fails

Bela Ban (JIRA) jira-events at lists.jboss.org
Wed May 12 15:54:27 EDT 2010


    [ https://jira.jboss.org/jira/browse/MODCLUSTER-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12530425#action_12530425 ] 

Bela Ban commented on MODCLUSTER-156:
-------------------------------------

Note that an IPv6 address can only have 1 double colon '::' per spec. Take a look at JGroups src, I've written utility methods to parse IPv6 addresses.

> Parsing of IPv6 loopback address fails
> --------------------------------------
>
>                 Key: MODCLUSTER-156
>                 URL: https://jira.jboss.org/jira/browse/MODCLUSTER-156
>             Project: mod_cluster
>          Issue Type: Bug
>    Affects Versions: 1.1.0.CR1
>            Reporter: Bela Ban
>            Assignee: Jean-Frederic Clere
>             Fix For: 1.1.0.CR3
>
>
> The IPv6 loopback addresss ::1 cannot be parsed. I suspect this also fails for regular IPv6 addresses.
> The stack trace is:
> 04:18:33,829 ERROR [STDERR] Exception in thread "pool-5-thread-1" java.lang.NumberFormatException: For input stri
> ng: ":1:8000"
> 04:18:33,829 ERROR [STDERR] 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> 04:18:33,830 ERROR [STDERR] 	at java.lang.Integer.parseInt(Integer.java:481)
> 04:18:33,830 ERROR [STDERR] 	at java.lang.Integer.parseInt(Integer.java:514)
> 04:18:33,830 ERROR [STDERR] 	at org.jboss.modcluster.Utils.parseSocketAddress(Utils.java:115)
> 04:18:33,830 ERROR [STDERR] 	at org.jboss.modcluster.Utils.parseSocketAddress(Utils.java:76)
> 04:18:33,830 ERROR [STDERR] 	at org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl$AdvertiseListenerWor
> ker.run(AdvertiseListenerImpl.java:505)
> 04:18:33,830 ERROR [STDERR] 	at java.lang.Thread.run(Thread.java:636)

-- 
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 mod_cluster-issues mailing list