aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI registry creation throws OBJId in use exception in createRegistry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI registry creation throws OBJId in use exception in createRegistry" Watch "RMI registry creation throws OBJId in use exception in createRegistry" New topic
Author

RMI registry creation throws OBJId in use exception in createRegistry

Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
Feb 15, 2006 4:40:57 PM URLyBird.application init
INFO: Running the application is mode network
java.rmi.server.ExportException: internal error: ObjID already in use
at sun.rmi.transport.ObjectTable.putTarget(Unknown Source)
at sun.rmi.transport.Transport.exportObject(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
at sun.rmi.registry.RegistryImpl.setup(Unknown Source)
at sun.rmi.registry.RegistryImpl.<init>(Unknown Source)
at java.rmi.registry.LocateRegistry.createRegistry(Unknown Source)
at suncertify.gui.NetworkServerMenu.<init>(NetworkServerMenu.java:25)
at suncertify.gui.ServerInterface.init(ServerInterface.java:54)
at suncertify.gui.ServerInterface.run(ServerInterface.java:79)
at java.lang.Thread.run(Unknown Source)
Ronald Wouters
Ranch Hand

Joined: Apr 28, 2005
Posts: 190
This stacktrace looks to me like the RMI registry is already running and you are trying to start it a second time somehow ...

Regards,
Ronald Wouters



Sun Certified Developer for the Java 2 Platform
Sun Certified Enterprise Architect for the Java Platform, Enterprise Edition 5
Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
I found that I had two calls createRegistry through my code. Very starnge though.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: RMI registry creation throws OBJId in use exception in createRegistry