使用自由服务器的Grails应用程序中的UnknownHostException

时间:2018-08-09 13:37:16

标签: java grails log4j websphere-liberty

当我尝试在Grails应用程序中使用Log4j时,我的Liberty消息日志文件中出现错误消息。当我在本地运行我的应用程序时,一切工作正常,但是当我将应用程序上传到Liberty Server时,我在日志文件上看到以下错误。请给我建议如何解决此问题。谢谢

[WARNING ] CWOBJ0210W: The transport type of the remote server on tvma1222.server.xxx.net:4809,tvma1223.server.xxx.net:4809,tvma1224.server.xxx.net:4809 cannot be determined. The following exception occurred while determining the transport type: java.net.UnknownHostException: tvma1224.server.xxx.net
    at java.net.InetAddress.getAllByName0(InetAddress.java:1412)
    at java.net.InetAddress.getAllByName(InetAddress.java:1316)
    at java.net.InetAddress.getAllByName(InetAddress.java:1239)
    at java.net.InetAddress.getByName(InetAddress.java:1189)
    at com.ibm.ws.objectgrid.naming.DetermineTransport$1.run(DetermineTransport.java:292)
    at com.ibm.ws.objectgrid.naming.DetermineTransport$1.run(DetermineTransport.java:288)
    at java.security.AccessController.doPrivileged(AccessController.java:452)
    at com.ibm.ws.objectgrid.naming.DetermineTransport.probe(DetermineTransport.java:288)
    at com.ibm.ws.objectgrid.naming.LocationServiceFactory$1.call(LocationServiceFactory.java:1451)
    at com.ibm.ws.objectgrid.naming.LocationServiceFactory$1.call(LocationServiceFactory.java:1447)
    at java.util.concurrent.FutureTask.run(FutureTask.java:274)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
    at java.lang.Thread.run(Thread.java:809)

1 个答案:

答案 0 :(得分:0)

  

java.net.UnknownHostException:tvma1224.server.xxx.net

似乎很清楚,运行代码的服务器无法使用系统解析器查找tvma1224.server.xxx.net。如果您无法修复DNS,请在/ etc / hosts或等效名称中添加一个条目。