"Error" project start deployment times wrong: Java.lang.NoSuchMethodError

Source: Internet
Author: User

Error:

=====================================================================================================

Project Start deployment Error:

Java.lang.NoSuchMethodError:org.springframework.util.ReflectionUtils.doWithLocalFields (Ljava/lang/class; lorg/springframework/util/reflectionutils$fieldcallback;) V at Org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.buildPersistenceMetadata ( Persistenceannotationbeanpostprocessor.java:418) at Org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata ( Persistenceannotationbeanpostprocessor.java:397) at Org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition ( Persistenceannotationbeanpostprocessor.java:333) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors (Abstractautowirecapablebeanfactory.java:872) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( Abstractautowirecapablebeanfactory.java:495) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( Abstractautowirecapablebeanfactory.java:458) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (Abstractbeanfactory.java:293) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( Defaultsingletonbeanregistry.java:223)

Only a partial error is pasted here.

What is wrong and what is not, the key is this type of problem

Java.lang.NoSuchMethodError

How to solve is the most critical problem!!!

Analysis:

==========================================================================================

A huge amount of posts/articles have declared the root of the problem.

Instead of calling this class, the method in the class does not exist;

This is the method that is available in multiple classes;

Tossing and turning is not a match, the version is inconsistent, conflict, La La la mess. All right, how to fix it?

Solve:

==========================================================================================

① no matter what IDE you use, whether ecplise or myecplise or idea. Before you solve this problem, you need to understand one thing, which is to configure the JVM parameters before the project starts.

Reference: Http://www.cnblogs.com/sxdcgaq8080/p/8022096.html A look at the understanding.

② Adding a VM parameter

-xx:+traceclassloading

③ Restart Project after saving

"Error" project start deployment times wrong: Java.lang.NoSuchMethodError

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.