LDSTechForumProjects

SocketException with Java 7 over VPN

Java 7 communicates by default over IPv6, previously it was IPv4. Cisco VPN currently does not support IPv6 sockets, at least nor our version/implementation of it, so you may get something like this

IO Error: JNDI Package failure javax.naming.CommunicationException:oid11g.ldschurch.org:3060 [Root exception is java.net.SocketException: Permission denied: connect]

One potential solution is to switch java back to IPv4 with the -Djava.net.preferIPv4Stack=true system property.
Another solution includes turning off IPv6 in the VPN config as documented here, but we have not tested this solution.
Feel free to expand this document to include specific situations.

This page was last modified on 8 February 2013, at 15:34.

Note: Content found in this wiki may not always reflect official Church information. See Terms of Use.