Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing an RMI application

 
michael tall
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you happen to go through this tutorial
 
chandana nannapaneni
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic