• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI :internal error :Obj ID already in use

 
iyappan sankaran
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic