A very strange exception in spring: Exception in thread "main" java.lang.IllegalArgumentException

Source: Internet
Author: User

January 03, 2017 6:35:52 pm Org.springframework.context.support.ClassPathXmlApplicationContext preparerefresh Information: refreshing org.springframework.context.support.classpathxmlapplicationcontext@421faab1:startup date [Tue 03 18:35:52 CST 2017]; Root of context Hierarchy January 03, 2017 6:35:52 PM Org.springframework.beans.factory.xml.XmlBeanDefinitionReader Loadbeandefinitions information: Loading XML bean Definitions from class path resource [Com/bryce/assemble/applicationcontext.xml ] January 03, 2017 6:35:52 PM org.springframework.beans.factory.support.DefaultListableBeanFactory Preinstantiatesingletons information: pre-instantiating singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@22f71333:defining beans [user1,user2]; Root of factory hierarchy Exception in thread ' main ' java.lang.IllegalArgumentException at Org.springframework.asm.Class Reader.<init> (Unknown source) at org.springframework.asm.classreader.<init> (Unknown source) at Org.springframework.asm.ClassReadEr.<init> (Unknown Source) at Org.springframework.core.LocalVariableTableParameterNameDiscoverer.inspectClass ( LOCALVARIABLETABLEPARAMETERNAMEDISCOVERER.JAVA:110) at Org.springframework.core.LocalVariableTableParameterNameDiscoverer.getParameterNames ( LOCALVARIABLETABLEPARAMETERNAMEDISCOVERER.JAVA:85) at Org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor (constructorresolver.java:193 ) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor ( abstractautowirecapablebeanfactory.java:1051) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:955) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:490) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:461) at Org.Springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:295) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:223) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:292) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:194) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:626) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:932) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:479) at org.springframework.context.support.classpathxmlapplicationcontext.< Init> (classpathxmlapplicationcontext.java:139) at org.springframework.context.support.ClassPathXmlAppLicationcontext.<init> (classpathxmlapplicationcontext.java:83) at Com.bryce.assemble.Test.main (test.java:9
 )


Today, a very strange exception occurred while configuring the Spring framework: java.lang.IllegalArgumentException, the XML configuration file and Java class Everything has been checked, but it is the error ~ Depressed. On the internet to find a half-day finally found a humble post inside someone mentioned, may be jdk1.8 and spring3.* incompatible, so I changed jdk1.7 tried it, it is this reason. So before you configure the framework, it's important to understand what the framework-compatible environment is, or waste a lot of time in vain.

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.