The moose likes Distributed Java and the fly likes ServiceServerImpl java class does not compile. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "ServiceServerImpl java class does not compile." Watch "ServiceServerImpl java class does not compile." New topic

ServiceServerImpl java class does not compile.

Tripti Ag
Ranch Hand

Joined: Jul 03, 2009
Posts: 35
I have the following two interfaces and a java class. The problem i am getting is that i have implemented all the methods of an interface which my code is implementing, but still compiler complains that i havnt overridden getService method in my class, though i have. I have highlighted the method overridden using . Please tell me, how to solve this problem.Thanks in advance.




Rohit Garg
Ranch Hand

Joined: Feb 05, 2008
Posts: 30
Tried it out myself and appeared to work just fine.

I would say that you should check for any classes within some other jar files in your classpath with same name and package. It happens a lot that a preferred classloader in the chain has loaded the some other class (with same package and name) and it just returns that one instead of the one you are thinking about.

Tripti Ag
Ranch Hand

Joined: Jul 03, 2009
Posts: 35
Thanks Rohit. It ran successfully. I didnt made any changes but the code compiled without any error. But why i was getting that error is still uncleared.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170

Tripti Ag wrote:

Please check your private messages for an important administrative matter

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
jQuery in Action, 2nd edition
subject: ServiceServerImpl java class does not compile.
Similar Threads
RMI pass by value or by reference ?
Rmi BAsic Problem
RMI return BufferedImage object from remote method
java.rmi.ServerException: java .rmi.UnmarshallException
exception in client side