if hostname including underscore,Naming.rebind(url, Remote) will exception!
843793Mar 7 2006 — edited Mar 21 2006change the server machine's hostname to include with a underscore, the Naming.rebind(url, Remote) method will throw exception.
resolve IP from configfile, IP is apple_t
java.rmi.ConnectException: Connection refused to host: 172.16.5.219; nested exce
ption is:
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185
)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at gxlu.framework.servermanager.StartingDaemon.main(StartingDaemon.java:
194)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:462)
at java.net.Socket.connect(Socket.java:412)
at java.net.Socket.<init>(Socket.java:308)
at java.net.Socket.<init>(Socket.java:124)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
Help!!!