dcsimg
RMI-ConnectException
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   lakshmi_raman
Posted On:   Friday, April 19, 2002 01:26 PM

Hi, Here is a problem that i have been working on for the past 2 days and have not yet found a solution to . Now i have a RMI object which is registered on a registry running on some port(default 1099).This is my Server application. Then have the stubs in another host which is a Web Server(coz the stubs have to be network accessible). And i have a Client application in another host. Now if i run my Server in a Windows machine and the rest of them in either Unix or Windows it works fine. But when i run my Server in a Unix and the Client and the Stub in Window . the Naming.lookup talks to the registry and gets the stubs location and th   More>>

Hi,

Here is a problem that i have been working on for
the past 2 days and have not yet found a solution to .
Now i have a RMI object which is
registered on a registry running on some port(default
1099).This is my Server application.
Then have the stubs in another host which is a Web
Server(coz the stubs have to be network accessible).
And i have a Client application in another host.

Now if i run my Server in a Windows machine and
the rest of them in either Unix or Windows it works
fine.
But when i run my Server in a Unix and the Client
and the Stub in Window .
the Naming.lookup talks to the registry and gets
the stubs location and the stub gets downloaded to the
Client.
but when the stub starts making all the remote
method calls i get a ConnectException -connection refused to host .
i.e the Stub is not able to make a socket
connection to the server.
Would you know why would this happen.?
What is the port on which the Client talks to the Server?
Would it be the same port as the port on which we start the registry?


i was also wondering if the Unix machines firewall
specification has some thing to do with this.
So i created a simple socket listener application
and ran it in the Unix machine,
and a client application to open a socket to that
Unix machine, i ran the client application from a Windows
machine.
That seems to work fine.
it open up sockets in most of the port numbers (> 1024).


Could some one help me with this.

Could you please help me with this.

   <<Less

Re: RMI-ConnectException

Posted By:   Chris_Peyton  
Posted On:   Monday, April 29, 2002 12:57 PM

Does your RMI server report that it was able to successfully bind the object in the registry? We had some problems in this area and had to modify the rmi security setttings via a policy file to allow us to create and bind objects to the registry successfully.
About | Sitemap | Contact