Rectangle 27 0

Java.lang.NoSuchMethodError: com.Person.setCompanyList(LjavautilArrayList;)V?


..i'am making jar on maven and i'am getting output and build success .But when i keep it in server it show the NoSuchMethodError ..

The other frequent case is reflection, when you have method names constructed at run time (for methods that just do not exist).

This generally means that the version of the library or class you compiled against is not the same version that is being run now.

Try a clean build and deploy of your whole project.

When you compiled, the method was there (otherwise there would have been a compile error), but now it is not (maybe because the jar file is too old).

Note