修改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,可以解決該問題。
 

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