您好,现在错误页面信息为“数据服务器出现错误”,根据小白手册1.8下的解决方法,仍然无法处理,请问应该如何处理?
根号申 发表于2020-05-26 09:01
java.lang.NullPointerException
at com.mingrisoft.News.ListNewsFront(News.java:17)
at org.apache.jsp.front.newsFrontList_jsp._jspService(newsFrontList_jsp.java:187)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
根号申 发表于2020-05-27 11:14
没有连接上数据库,你的异常日志不全,无法分析为什么连接不上,你慢慢检查吧
刚刚重新安装了MYSQL8.0,数据库显示连接上,但是还是只有刚刚那些异常日志哦!需要怎么检查和处理?
java.lang.NullPointerException
at com.mingrisoft.News.ListNewsFront(News.java:17)
at org.apache.jsp.front.newsFrontList_jsp._jspService(newsFrontList_jsp.java:187)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
根号申 发表于2020-05-27 11:14
没有连接上数据库,你的异常日志不全,无法分析为什么连接不上,你慢慢检查吧
今天还是这样连接不到,请问老师怎么解决?
五月 28, 2020 5:00:28 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_75\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;E:/软件/eclipse/jre/bin/client;E:/软件/eclipse/jre/bin;E:/软件/eclipse/jre/lib/i386;"C:\Program Files\Java\jdk1.7.0_75\bin;C:\Program Files\Java\jdk1.7.0_75\jre\bin;";C:\Program Files\Java\jdk1.7.0_75\bin;C:\Program Files\MySQL\MySQL Server 8.0\MySQL Server 8.0\bin\;;D:\\bin;C:\Users\icd\AppData\Local\Microsoft\WindowsApps;C:\Users\icd\AppData\Local\Temp\Rar$EXa2412.4519\SZOA\jre16sw\bin;C:\Users\icd\AppData\Local\Temp\Rar$EXa2412.9671\SZOA\jre16sw\bin;C:\Users\icd\Desktop\SZOA\jre16sw\bin;C:\Users\icd\Desktop\SZOA2012Questionnaire\SZOA\jre16sw\bin;C:\Program Files\Java\jdk1.7.0_75\bin;C:\Program Files\Java\jdk1.7.0_75\jre\bin;C:\Program Files\Java\jdk1.8.0_131\bin\;;E:\软件\eclipse;;.
五月 28, 2020 5:00:28 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:myweb' did not find a matching property.
五月 28, 2020 5:00:28 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
五月 28, 2020 5:00:28 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
五月 28, 2020 5:00:28 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1127 ms
五月 28, 2020 5:00:28 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
五月 28, 2020 5:00:28 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.47
五月 28, 2020 5:00:30 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [1,377] milliseconds.
五月 28, 2020 5:00:30 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\新建文件夹 (4)\webapps\docs
五月 28, 2020 5:00:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\新建文件夹 (4)\webapps\examples
五月 28, 2020 5:00:31 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
五月 28, 2020 5:00:31 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
五月 28, 2020 5:00:31 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@600f2cb8')
五月 28, 2020 5:00:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\新建文件夹 (4)\webapps\host-manager
五月 28, 2020 5:00:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\新建文件夹 (4)\webapps\manager
五月 28, 2020 5:00:31 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\新建文件夹 (4)\webapps\ROOT
五月 28, 2020 5:00:32 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
五月 28, 2020 5:00:32 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
五月 28, 2020 5:00:32 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3409 ms
java.lang.NullPointerException
at com.mingrisoft.News.ListNewsFront(News.java:17)
at org.apache.jsp.front.newsFrontList_jsp._jspService(newsFrontList_jsp.java:187)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
这个项目用的是MySQL 5.7,不兼容8.0,再装个5.7版本的
https://zyk.mingrisoft.com/Develop/view/id/1910/type/6/cid/1.html
根号申 发表于2020-06-01 13:38
这个项目用的是MySQL 5.7,不兼容8.0,再装个5.7版本的
https://zyk.mingrisoft.com/Develop/view/id/1910/type/6/cid/1.html