Meaningless Drivel is fun!*
The moose likes Distributed Java and the fly likes Required help on RMI problem - java.rmi.ConnectException: Connection refused to host Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Required help on RMI problem - java.rmi.ConnectException: Connection refused to host" Watch "Required help on RMI problem - java.rmi.ConnectException: Connection refused to host" New topic
Author

Required help on RMI problem - java.rmi.ConnectException: Connection refused to host

Jyoti sahoo
Greenhorn

Joined: Jun 09, 2011
Posts: 2
Hi All

I need some help related to RMI problem. I don't get this problem(java.net.ConnectException: Connection refused) always for all instances.This exception is mostly faced of 4/20, 1/9 instances. It has affected our production execution. Any immediate suggestion will be of great help.

Please find the stack trace below and security policy as well:

at routines.AnnexesRMI.erreur(AnnexesRMI.java:45)
Caused by: java.rmi.ConnectException: Connection refused to host: 10.42.209.142; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
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.invoke(UnicastRef.java:94)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
at $Proxy0.erreur(Unknown Source)
at com.capgemini.easyrmi.ClientRMI.erreur(ClientRMI.java:198)
... 10 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.<init>(Socket.java:367)
at java.net.Socket.<init>(Socket.java:180)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
... 17 more[/color]

grant {
permission java.security.AllPermission;
permission java.net.SocketPermission "*:1024-65535","connect,accept";
permission java.net.SocketPermission "*:80", "connect";
permission java.io.FilePermission "*", "read, write";
};

Thanks in advance.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36598
    
  16
Welcome to the Ranch

We don't use the word "urgent" here
Jyoti sahoo
Greenhorn

Joined: Jun 09, 2011
Posts: 2
Thanks.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19557
    
  16

Moving to our Distributed Java forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Required help on RMI problem - java.rmi.ConnectException: Connection refused to host
 
Similar Threads
help jboss
Can you help me to solve this rmi connection problem
Urgent help on ConnectException required..
Cannot Start RMI Server
EJB romte call Exception,"Connection refused to host: win2003..."