Action中报错,未报出具体出错位置及出错原因

LogFactory 用的是 org.slf4j.LoggerFactory

下面是出错的日志信息:

JFinal action report -------- 2017-07-20 15:18:42 ------------------------------
Controller  : com.g.admin.cms.controller.InvoiceInfoController.(InvoiceInfoController.java:1)
Method      : save
Interceptor : com.jfinal.plugin.activerecord.tx.TxByRegex.(TxByRegex.java:1)
              com.jfinal.plugin.activerecord.tx.TxByRegex.(TxByRegex.java:1)
              com.jfinal.plugin.activerecord.tx.TxByRegex.(TxByRegex.java:1)
Parameter   : invoiceInfo.user_name=王旭林  invoiceInfo.user_account=18611160027  invoiceInfo.order_number=C2017072011405895764  sso_userid=7b908b64462a42b28a1bd341a1c65c8c  userid=246266  address.addressee=x  address.address=x  address.phone=18611160027  invoiceInfo.course_name=职教英语教学行动研究设计与访谈运用  invoiceInfo.expenses=0.01  invoiceInfo.payment=alipay  invoiceInfo.invoice_title=x  invoiceInfo.unified_social_credit_identifier=  invoiceInfo.unified_social_credit_address=  invoiceInfo.unified_social_credit_phone=  invoiceInfo.unified_social_credit_bank=  invoiceInfo.unified_social_credit_bank_account=  invoiceInfo.invoice_content=培训费(线上研修数字课程)
--------------------------------------------------------------------------------
Sql: select * from invoice_info where order_number = ?
15:18:42.288 [http-bio-8080-exec-3] ERROR c.g.a.c.c.InvoiceInfoController - null
15:18:42.302 [http-bio-8080-exec-3] ERROR c.j.c.ActionHandler - /admin/invoiceInfo/save
com.jfinal.render.RenderException: java.io.FileNotFoundException: Template "/WEB-INF/pages/admin/invoiceInfo/save.html" not found.
        at com.jfinal.render.FreeMarkerRender.render(FreeMarkerRender.java:130) ~[jfinal-2.0-bin-with-src.jar:na]
        at com.jfinal.core.ActionHandler.handle(ActionHandler.java:93) ~[jfinal-2.0-bin-with-src.jar:na]
        at com.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:75) [jfinal-2.0-bin-with-src.jar:na]
        at com.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47) [jfinal-2.0-bin-with-src.jar:na]
        at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72) [jfinal-2.0-bin-with-src.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.68]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.68]
        at org.jasig.cas.client.util.AssertionThreadLocalFilter.doFilter(AssertionThreadLocalFilter.java:54) [cas-client-core-3.2.1.jar:3.2.1]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.68]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.68]
        at org.jasig.cas.client.util.HttpServletRequestWrapperFilter.doFilter(HttpServletRequestWrapperFilter.java:75) [cas-client-core-3.2.1.jar:3.2.1]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.68]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.68]
        at org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:107) [cas-client-core-3.2.1.jar:3.2.1]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.68]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.68]
        at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:201) [cas-client-core-3.2.1.jar:3.2.1]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.68]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.68]
        at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76) [cas-client-core-3.2.1.jar:3.2.1]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.68]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.68]
        at com.g.admin.cms.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:48) [classes/:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.68]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.68]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [catalina.jar:7.0.68]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [catalina.jar:7.0.68]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [catalina.jar:7.0.68]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) [catalina.jar:7.0.68]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [catalina.jar:7.0.68]
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) [catalina.jar:7.0.68]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [catalina.jar:7.0.68]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) [catalina.jar:7.0.68]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) [tomcat-coyote.jar:7.0.68]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) [tomcat-coyote.jar:7.0.68]
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) [tomcat-coyote.jar:7.0.68]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-coyote.jar:7.0.68]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Caused by: java.io.FileNotFoundException: Template "/WEB-INF/pages/admin/invoiceInfo/save.html" not found.
        at freemarker.template.Configuration.getTemplate(Configuration.java:742) ~[freemarker-2.3.20.jar:2.3.20]
        at freemarker.template.Configuration.getTemplate(Configuration.java:665) ~[freemarker-2.3.20.jar:2.3.20]
        at com.jfinal.render.FreeMarkerRender.render(FreeMarkerRender.java:126) ~[jfinal-2.0-bin-with-src.jar:na]
        ... 39 common frames omitted

有哪位大神可以教我一下怎么配置,让日志信息更详细一些。找到出错的具体原因是什么。

再次深深感谢!

评论区

JFinal

2017-07-20 16:34

模板文件未找到而已:
Caused by: java.io.FileNotFoundException: Template "/WEB-INF/pages/admin/invoiceInfo/save.html" not found.

检查一下路径与文件名,大小写要一字不差

JFinal

2017-07-20 16:34

解决问题,关键是读懂异常的 Caused by 这一部分,这一部分才是错误的核心所在

ThreeX

2017-07-23 16:28

解决问题,关键是要认真的阅读异常,不能一目十行,很多问题自能理解。

fphonor

2017-08-08 18:07

@JFinal 谢谢 @ThreeX 谢谢

热门反馈

扫码入社