IllegalArgumentException at org.springframework.asm.ClassReader when initializing Spring context
2016-06-16 22:43
645 查看
06-16 22:42:06] [ERROR] [resin-39] [org.springframework.web.context.ContextLoader] Context initialization failed java.lang.IllegalArgumentException at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:52) at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80) at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101) at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76) at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298) at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300) at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300) at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230) at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153) at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285) at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.jboss.resteasy.plugins.spring.SpringContextLoaderListener.contextInitialized(SpringContextLoaderListener.java:44) at com.caucho.server.webapp.WebApp.addListenerObject(WebApp.java:2154) at com.caucho.server.webapp.WebApp.callInitializers(WebApp.java:3453) at com.caucho.server.webapp.WebApp.startImpl(WebApp.java:3689) at com.caucho.server.webapp.WebApp.access$400(WebApp.java:207) at com.caucho.server.webapp.WebApp$StartupTask.run(WebApp.java:5217) at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173) at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)
问题原因:Java 8 with Spring 3.2.0, which doesn't support it.
解决方法:使用spring4或者使用jdk7.
相关文章推荐
- java求圆的面积
- SSH整合
- 面向对象思想(一)
- Java中向指定txt文件追加内容
- Eclipse IDE的一些设置和使用小技巧(键盘小快手,代码辅助)
- Java ArrayList、Vector和LinkedList等的差别与用法
- Java中从指定txt读取文件
- java缩小图片
- Java - PAT - 1031. 查验身份证(15)
- Spring之IOC
- 【MyBatis学习14】MyBatis和Spring整合
- JAVA屏幕大小获取方式
- Javaweb学习之SpringMVC视图解析器的分析
- eclipse导入cordova创建的项目
- Java(抽象类和接口)
- Hibernate validator使用和自定义validator及整合Spring MVC
- Java IO - PipedReader& PipedWriter
- java中判断二维数组是否为空
- java中的内部类总结
- SpringMVC4使用@ResponseBody注解实现JSON自动转换错误