Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.rmi.NotBoundException: Phone  RSS feed

 
larsson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
i'm new to RMI and I keep getting this annoying run-time error. My program keeps tripping up with the following lines of code (placed in a try statement)
RemotePhoneInterface remotePhone = (RemotePhoneInterface)Naming.lookup(strIPAddress + strServiceName);
where RemotePhoneInterface is the name of my interface which extends Remote,strIPAddress in the ip address of my machine and strServiceName is my service name (Phone).
I have included the stub class of the class in my remote program which implements RemotePhoneInterface. I have rmiregistry running b4 i run the program as well (i just type rmiregistry into a java commandline in Windows NT-is this okay?)
i'd be very grateful if anybody could helop me out.
Colm
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
larsson
Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
instead of

try this:

Eugene Kononov.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!