Skip to main content

IV07570: INETADDRESS.GETLOCALHOST() RETURNS APIPA/LINK-LOCAL ADDRESS


Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: Connection issues can arise with a socket bound
    to an address returned by InetAddress.getLocalHost(). This is
    when InetAddress.getLocalHost() returns link-local address
    (169.254.*.*). This can especially when the system has multiple
    NICs.
    .
    Stack Trace: N/A
    .
    

Local fix

  • Use InetAddress.getAllByName(localhostname) to get the list of
    Inet Addresses and then pick one which is not a link-local
    address.
    

Problem summary

  • Following Windows 2008 SP2, getaddrinfo() Windows API sorts the
    Addresses and linklocal/APIPA address appears first now.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR10
    6.0.1 SR1
    7.0.0 SR1
    .
    IBM Java's getLocalHost() is corrected to filter out the
    link-local addresses and return a non-linklocal address to the
    application.
    .
    To obtain the fix:
    Install build 20110921 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV07570

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-09-13

  • Closed date

    2011-09-28

  • Last modified date

    2012-05-28

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Runtimes for Java Technology

Java Class Libraries


Software version:
6.0


Reference #:
IV07570


Modified date:
2012-05-28

Translate my page

Content navigation