aaron3323 2013-08-08 13:18
浏览 5628
已采纳

RMI异常,java.rmi.ConnectException: Connection refused to host

[code="java"] String name = "Compute";
HelloWorldCompute engine = new HelloWorldEngine();
HelloWorldCompute stub = (HelloWorldCompute) UnicastRemoteObject.exportObject(engine, 8888);
Registry registry = LocateRegistry.getRegistry();
registry.rebind(name, stub);[/code]

执行最后一句,抛出异常
java.rmi.ConnectException: Connection refused to host: 10.200.1.184; nested exception is:
java.net.ConnectException: Connection refused: connect

什么原因啊

  • 写回答

1条回答 默认 最新

  • dashabenmao 2013-08-08 13:56
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?