Hive-mongo icon indicating copy to clipboard operation
Hive-mongo copied to clipboard

Exception in thread "main" java.lang.NoSuchMethodError:

Open amitbatajoo opened this issue 9 years ago • 3 comments

Hi to all,

Recently I am trying to code in apache river java, and I am testing for user input value from client and process in server and result back to client, but at same time I get the error :

Exception in thread "main" java.lang.NoSuchMethodError: com.sun.jini.example.hel lo.Hello.sayHello()Ljava/lang/String; at com.sun.jini.example.hello.Client.mainAsSubject(Client.java:142) at com.sun.jini.example.hello.Client.main(Client.java:83)

Let me know how to overcome this error and continue my project work.

Thank you all in advance.

amitbatajoo avatar Mar 04 '15 04:03 amitbatajoo

according to the exception message, it's expected there should have a method looks like: public String sayHello(){...} in class com.sun.jini.example.hel lo.Hello, but it's not...

What are you trying to build? To me JINI is some dying technology...

yc-huang avatar Mar 04 '15 07:03 yc-huang

i am trying to build a distributed computing service, this is my project work at colz. there is a method as you defined: pubilic String sayHello(){....} in class com.sun.jini.example.hel lo.Hello.

amitbatajoo avatar Mar 04 '15 07:03 amitbatajoo

then I guess there might be some older version of this class been cached somewhere. Try to restart everything and try again.

yc-huang avatar Mar 04 '15 07:03 yc-huang