jfinal weixin 接收定位消息的时候异常 1.9版本

com.jfinal.render.RenderException: java.lang.RuntimeException: File not found : /root/softs/tomcat-jrqs/webapps/jrqs/msg/index.html

        at com.jfinal.render.TemplateRender.render(TemplateRender.java:63)

        at com.jfinal.core.ActionHandler.handle(ActionHandler.java:99)

        at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:74)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)

        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)

        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)

        at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2486)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Thread.java:722)

Caused by: java.lang.RuntimeException: File not found : /root/softs/tomcat-jrqs/webapps/jrqs/msg/index.html

        at com.jfinal.template.FileStringSource.getContent(FileStringSource.java:70)

        at com.jfinal.template.Engine.buildTemplateByFileStringSource(Engine.java:147)

        at com.jfinal.template.Engine.getTemplate(Engine.java:133)

        at com.jfinal.render.TemplateRender.render(TemplateRender.java:61)

        ... 19 more


评论区

lyh061619

2017-08-05 20:48

错误信息很明显的呢,看这:File not found : /root/softs/tomcat-jrqs/webapps/jrqs/msg/index.html

JFinal

2017-08-06 11:15

外部向你的应用的路由 "/jrqs/msg" 发起过请求,但该路由所对应的 action 并没有调用 render 方法,或者 render 方法指向的模板路径/文件名不对

有不少情况是因为项目一开始有某个路由,后来删除或修改了路由,但外部客户端并不知道情况

jasonyp

2017-11-11 15:28

@JFinal 同样遇到这个错误jfinal3.2 weixin,自己的Controller继承MsgControllerAdapter,微信后台配置没问题,运行时会遇到和楼主同样的错误,例如公众号菜单跳转到自己网页,中间需要网页鉴权,在网页鉴权之前就抛出了这个运行时异常。

jasonyp

2017-11-11 21:55

@JFinal 已解决,是对应的事件没有做渲染。

热门反馈

扫码入社