[ https://issues.apache.org/jira/browse/ZOOKEEPER-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925923#action_12925923 ]
Gunnar Wagenknecht commented on ZOOKEEPER-667: ---------------------------------------------- I'm wondering if there is something else to do for proper connecting on IPv6 systems. I'm on Windows 7 with Java 6 and I do have the following exception in my logs. When connecting I specified {{localhost:2181}}. {noformat} 21:20:04.157 [Worker-0-SendThread()] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181 21:20:04.188 [Worker-0-SendThread(localhost:2181)] WARN org.apache.zookeeper.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.SocketException: Address family not supported by protocol family: connect at sun.nio.ch.Net.connect(Native Method) ~[na:1.6.0_21] at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507) ~[na:1.6.0_21] at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1009) ~[na:na] at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1036) ~[na:na] {noformat} > java client doesn't allow ipv6 numeric connect string > ----------------------------------------------------- > > Key: ZOOKEEPER-667 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-667 > Project: Zookeeper > Issue Type: Bug > Components: java client > Affects Versions: 3.2.2 > Reporter: Patrick Hunt > Assignee: Patrick Hunt > Priority: Critical > Fix For: 3.3.0 > > > The java client doesn't handle ipv6 numeric addresses as they are colon (:) > delmited. After splitting the host/port on : we look for the port as the > second entry in the array rather than the last entry in the array. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.