[jbossts-issues] [JBoss JIRA] Closed: (JBTM-592) Add fallback for Utility::hostInetAddr()

Mark Little (JIRA) jira-events at lists.jboss.org
Fri Nov 13 16:31:05 EST 2009


     [ https://jira.jboss.org/jira/browse/JBTM-592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Little closed JBTM-592.
----------------------------

    Fix Version/s: 4.9.0
       Resolution: Done


> Add fallback for Utility::hostInetAddr()
> ----------------------------------------
>
>                 Key: JBTM-592
>                 URL: https://jira.jboss.org/jira/browse/JBTM-592
>             Project: JBoss Transaction Manager
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Common
>    Affects Versions: 4.6.1
>            Reporter: Jesper Pedersen
>            Assignee: Mark Little
>            Priority: Minor
>             Fix For: 4.9.0
>
>
> 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);
>  }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossts-issues mailing list