尝试访问服务时获取“ConnectException”

时间:2016-05-10 05:41:14

标签: java linux connection rmi

当我尝试访问服务器lonrs07471(linux)上的应用程序时出现以下错误

  

引起:java.rmi.ConnectException:连接被拒绝主持:   lonrs07471.fm.rbsgrp.net;嵌套异常是:     java.net.ConnectException:拒绝连接:connect at   sun.rmi.transport.tcp.TCPEndpoint.newSocket(未知来源)at   sun.rmi.transport.tcp.TCPChannel.createConnection(未知来源)at   sun.rmi.transport.tcp.TCPChannel.newConnection(未知来源)at   sun.rmi.server.UnicastRef.newCall(未知来源)at   sun.rmi.registry.RegistryImpl_Stub.lookup(未知来源)at   com.rbs.marketrisk.client.rmi.RmiClientHelper.lookupRemotePrivate(RmiClientHelper.java:175)     在   com.rbs.marketrisk.client.rmi.RmiClientHelper.lookupRemote(RmiClientHelper.java:74)     在   com.rbs.marketrisk.common.domain.service.binding.AbstractRmiServiceBindingStrategy.createService(AbstractRmiServiceBindingStrategy.java:43)     ... 24更多引起:java.net.ConnectException:拒绝连接:   在java.net.PlainSocketImpl.socketConnect(Native Method)连接   java.net.PlainSocketImpl.doConnect(未知来源)at   java.net.PlainSocketImpl.connectToAddress(未知来源)at   java.net.PlainSocketImpl.connect(未知来源)at   java.net.SocksSocketImpl.connect(未知来源)at   java.net.Socket.connect(未知来源)at   java.net.Socket.connect(未知来源)at   java.net.Socket。(未知来源)at   java.net.Socket。(未知来源)at   sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(未知   来源)at   sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(未知   来源)......还有32个

我不知道这是什么意思以及如何解决这个问题虽然我读到了关于rmiregistery的事情。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

art

java.rmi.ConnectException: Connection refused to host: lonrs07471.fm.rbsgrp.net; nested exception is: java.net.ConnectException: Connection refused: connect at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) at sun.rmi.server.UnicastRef.newCall(Unknown Source) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at 引发,这意味着您正在尝试连接到RMI注册表,并且没有一个在您指定的主机上运行。