GeeCON Prague 2014*
The moose likes Distributed Java and the fly likes java.rmi.server.ExportException: object already exported Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Bookmark "java.rmi.server.ExportException: object already exported" Watch "java.rmi.server.ExportException: object already exported" New topic
Author

java.rmi.server.ExportException: object already exported

rin perez
Greenhorn

Joined: Feb 04, 2011
Posts: 2
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

Joined: Feb 25, 2007
Posts: 1638

Are you doing an UnicastRemoteObject.unexport() before exporting again?


apigee, a better way to API!
 
jQuery in Action, 2nd edition
 
subject: java.rmi.server.ExportException: object already exported