lower on the stack the LDAP library is invoking the call and could be doing so in a way which causes it to hang.No, lower on the stack the LDAP library is doing its first piece of I/O on the SSLSocket, i.e. sending the first request, which is causing the SSL handshake, which is hanging for some reason, presumably waiting for a server handshake response, which concerns SSL, not LDAP. LDAP does always send requests: it won't be that.
I found a post on Stack OverflowNot relevant. It is stuck in wait() while doing com.sun.jndi.ldap.Connection.readReply(). You are stuck in the SSL handshake, which would occur before sending the request, which precedes reading the reply. And the DNS lookups have already happened by the time the socket is connected, which it must be to be in the SSL handshake.
The Sun bug is listed hereIf it's this bug, the question becomes why the LDAP server reset the connection. Which in turn indicates an SSL setup problem such as certificate.