0

I am calling my method dynamically like this:

java.lang.reflect.Method method;
method = TestRecommendations.class.getMethod("level1classSimilarityForUser",
                                String[].class);

If you go to the class TestRecommendations, you will see that I do have it :

public ResultSet level1ClassSimilarityForUser(String ... userURI) {

what is my mistake please?

4
  • 4
    level1ClassSimilarityForUser, not level1classSimilarityForUser. It's case sensitive. Commented Apr 6, 2016 at 9:36
  • @AndyTurner now I am getting java.lang.IllegalArgumentException: argument type mismatch could you help please ? Commented Apr 6, 2016 at 9:41
  • Could you correct your question and typo, and then share us the error messages? Commented Apr 6, 2016 at 9:48
  • @tsuda7 i asked a new question here stackoverflow.com/questions/36447647/… Commented Apr 6, 2016 at 9:56

1 Answer 1

3

Typo in level1classSimilarityForUser, try level1ClassSimilarityForUser.

Sign up to request clarification or add additional context in comments.

1 Comment

now I am getting java.lang.IllegalArgumentException: argument type mismatch

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.