JDK-6989887 : SDP: Confusing behavior when -Djava.net.preferIPv4Stack=true is not specified
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 6u22m
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2010-10-06
  • Updated: 2011-01-19
  • Resolved: 2010-10-06
Related Reports
Relates :  
Description
If one doesn't specify -Djava.net.preferIPv4Stack=true on command line, then connect() for SDP socket fails with 'Connection refused' without any explanation. It would be good to have more explicit error (or do not require this option).

Comments
EVALUATION This is actually a problem in Solaris, tracked as 6985975. Once that is fixed then there shouldn't be any need to run with IPv6 disabled.
06-10-2010