Tony Trinh
commented on
LOGBACK-749
Failed to get local hostname
Are you running Java 7 on OS X? If so, you might be experiencing the same bug as reported in [1]. I don't believe this is a logback issue.
I reproduced the exception using the snippet from [1] and JDK 7:
import java.net.InetAddress;
public class InetAddressTest {
public static void main(String... args) throws Exception {
System.out.println("InetAddress.getLocalHost() = " + InetAddress.getLocalHost());
}
}
The problem does not occur with JDK 6.
[1]
http://java.net/jira/browse/MACOSX_PORT-564
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
I reproduced the exception using the snippet from [1] and JDK 7:
import java.net.InetAddress;
public class InetAddressTest {
public static void main(String... args) throws Exception {
System.out.println("InetAddress.getLocalHost() = " + InetAddress.getLocalHost());
}
}
The problem does not occur with JDK 6.
[1] http://java.net/jira/browse/MACOSX_PORT-564