This was with Java 6, Java has postponed the fix for NIO to Java 7.  But I could have easily read that wrong.

 

From: Emmanuel Lecharny [mailto:elecharny@apache.org]
Sent: Tuesday, February 01, 2011 3:59 PM
To: Apache Directory Developers List
Subject: Re: IPV6

 

Is this with Java 5 ?

On Tue, Feb 1, 2011 at 11:08 PM, Hammond, Steven <Steven.Hammond@polycom.com> wrote:

I may have spoken too soon.  I thought we had this resolved, but our QA person just came by and said IPV6 searches are not working if the DNS record for our ApacheDS server does not have an IPv4 record in addition to the IV6 record.

We tried to work around by putting in the ipv6 listner in LDAPserver code, but we run into this stack trace.  Again, this is on 1.5.3.

I set up the LdapServer on my dev box so that it would "try" to listen using an IPV6 address:

2011-01-25 13:14:36,508;3219;ERROR;ds.PlcmLdapServer;(main);(null_0) Failed to bind an LDAP service (/dead:0:0:0:20c:29ff:fef3:b3fc:389) to the service registry.
java.net.SocketException: Address family not supported by protocol family: bind
     at sun.nio.ch.Net.bind(Native Method)
     at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
     at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
     at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:363)
     at org.apache.mina.transport.socket.nio.SocketAcceptor.access$800(SocketAcceptor.java:55)
     at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:222)
     at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
2011-01-25 13:14:36,508;3219;ERROR;ds.DsServiceImpl;(main);(null_0) failed to start apacheds

The interesting part is what I found when I googled the error:

http://bugs.sun.com/view_bug.do?bug_id=6230761


-----Original Message-----
From: Felix Knecht [mailto:felix@otego.com]
Sent: Tuesday, February 01, 2011 1:08 AM
To: Apache Directory Developers List

Subject: IPV6

Hi all

As we all know, IPv4 will run out in the next weeks/months/year ...
Is ApacheDS already IPv6 ready?
Do we need to keep this in mind when doing the refactoring now?

At least I saw hardcoded localhost (127.0.0.1) IP addresses in the code...

Sure it's nod a need for the next release, but after?

Regards
Felix




--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com