Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.rmi.server.ExportException: object already exported

 
rin perez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, i'm having trouble with UnicastRemoteObject.exportObject(); and in using callbacks i always have this exception:
java.rmi.server.ExportException: object already exported

here's my code:

CallbackImplementation m;
try {
m = new CallbackImplementation(u);
UnicastRemoteObject.exportObject(m);
mess.logIn(m);
} catch (Exception e) {
e.printStackTrace();
}

 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you doing an UnicastRemoteObject.unexport() before exporting again?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic