You should use the -XX:+UseLWPSynchronization Java™ option with Java client applications.
Also ensure that /usr/lib/lwp appears before /usr/lib in the LD_LIBRARY_PATH variable.
If you do not set these options, calls to the JavaGateway.open() method might become unresponsive when either the TCP/IP or the SSL protocol is used. See your Solaris documentation for more details.