aspose file tools
The moose likes Distributed Java and the fly likes getting java.rmi.NotBoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "getting java.rmi.NotBoundException" Watch "getting java.rmi.NotBoundException" New topic
Author

getting java.rmi.NotBoundException

Karsten Brondum
Greenhorn

Joined: Jan 04, 2010
Posts: 6
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

Joined: Jan 04, 2010
Posts: 6
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.


Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

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!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: getting java.rmi.NotBoundException
 
Similar Threads
Rmi BAsic Problem
RMI connection to registry refused
error: ObjID already in use
error: "java.rmi.NotBoundException: Server" ???
Concerns about exporting objects - unable to unexport