• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't launch RMI  RSS feed

 
Maria Kowalczyk
Greenhorn
Posts: 15
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers!
I have one issue with RMI (yeah, I am learning RMI now...).

There is my remote interface There is an implementation:
And here I try to launch it:
Unfortunately I get an exception that I do not understand.
Here it is:

Why is it refusing connections? I did rmic WorkerImpl and it generated WorkerImpl_Stub.class file.

I looked for a code to run RMI here.
 
Swastik Dey
Rancher
Posts: 1815
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maria,

Did you start rmiregistry?
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the IP address correct, is there a firewall? Have you tried to ping from one machine to the other?
 
Maria Kowalczyk
Greenhorn
Posts: 15
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swastik Dey wrote:Did you start rmiregistry?

Yes, I did.

Tony Docherty wrote:Is the IP address correct, is there a firewall? Have you tried to ping from one machine to the other?

What IP address? I didn't type any address at all. I haven't even started to write any client code. I thought I first get the server running before I try to write a client. I posted all code I've got till now.
There is no firewall. I turned one off. I can't ping one machine to the other as there is no other machine yet.
 
Swastik Dey
Rancher
Posts: 1815
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even after starting registry you get the same error?
 
Maria Kowalczyk
Greenhorn
Posts: 15
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it should have run with no firewall and with rmiregistry started?
So there is something wrong with my computer?
Does my code run on your machine?
 
Swastik Dey
Rancher
Posts: 1815
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It did work for me, but with a small change, though that is not related to this error.

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!