C3P0在Linux下Failed to get local InetAddress for VMID. This is unlikely to matter. At all

报错代码:
Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomness

java.net.UnknownHostException: Fedora.dule:Fedora.dule

查看Fedora.dule来自哪里

[root@dule ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Fedora.DuLe
NTPSERVERARGS=iburst

解决方法

[root@dule ~]# gedit /etc/hosts

在行127.0.0.1  localhost localhost.localdomain 后加上Fedora.dule保存。

你可能感兴趣的:(InetAddress)