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:[email protected]] 
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

Reply via email to