Monday, December 5, 2011

解決 java.net.UnknownHostException

<Uncaught Throwable in processSockets
weblogic.utils.NestedError: This address was valid earlier, but now we get: .
weblogic.utils.NestedError: This address was valid earlier, but now we get:
    at weblogic.rjvm.JVMID.address(JVMID.java:560)
    at weblogic.rjvm.RJVMManager.record(RJVMManager.java:153)
    at weblogic.rjvm.RJVMManager.findOrCreateInternal(RJVMManager.java:289)
    at weblogic.rjvm.RJVMManager.findOrCreateRemote(RJVMManager.java:139)
    at weblogic.rjvm.ConnectionManagerServer.handleIdentifyResponse(ConnectionManagerServer.java:621)
    Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: RISCLT-4
    at java.net.InetAddress.getAllByName0(InetAddress.java:1157)
    at java.net.InetAddress.getAllByName(InetAddress.java:1083)
    at java.net.InetAddress.getAllByName(InetAddress.java:1019)
    at java.net.InetAddress.getByName(InetAddress.java:969)
    at weblogic.rjvm.JVMID.address(JVMID.java:553)
    Truncated. see log file for complete stacktrace
>
解決方法:在 C:\Windows\System32\drivers\etc\hosts
將 #127.0.0.1 ---> 的 「#」 拿掉。
再新增 RISCLT-4 這個新的domain name 和 ip,如:
        192.160.2.1    RISCLT-4


No comments:

Post a Comment