wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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!
 
 
subject: RMIServer is abstract and cannot be instantiated
 
Similar Threads
RMI pass by value or by reference ?
RMI client server don't work on ipv6 machines
rmi callback
Help needed in RMI
Very New to RMI - Help plz - question on NotBoundException