Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amitbatajoo opened this issue Mar 4, 2015 · 3 comments
Open

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

amitbatajoo opened this issue Mar 4, 2015 · 3 comments

Comments

@amitbatajoo
Copy link

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.

@yc-huang
Copy link
Owner

yc-huang commented Mar 4, 2015

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...

@amitbatajoo
Copy link
Author

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.

@yc-huang
Copy link
Owner

yc-huang commented Mar 4, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants