Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 4.6.1
    • Fix Version/s: 4.9.0
    • Component/s: Common
    • Labels:
      None

      Description

      If a host has a misconfigured hostname Utility::hostInetAddr() fails with an UnknownHostException.

      An extra try could be made after logging a warning about the failed InetAddress.getLocalHost() using InetAddress.getByName(null) - e.g.

      try

      { addr = InetAddress.getLocalHost(); }

      catch (UnknownHostException uhe)

      { log.warn("Unable to use InetAddress.getLocalHost() to resolve address"); addr = InetAddress.getByName(null); }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                marklittle Mark Little
                Reporter:
                jesper.pedersen Jesper Pedersen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: