2008-11-13 29 views
2

我看到一個奇怪的問題:RMI服務器拿起一箇舊的IP地址

我有一臺Linux機器,安裝在機器上的JDK1.6,有些企業的推移,一些天后不得不改變機器的IP地址。現在有些個月後......我試圖得到一些Spring應用程序的工作......這似乎RMI服務器開始在我的舊的IP地址......

21:12:45,412 DEBUG [org.springframework.remoting.rmi.RmiServiceExporter] RMI registry access threw exception 
java.rmi.ConnectIOException: Exception creating connection to: 192.168.13.55; nested exception is: 
     java.net.SocketException: Network is unreachable 
     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:614) 
     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) 
     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184) 
     at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322) 
     at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source) 
     at org.springframework.remoting.rmi.RmiServiceExporter.testRegistry(RmiServiceExporter.java:411) 
     at org.springframework.remoting.rmi.RmiServiceExporter.getRegistry(RmiServiceExporter.java:391) 

能有人爲解釋這一過程或揭示了這裏發生的一切,或者可能會在這裏發生。

回答

1

好的,感謝您的答覆。我真的很感激......但我可能是太醉注意到條目在我的/ etc/hosts文件我的主機名被綁定到舊的IP地址......等等只要我刪除了......事情就像一個魅力。

0

你檢查你的Spring配置,以確保你沒有一個老參考的地方?