• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

getting java.rmi.NotBoundException

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to get my RMI communication in an exiting app to work on one single port. As I understand it, i need to call unicastremoteobject with a port number in order to achieve this which i think that i am.

(GTIServer extends a generic server class that extends UnicastRemoteObject).

I'm getting a java.rmi.NotBoundException



and output:


seems to be ok, but



gives error



if i change the rebind in the first code sample to just



all is fine, (no change in the "client" code, still using lookup using port number). Can anyone please give me a hint on what i'm missing

Karsten.




 
Karsten Brondum
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D'oh!!

stupid, stupid me. Just posted this to prove that i cannot read my own code.

Changing line 31 to



really really helped.

Cannot find a blushing emoticon, otherwise i would have used it

Karsten.


 
Marshal
Posts: 25682
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Karsten Brondum wrote:Cannot find a blushing emoticon, otherwise i would have used it



Supposedly that's this one here:

But anyway, glad you got your problem solved!
 
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic