• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

File Not Bound java.rmi.NotBoundException

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I am getting error "File Not Bound java.rmi.NotBoundException" at run time. Please find my code as follow:

Code for Implementation class



Code for Server


Code for Client


Is any one help me?

Regards,
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is so much in your sample code, but at the same time, there is so much missing. Something has made me suspect that it is either a problem with your interface (which you haven't shown) or with the text file containing the servers details (which you haven't shown). Unfortunately I cant recall what made me think that this is the case - in reducing your code to something workable, I lost track of what the issue was.

Here is my SSCCE - the main thing is that it does not contain anything that is not needed, and it contains everything that is needed for a basic test. I have gone from your 300 lines of code, down to 60 lines of code (including the important interface). It is very hard to get anyone to look at 300 lines of code and try and work out what is wrong. It is still hard with 60 lines of code, but it is a little easier.

The interface:


The implementation:


The server:


And the client:


Based on this code, I would recommend you try setting up a known server. Hard code the IP addresses for now. See if that works. If it does not work, then you may have firewall issues. If it does, then the problem is elsewhere. But you can slowly add to the code to get to the point where there is a problem, then try to build an SSCCE based on that problem.

Note that in addition to the overall problem of just getting your code to work as designed, it also has faulty logic. You are not calculating ping times.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic