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.