wood burning stoves*
The moose likes Distributed Java and the fly likes Executing an RMI application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Executing an RMI application" Watch "Executing an RMI application" New topic
Author

Executing an RMI application

michael tall
Ranch Hand

Joined: Nov 02, 2008
Posts: 61
I have JSE6 installed. Trying very basic RMI with an interface, a server class and a client class. What are the steps to execute?
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Did you happen to go through this tutorial


apigee, a better way to API!
chandana nannapaneni
Ranch Hand

Joined: Dec 18, 2008
Posts: 39
I am trying to run a RMI application.I compiled and run the server side classes and set server.hostname=host. I compiled the client side classes.But when I try to run the client classes I get the following error.

java.rmi.UnknownHostException: Unknown host: host; nested exception is:
java.net.UnknownHostException: host
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.invoke(Unknown Source)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unkn
own Source)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
at $Proxy0.executeTask(Unknown Source)
ETC ETC


CAN ANYONE TELL ME WHAT MIGHT BE THE ERROR?


Chandana.
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Its often not a good idea to hijack other thread to ask a different question. Kindly post a new topic with your question.
Also KeepItDown
chandana nannapaneni
Ranch Hand

Joined: Dec 18, 2008
Posts: 39
Hi,

The thread is about the RMI application and my question also deals about the same thing.The question is about an error while running an RMI application.

Chandana.
 
Don't get me started about those stupid light bulbs.
 
subject: Executing an RMI application
 
Similar Threads
Problem in Starting rmi registry.
Exception: Connection refused to host
Issue with RMi
rmi classes compiled. Execution of server class throwing exception
help with RMI