Spring3.X jdk8 java.lang.IllegalArgumentException
异常提示:
1 javax.servlet.ServletException: Servlet.init() for servlet springMVC threw exception 2 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) 3 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 4 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) 5 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) 6 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) 7 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) 8 org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466) 9 org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455) 10 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 11 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 12 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 13 java.lang.Thread.run(Thread.java:745) 14 15 root cause 16 17 java.lang.IllegalArgumentException 18 org.springframework.asm.ClassReader.<init>(Unknown Source) 19 org.springframework.asm.ClassReader.<init>(Unknown Source) 20 org.springframework.asm.ClassReader.<init>(Unknown Source) 21 org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:52) 22 org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80) 23 org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102) 24 org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76) 25 org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298) 26 org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300) 27 org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300) 28 org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230) 29 org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153) 30 org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130) 31 org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285) 32 org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223) 33 org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630) 34 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461) 35 org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:652) 36 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:600) 37 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:666) 38 org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:519) 39 org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:460) 40 org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136) 41 javax.servlet.GenericServlet.init(GenericServlet.java:158) 42 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) 43 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 44 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) 45 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) 46 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) 47 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) 48 org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466) 49 org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455) 50 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 51 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 52 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 53 java.lang.Thread.run(Thread.java:745)
解决办法:
一:把jdk版本换成1.7 or 1.7以下
二:使用spring 4.0RELEASE及以上版本
相关推荐
Kafka 2020-09-18
Wepe0 2020-10-30
杜倩 2020-10-29
windle 2020-10-29
minerd 2020-10-28
mengzuchao 2020-10-22
Junzizhiai 2020-10-10
bxqybxqy 2020-09-30
风之沙城 2020-09-24
kingszelda 2020-09-22
大唐帝国前营 2020-08-18
yixu0 2020-08-17
TangCuYu 2020-08-15
xiaoboliu00 2020-08-15
songshijiazuaa 2020-08-15
xclxcl 2020-08-03
zmzmmf 2020-08-03
newfarhui 2020-08-03
likesyour 2020-08-01