今天接到工程师电话,客户应用访问报错,weblogic控制台打开失败。
1、检查weblogic控制台进程未启动。
2、启动weblogic控制台,启动失败。
3、检查weblogic控制台启动日志,发现:
<Jul 30, 2021 4:38:25 PM CST> <Server subsystem failed. Reason: java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
at weblogic.server.channels.AddressUtils
A
d
d
r
e
s
s
M
a
k
e
r
.
g
e
t
L
o
c
a
l
H
o
s
t
(
A
d
d
r
e
s
s
U
t
i
l
s
.
j
a
v
a
:
38
)
a
t
w
e
b
l
o
g
i
c
.
s
e
r
v
e
r
.
c
h
a
n
n
e
l
s
.
A
d
d
r
e
s
s
U
t
i
l
s
AddressMaker.getLocalHost(AddressUtils.java:38) at weblogic.server.channels.AddressUtils
AddressMaker.getLocalHost(AddressUtils.java:38)atweblogic.server.channels.AddressUtilsAddressMaker.(AddressUtils.java:33)
at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:154)
at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:61)
at weblogic.server.channels.ChannelService.start(ChannelService.java:209)
Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: ***..edu.cn: ..edu.cn: System error
at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
at
在hosts文件添加报错的信息后文件解决。
127.0.0.1 ***.***.edu.cn
注:无法理解,不清楚为什么需要添加,报错的域名信息在服务器上ping 是正常的