aspose file tools*
The moose likes Distributed Java and the fly likes RMIServer is abstract and cannot be instantiated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMIServer is abstract and cannot be instantiated" Watch "RMIServer is abstract and cannot be instantiated" New topic
Author

RMIServer is abstract and cannot be instantiated

Stephen Black
Ranch Hand

Joined: Aug 13, 2009
Posts: 50

I am creating a simple RMI server but I get the error message RMIServer is abstract and cannot be instantiated
but what is funny is that another almost identical RMI example which I was copying off doesn't have any problem
First I will show you the example that compiles and runs

Despite being almost the same as the previous example I get the following error
RMIServer is abstract; Cannot be instantiated
Stephen Black
Ranch Hand

Joined: Aug 13, 2009
Posts: 50

I was expecting that RMIServer() was a class that was contained in an imported libraries
But when I reviewed the code I noticed that the class was RMIServer() so really the server is
the object I created and it becomes a server when I bind it to the RMI Registry using the Naming.rebind method
Stephen Black
Ranch Hand

Joined: Aug 13, 2009
Posts: 50

Yep I solved it!
 
Don't get me started about those stupid light bulbs.
 
subject: RMIServer is abstract and cannot be instantiated