我根据小白手册的解决方法还是解决不了。
还有0人有此问题
发表在JavaWeb图书答疑 2020-05-25 《JavaWeb项目开发实战入门》
是否精华
版块置顶:

截图.docx

您好,现在错误页面信息为“数据服务器出现错误”,根据小白手册1.8下的解决方法,仍然无法处理,请问应该如何处理?

2020-05-25 16:55:10编辑
分享到:
精彩评论 7
根号申
学分:4736 LV12
TA的每日心情
2021-07-16 23:48:46
CSA_1591347166
学分:44 LV2
2020-05-27
板凳

根号申 发表于2020-05-26 09:01

https://www.mingrisoft.com/postview/39401.html

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)


根号申
学分:4736 LV12
TA的每日心情
2021-07-16 23:48:46
2020-05-27
地板

没有连接上数据库,你的异常日志不全,无法分析为什么连接不上,你慢慢检查吧

CSA_1591347166
学分:44 LV2
2020-05-27
4L

根号申 发表于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)

image.png

CSA_1591347166
学分:44 LV2
2020-05-28
5L

根号申 发表于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)


根号申
学分:4736 LV12
TA的每日心情
2021-07-16 23:48:46
2020-06-01
6L

这个项目用的是MySQL 5.7,不兼容8.0,再装个5.7版本的

https://zyk.mingrisoft.com/Develop/view/id/1910/type/6/cid/1.html

CSA_1591347166
学分:44 LV2
2020-06-03
7L

根号申 发表于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

好的,我试试,谢谢
首页上一页 1 下一页尾页 7 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照