File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes RMI :internal error :Obj ID already in use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI :internal error :Obj ID already in use" Watch "RMI :internal error :Obj ID already in use" New topic
Author

RMI :internal error :Obj ID already in use

iyappan sankaran
Ranch Hand

Joined: Aug 11, 2003
Posts: 58
hi,
i got this error
"internal error objid already in use" when i do
Registry reg=Registry.LocateRegistry("127.0.0.1",8000);
reg.rebind("aaa",obj1)

afterfew lines of code, again

Registry reg1=Registry.LocateRegistry("127.0.0.1",9000);
reg1.rebind("bbb",obj2)



how to solve this
pls urgent
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Found the answer by googling for the error message -

Found it here.

In short, this is happening because you are trying to create multiple rmi registries in one JVM. You'll need a separate JVM for each.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI :internal error :Obj ID already in use