页面500错误
澳门博彩导航网址
澳门博彩导航网址
当前位置 : 澳门博彩导航网址 > 澳门博彩导航

页面500错误

HTTP Status 500 - Servlet.init for servlet springmvc threw exception

type Exception report

message Servlet.init for servlet springmvc threw exception

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init for servlet springmvc threw exception
    org.apache.catalina.authenticator.AuthenticatorBase.invokeAuthenticatorBase.java:505
    org.apache.catalina.valves.ErrorReportValve.invokeErrorReportValve.java:103
    org.apache.catalina.valves.AccessLogValve.invokeAccessLogValve.java:957
    org.apache.catalina.connector.CoyoteAdapter.serviceCoyoteAdapter.java:423
    org.apache.coyote.http11.AbstractHttp11Processor.processAbstractHttp11Processor.java:1079
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.processAbstractProtocol.java:620
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.runJIoEndpoint.java:318
    java.util.concurrent.ThreadPoolExecutor.runWorkerThreadPoolExecutor.java:1145
    java.util.concurrent.ThreadPoolExecutor$Worker.runThreadPoolExecutor.java:615
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.runTaskThread.java:61
    java.lang.Thread.runThread.java:745

root cause

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [/usr/local/tomcat/apache-tomcat-7.0.62/webapps/JFCX_old/WEB-INF/classes/com/caibai/search/MySQLUserDao.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isnt supported yet: file [/usr/local/tomcat/apache-tomcat-7.0.62/webapps/JFCX_old/WEB-INF/classes/com/caibai/search/MySQLUserDao.class]; nested exception is java.lang.IllegalArgumentException
    org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponentsClassPathScanningCandidateComponentProvider.java:290
    org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScanClassPathBeanDefinitionScanner.java:242
    org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parseComponentScanBeanDefinitionParser.java:84
    org.springframework.beans.factory.xml.NamespaceHandlerSupport.parseNamespaceHandlerSupport.java:73
    org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElementBeanDefinitionParserDelegate.java:1438
    org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElementBeanDefinitionParserDelegate.java:1428
    org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitionsDefaultBeanDefinitionDocumentReader.java:195
    org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitionsDefaultBeanDefinitionDocumentReader.java:139
    org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitionsDefaultBeanDefinitionDocumentReader.java:108
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitionsXmlBeanDefinitionReader.java:493
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitionsXmlBeanDefinitionReader.java:390
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitionsXmlBeanDefinitionReader.java:334
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitionsXmlBeanDefinitionReader.java:302
    org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsAbstractBeanDefinitionReader.java:174
    org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsAbstractBeanDefinitionReader.java:209
    org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsAbstractBeanDefinitionReader.java:180
    org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitionsXmlWebApplicationContext.java:125
    org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitionsXmlWebApplicationContext.java:94
    org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactoryAbstractRefreshableApplicationContext.java:130
    org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactoryAbstractApplicationContext.java:537
    org.springframework.context.support.AbstractApplicationContext.refreshAbstractApplicationContext.java:451
    org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContextFrameworkServlet.java:651
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContextFrameworkServlet.java:602
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContextFrameworkServlet.java:665
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContextFrameworkServlet.java:521
    org.springframework.web.servlet.FrameworkServlet.initServletBeanFrameworkServlet.java:462
    org.springframework.web.servlet.HttpServletBean.initHttpServletBean.java:136
    javax.servlet.GenericServlet.initGenericServlet.java:158
    org.apache.catalina.authenticator.AuthenticatorBase.invokeAuthenticatorBase.java:505
    org.apache.catalina.valves.ErrorReportValve.invokeErrorReportValve.java:103
    org.apache.catalina.valves.AccessLogValve.invokeAccessLogValve.java:957
    org.apache.catalina.connector.CoyoteAdapter.serviceCoyoteAdapter.java:423
    org.apache.coyote.http11.AbstractHttp11Processor.processAbstractHttp11Processor.java:1079
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.processAbstractProtocol.java:620
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.runJIoEndpoint.java:318
    java.util.concurrent.ThreadPoolExecutor.runWorkerThreadPoolExecutor.java:1145
    java.util.concurrent.ThreadPoolExecutor$Worker.runThreadPoolExecutor.java:615
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.runTaskThread.java:61
    java.lang.Thread.runThread.java:745

root cause

org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isnt supported yet: file [/usr/local/tomcat/apache-tomcat-7.0.62/webapps/JFCX_old/WEB-INF/classes/com/caibai/search/MySQLUserDao.class]; nested exception is java.lang.IllegalArgumentException
    org.springframework.core.type.classreading.SimpleMetadataReader.<init>SimpleMetadataReader.java:56
    org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReaderSimpleMetadataReaderFactory.java:80
    org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReaderCachingMetadataReaderFactory.java:102
    org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponentsClassPathScanningCandidateComponentProvider.java:266
    org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScanClassPathBeanDefinitionScanner.java:242
    org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parseComponentScanBeanDefinitionParser.java:84
    org.springframework.beans.factory.xml.NamespaceHandlerSupport.parseNamespaceHandlerSupport.java:73
    org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElementBeanDefinitionParserDelegate.java:1438
    org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElementBeanDefinitionParserDelegate.java:1428
    org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitionsDefaultBeanDefinitionDocumentReader.java:195
    org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitionsDefaultBeanDefinitionDocumentReader.java:139
    org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitionsDefaultBeanDefinitionDocumentReader.java:108
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitionsXmlBeanDefinitionReader.java:493
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitionsXmlBeanDefinitionReader.java:390
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitionsXmlBeanDefinitionReader.java:334
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitionsXmlBeanDefinitionReader.java:302
    org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsAbstractBeanDefinitionReader.java:174
    org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsAbstractBeanDefinitionReader.java:209
    org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsAbstractBeanDefinitionReader.java:180
    org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitionsXmlWebApplicationContext.java:125
    org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitionsXmlWebApplicationContext.java:94
    org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactoryAbstractRefreshableApplicationContext.java:130
    org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactoryAbstractApplicationContext.java:537
    org.springframework.context.support.AbstractApplicationContext.refreshAbstractApplicationContext.java:451
    org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContextFrameworkServlet.java:651
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContextFrameworkServlet.java:602
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContextFrameworkServlet.java:665
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContextFrameworkServlet.java:521
    org.springframework.web.servlet.FrameworkServlet.initServletBeanFrameworkServlet.java:462
    org.springframework.web.servlet.HttpServletBean.initHttpServletBean.java:136
    javax.servlet.GenericServlet.initGenericServlet.java:158
    org.apache.catalina.authenticator.AuthenticatorBase.invokeAuthenticatorBase.java:505
    org.apache.catalina.valves.ErrorReportValve.invokeErrorReportValve.java:103
    org.apache.catalina.valves.AccessLogValve.invokeAccessLogValve.java:957
    org.apache.catalina.connector.CoyoteAdapter.serviceCoyoteAdapter.java:423
    org.apache.coyote.http11.AbstractHttp11Processor.processAbstractHttp11Processor.java:1079
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.processAbstractProtocol.java:620
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.runJIoEndpoint.java:318
    java.util.concurrent.ThreadPoolExecutor.runWorkerThreadPoolExecutor.java:1145
    java.util.concurrent.ThreadPoolExecutor$Worker.runThreadPoolExecutor.java:615
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.runTaskThread.java:61
    java.lang.Thread.runThread.java:745

root cause

java.lang.IllegalArgumentException
    org.springframework.asm.ClassReader.<init>Unknown Source
    org.springframework.asm.ClassReader.<init>Unknown Source
    org.springframework.asm.ClassReader.<init>Unknown Source
    org.springframework.core.type.classreading.SimpleMetadataReader.<init>SimpleMetadataReader.java:53
    org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReaderSimpleMetadataReaderFactory.java:80
    org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReaderCachingMetadataReaderFactory.java:102
    org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponentsClassPathScanningCandidateComponentProvider.java:266
    org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScanClassPathBeanDefinitionScanner.java:242
    org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parseComponentScanBeanDefinitionParser.java:84
    org.springframework.beans.factory.xml.NamespaceHandlerSupport.parseNamespaceHandlerSupport.java:73
    org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElementBeanDefinitionParserDelegate.java:1438
    org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElementBeanDefinitionParserDelegate.java:1428
    org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitionsDefaultBeanDefinitionDocumentReader.java:195
    org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitionsDefaultBeanDefinitionDocumentReader.java:139
    org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitionsDefaultBeanDefinitionDocumentReader.java:108
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitionsXmlBeanDefinitionReader.java:493
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitionsXmlBeanDefinitionReader.java:390
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitionsXmlBeanDefinitionReader.java:334
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitionsXmlBeanDefinitionReader.java:302
    org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsAbstractBeanDefinitionReader.java:174
    org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsAbstractBeanDefinitionReader.java:209
    org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitionsAbstractBeanDefinitionReader.java:180
    org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitionsXmlWebApplicationContext.java:125
    org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitionsXmlWebApplicationContext.java:94
    org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactoryAbstractRefreshableApplicationContext.java:130
    org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactoryAbstractApplicationContext.java:537
    org.springframework.context.support.AbstractApplicationContext.refreshAbstractApplicationContext.java:451
    org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContextFrameworkServlet.java:651
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContextFrameworkServlet.java:602
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContextFrameworkServlet.java:665
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContextFrameworkServlet.java:521
    org.springframework.web.servlet.FrameworkServlet.initServletBeanFrameworkServlet.java:462
    org.springframework.web.servlet.HttpServletBean.initHttpServletBean.java:136
    javax.servlet.GenericServlet.initGenericServlet.java:158
    org.apache.catalina.authenticator.AuthenticatorBase.invokeAuthenticatorBase.java:505
    org.apache.catalina.valves.ErrorReportValve.invokeErrorReportValve.java:103
    org.apache.catalina.valves.AccessLogValve.invokeAccessLogValve.java:957
    org.apache.catalina.connector.CoyoteAdapter.serviceCoyoteAdapter.java:423
    org.apache.coyote.http11.AbstractHttp11Processor.processAbstractHttp11Processor.java:1079
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.processAbstractProtocol.java:620
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.runJIoEndpoint.java:318
    java.util.concurrent.ThreadPoolExecutor.runWorkerThreadPoolExecutor.java:1145
    java.util.concurrent.ThreadPoolExecutor$Worker.runThreadPoolExecutor.java:615
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.runTaskThread.java:61
    java.lang.Thread.runThread.java:745

大神们报500的错误,求谁能给解答一下大概是因为什么啊,如果需要我会贴出代码

看这句

Failed to read candidate component class: file [/usr/local/tomcat/apache-tomcat-7.0.62/webapps/JFCX_old/WEB-INF/classes/com/caibai/search/MySQLUserDao.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isnt supported yet: file [/usr/local/tomcat/apache-tomcat-7.0.62/webapps/JFCX_old/WEB-INF/classes/com/caibai/search/MySQLUserDao.class]; nested exception is java.lang.IllegalArgumentException

然后你百度一下就知道原因了, 因为spring版本过久不支持jdk8,所以俩方法。

  1. 使用jdk7

  2. 使用spring4

附中英文来源

stackoverflow 英文解答
csdn 中文博客

5xx是服务器错误,另外,从你给出的报错信息只能看出是Servlet初始化错误。

栏目列表

最新文章

广告位

澳门博彩导航网址