修改Hostname导致netca出错

修改主机名后,忘记更新/etc/hosts文件的设置,导致运行netca报错。论坛帖子:http://www.itpub.net/671313.html

主要报错如下:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xB7500243
Function=index+0x63
Library=/lib/tls/libc.so.6

Current Java thread:
at oracle.net.common.NetGetEnv.getDNSDomain(Native Method)
at oracle.net.ca.ConfigureProfile.setDefaultProfileParams(Unknown Source)
at oracle.net.ca.InitialSetup.setupConfigObjects(Unknown Source)
at oracle.net.ca.InitialSetup.(Unknown Source)

该错误主要在netca尝试将主机名转换成IP地址的过程中出现异常,又无法从DNS服务器中获得所需要的信息。在VMWare中,如果使用DHCP来获得IP地址,也可能出现该错误。在Google中搜索"oracle.net.common.NetGetEnv.getDNSDomain"可以获得一些有用的信息。

一般在/etc/hosts添加hostname到IP的正确映射,或者配置正确的DNS,可以解决该问题。
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章