Confusing java.lang.NoSuchMethodError

后端 未结 1 1371
感情败类
感情败类 2021-01-27 11:42

I am working on a Java EE application, which runs on a WAS application server. I am also using Hibernate. JRE version 7

Here is the error I am getting:

[         


        
相关标签:
1条回答
  • 2021-01-27 12:15

    root cause is that you most likely have compiled a class against a different version of the class that is missing a method, than the one you are using when running it.

    Look at the stack trace ... If the exception appears when calling a method on an object in a library, you are most likely using separate versions of the library when compiling and running. Make sure you have the right version both places.

    If the exception appears when calling a method on objects instantiated by classes you made, then your build process seems to be faulty. Make sure the class files that you are actually running are updated when you compile.

    0 讨论(0)
提交回复
热议问题