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

Paul Ferraro (JIRA) jira-events at lists.jboss.org
Mon May 24 13:33:54 EDT 2010


     [ https://jira.jboss.org/browse/MODCLUSTER-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Ferraro resolved MODCLUSTER-156.
-------------------------------------

      Assignee: Paul Ferraro  (was: Jean-Frederic Clere)
    Resolution: Done


To specify an ipv6 address with a port, you will need to use the bracket notation, e.g. [::1]:80
Without the brackets, then we try to parse the whole thing as an ipv6 address.

> Parsing of IPv6 loopback address fails
> --------------------------------------
>
>                 Key: MODCLUSTER-156
>                 URL: https://jira.jboss.org/browse/MODCLUSTER-156
>             Project: mod_cluster
>          Issue Type: Bug
>    Affects Versions: 1.1.0.CR1
>            Reporter: Bela Ban
>            Assignee: Paul Ferraro
>             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/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the mod_cluster-issues mailing list