出现错误的地方在如下代码 @Override protected void processInVoiceMsg(InVoiceMsg inVoiceMsg) { System.out.println("进入语音处理"); OutTextMsg outMsg = new OutTextMsg(inVoiceMsg); outMsg.setContent("语音消息~"); } 日志如下: 接收消息: 2019-02-21 20:39:52 [DEBUG]-[Thread: qtp648680157-18]-[com.jfinal.weixin.sdk.api.ApiConfigKit.getApiConfig()]: appId: wx431f93a5f7614140 1550752492 22201434184384791 JFinal-3.5 action report -------- 2019-02-21 20:39:52 -------------------------- Url : POST /msg Controller : com.jfinal.weixin.demo.WeixinMsgController.(WeixinMsgController.java:1) Method : index Interceptor : com.jfinal.weixin.sdk.jfinal.MsgInterceptor.(MsgInterceptor.java:1) Parameter : signature=b518d61e754333aecbf1ab74d14b899a988c3281 openid=olmT70RboNgiZd38jPRucSRCQN0c nonce=1441658424 timestamp=1550752492 2019-02-21 20:39:52 [ERROR]-[Thread: qtp648680157-18]-[com.jfinal.core.ActionHandler.handle()]: /msg?signature=b518d61e754333aecbf1ab74d14b899a988c3281×tamp=1550752492&nonce=1441658424&openid=olmT70RboNgiZd38jPRucSRCQN0c java.lang.RuntimeException: File not found : D:\tmp\jfinal-weixin\src\main\webapp/msg/index.html at com.jfinal.template.source.FileSource.getContent(FileSource.java:70) at com.jfinal.template.Engine.buildTemplateBySourceFactory(Engine.java:159) at com.jfinal.template.Engine.getTemplate(Engine.java:144) at com.jfinal.render.TemplateRender.render(TemplateRender.java:61) at com.jfinal.core.ActionHandler.handle(ActionHandler.java:106) at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:86) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:503) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) at java.lang.Thread.run(Thread.java:748) 2019-02-21 20:39:52 [ERROR]-[Thread: qtp648680157-18]-[com.jfinal.core.JFinalFilter.doFilter()]: /msg?signature=b518d61e754333aecbf1ab74d14b899a988c3281×tamp=1550752492&nonce=1441658424&openid=olmT70RboNgiZd38jPRucSRCQN0c java.lang.IllegalStateException: STREAM at org.eclipse.jetty.server.Response.getWriter(Response.java:931) at com.jfinal.render.ErrorRender.render(ErrorRender.java:60) at com.jfinal.core.ActionHandler.handle(ActionHandler.java:122) at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:86) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:503) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) at java.lang.Thread.run(Thread.java:748)