IBM Support

IJ06287: INETADDRESS.GETLOCALHOST CALL THROWS UNKNOWNHOSTEXCEPTION ON ZOS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: NA
    .
    Stack Trace: Exception stack:
    java.net.UnknownHostException: : : unknown error
    
     at java.net.InetAddress.getLocalHost(InetAddress.java:1684)
    .
    

Local fix

  • NA
    

Problem summary

  • The call java.net.InetAddress.getlocalHost() resulted in
    java.net.UnknownHostException on ZOS only, when getnameinfo
    system call fails and rests the hostname to null which  later
    results in UnknownHostException.
    

Problem conclusion

  • On platforms like AIX, Linux and z/OS, reverse lookup is not
    required while doing the getLocalHost. The JDK has been updated
    to remove the reverse lookup. The issue is fixed in openJDK
    through the bug ids 8169865 and 8201369.
    .
    This APAR will be fixed in the following Java Releases:
       8    SR5 FP15  (8.0.5.15)
    .
    Contact your IBM Product's Service Team for these Service
    Refreshes and Fix Packs.
    For those running stand-alone, information about the available
    Service Refreshes and Fix Packs can be found at:
               https://www.ibm.com/developerworks/java/jdk/
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ06287

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-05-08

  • Closed date

    2018-05-10

  • Last modified date

    2018-06-05

  • 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

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
22 February 2022