老师这个是什么错哦
==========> Parameters: 12103(Integer) [http-nio-8080-exec-3] 15:25:26.814 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.814 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <======== Total: 3 [http-nio-8080-exec-3] 15:25:26.815 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.817 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Parameters: 12200(Integer) [http-nio-8080-exec-3] 15:25:26.820 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.820 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 12201(Integer) [http-nio-8080-exec-3] 15:25:26.841 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.841 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <======== Total: 1 [http-nio-8080-exec-3] 15:25:26.842 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.842 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Parameters: 12300(Integer) [http-nio-8080-exec-3] 15:25:26.845 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.847 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 12301(Integer) [http-nio-8080-exec-3] 15:25:26.849 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.850 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.850 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 12302(Integer) [http-nio-8080-exec-3] 15:25:26.852 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.853 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.853 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 12303(Integer) [http-nio-8080-exec-3] 15:25:26.854 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.855 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <======== Total: 3 [http-nio-8080-exec-3] 15:25:26.855 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <====== Total: 3 [http-nio-8080-exec-3] 15:25:26.856 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ======> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.856 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ======> Parameters: 13000(Integer) [http-nio-8080-exec-3] 15:25:26.858 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.858 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Parameters: 13100(Integer) [http-nio-8080-exec-3] 15:25:26.862 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.863 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 13101(Integer) [http-nio-8080-exec-3] 15:25:26.864 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.865 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.865 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 13102(Integer) [http-nio-8080-exec-3] 15:25:26.866 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.867 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.867 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 13103(Integer) [http-nio-8080-exec-3] 15:25:26.869 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.869 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.870 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 13104(Integer) [http-nio-8080-exec-3] 15:25:26.871 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.871 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <======== Total: 4 [http-nio-8080-exec-3] 15:25:26.872 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.873 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Parameters: 13200(Integer) [http-nio-8080-exec-3] 15:25:26.879 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.880 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 13201(Integer) [http-nio-8080-exec-3] 15:25:26.882 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.882 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.882 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 13202(Integer) [http-nio-8080-exec-3] 15:25:26.883 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.884 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <======== Total: 2 [http-nio-8080-exec-3] 15:25:26.884 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <====== Total: 2 [http-nio-8080-exec-3] 15:25:26.884 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ======> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.885 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ======> Parameters: 14000(Integer) [http-nio-8080-exec-3] 15:25:26.887 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.888 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Parameters: 14100(Integer) [http-nio-8080-exec-3] 15:25:26.889 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.889 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 14101(Integer) [http-nio-8080-exec-3] 15:25:26.890 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.891 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.891 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 14102(Integer) [http-nio-8080-exec-3] 15:25:26.893 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.896 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.897 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 14103(Integer) [http-nio-8080-exec-3] 15:25:26.898 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.898 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <======== Total: 3 [http-nio-8080-exec-3] 15:25:26.899 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.899 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ========> Parameters: 14200(Integer) [http-nio-8080-exec-3] 15:25:26.901 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.902 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 14201(Integer) [http-nio-8080-exec-3] 15:25:26.904 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.905 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Preparing: select * from catalog where pid = ? [http-nio-8080-exec-3] 15:25:26.905 DEBUG c.z.icake.dao.CatalogDao.selectByPid - ==========> Parameters: 14202(Integer) [http-nio-8080-exec-3] 15:25:26.907 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <========== Total: 0 [http-nio-8080-exec-3] 15:25:26.907 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <======== Total: 2 [http-nio-8080-exec-3] 15:25:26.907 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <====== Total: 2 [http-nio-8080-exec-3] 15:25:26.907 DEBUG c.z.icake.dao.CatalogDao.selectByPid - <==== Total: 4 [http-nio-8080-exec-3] 15:25:26.907 DEBUG com.zy.icake.dao.CatalogDao.select - <== Total: 1 [http-nio-8080-exec-7] 15:25:29.502 DEBUG SQL_CACHE - Cache Hit Ratio [SQL_CACHE]: 0.0 [http-nio-8080-exec-7] 15:25:29.595 DEBUG o.a.i.t.jdbc.JdbcTransaction - Opening JDBC Connection [http-nio-8080-exec-7] 15:25:29.612 DEBUG o.a.i.d.pooled.PooledDataSource - Created connection 1971398459. [http-nio-8080-exec-7] 15:25:29.612 DEBUG c.z.i.dao.CakeDao.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM cake c LEFT JOIN catalog ca ON c.cid = ca.id [http-nio-8080-exec-7] 15:25:29.612 DEBUG c.z.i.dao.CakeDao.selectAll_COUNT - ==> Parameters: [http-nio-8080-exec-7] 15:25:29.618 DEBUG c.z.i.dao.CakeDao.selectAll_COUNT - <== Total: 1 Fri Dec 06 15:25:29 CST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. [http-nio-8080-exec-7] 15:25:29.621 DEBUG com.zy.icake.dao.CakeDao.selectAll - ==> Preparing: select c.*,ca.title ctitle from cake c left join catalog ca on c.cid=ca.id order by id desc LIMIT ? [http-nio-8080-exec-7] 15:25:29.621 DEBUG com.zy.icake.dao.CakeDao.selectAll - ==> Parameters: 20(Integer) [http-nio-8080-exec-7] 15:25:29.637 DEBUG com.zy.icake.dao.CakeDao.selectAll - <== Total: 20 为什么没有跳转 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.zy.icake.global.GlobalController.service(GlobalController.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.zy.icake.global.EncodingFilter.doFilter(EncodingFilter.java:23) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:810) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.jasper.JasperException: /WEB-INF/pages/admin/cake_list.jsp (行.: [90], 列: [0]) Unterminated [<c:forEach] tag at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:291) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:97) at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1696) at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1016) at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1291) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1470) at org.apache.jasper.compiler.Parser.parse(Parser.java:144) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:105) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:202) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:373) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:350) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:595) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316) at com.zy.icake.controller.CakeController.list(CakeController.java:29) ... 30 more
package com.zy.icake.controller; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.zy.icake.biz.CakeBiz; import com.zy.icake.biz.Impl.CakeBizImpl; import com.zy.icake.entity.Cake; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.List; public class CakeController { private CakeBiz cakeBiz = new CakeBizImpl(); // /admin/Cake/list.do public void list(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String pageNum = request.getParameter("pageNum"); if (pageNum == null) { pageNum = "1"; } PageHelper.startPage(Integer.parseInt(pageNum), 20); List<Cake> list = cakeBiz.getAll(); PageInfo pageInfo = PageInfo.of(list); request.setAttribute("pageInfo", pageInfo); System.out.println("为什么没有跳转"); request.getRequestDispatcher("/WEB-INF/pages/admin/cake_list.jsp").forward(request,response); } // /admin/Cake/toAdd.do // /admin/Cake/add.do // /admin/Cake/toEdit.do // /admin/Cake/edit.do // /admin/Cake/remove.do // /admin/Cake/detail.do }
8
收起
正在回答
2回答
同学你好!
1. 有用的报错信息一般都是在Caused by:后面,如果没有Caused by,通常报错的地方的日志和其它地方是不一样的,你可以根据报错的信息来推理是什么原因。
2.遇到的错误多了,解决错误的能力就会提升,所以同学遇到错误不要害怕,仔细看看报错信息在说什么,然后去解决。加油!
祝学习愉快~
3. Java 数据库开发与实战应用
- 参与学习 人
- 提交作业 357 份
- 解答问题 8016 个
本阶段将带你学习MySQL数据库,JDBC接口,MyBatis框架等,带你掌握的数据的存放和管理。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星