[jboss-jira] [JBoss JIRA] (WFLY-2078) SPNEGOLoginModuleTestCase deployment failure error
Joe Wertz (JIRA)
jira-events at lists.jboss.org
Mon Sep 16 05:11:04 EDT 2013
[ https://issues.jboss.org/browse/WFLY-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804401#comment-12804401 ]
Joe Wertz commented on WFLY-2078:
---------------------------------
It appears the InetAddress.getLocalHost() call has had problems for a number of years. It's unreliable and the old Sun advice from around 2006 is simply not to use it. The call does a reverse-lookup based on the hostname to find the IP address, which can cause problems.
The issue can be fixed by deliberately getting the loopback address instead of attempting to acquire the localhost IP. Using InetAddress.getLoopbackAddress() solves the problem.
> SPNEGOLoginModuleTestCase deployment failure error
> --------------------------------------------------
>
> Key: WFLY-2078
> URL: https://issues.jboss.org/browse/WFLY-2078
> Project: WildFly
> Issue Type: Feature Request
> Components: Test Suite
> Affects Versions: 8.0.0.Alpha4
> Reporter: Joe Wertz
> Assignee: Joe Wertz
> Priority: Minor
>
> The error is caused by a failure in the GSSTestServer getting a connection back to the localhost. I get the wrong IP from the InetAddress.getLocalHost().
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list