This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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