开发者社区> 问答> 正文

关于用ueditor图片上传的问题?报错

@JFinal 你好,想跟你请教个问题:

用了百度的ueditor,上传图片它有个范例,要用 getResponse().getWriter().print(result); 这种形式返回。

public void uploadImg() throws Exception {
		Uploader up = new Uploader(getRequest());
		up.setSavePath("upload");
		String[] fileType = { ".gif", ".png", ".jpg", ".jpeg", ".bmp" };
		up.setAllowFiles(fileType);
		up.setMaxSize(10000); // 单位KB
		up.upload();

		String result = "{\"name\":\"" + up.getFileName()
				+ "\", \"originalName\": \"" + up.getOriginalName()
				+ "\", \"size\": " + up.getSize() + ", \"state\": \""
				+ up.getState() + "\", \"type\": \"" + up.getType()
				+ "\", \"url\": \"" + up.getUrl() + "\"}";

		result = result.replaceAll("\\\\", "\\\\");
		getResponse().getWriter().print(result);

	}



代码如上,能上传成功。但是由于最后没有用 render(),控制台会输出错误。 用了render() 之后上传图片成功不了。请问该怎么处理不让它报错。

展开
收起
爱吃鱼的程序员 2020-06-20 19:16:18 522 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    请参看这个ueditor+七牛云的  UeditorController.java

    或者你就用现在的后面加个renderNull();试试

    renderjson就行了,代码如下

    renderJson("{'original':'"+up.getOriginalName()+"','url':'"+up.getUrl()+"','fileType':'"+up.getType()+"','title':'"+up.getTitle()+"','state':'"+up.getState()+"'}");



    回复 @超级大富:谢谢,是用的httl模板的问题。另外我用的umeditor或是setAttr,最后renderjson()

    目测楼主想返回json 数据,使用renderJson(result)就行,或者在本贴子的最后面加上一句renderNull()也可以 

    回复 @JFinal:应该是httlRender写的不完善报的错。能帮忙改下httlRender么,楼下有代码。回复 @vviqq:代码已经writer.wirte(...)过了,值在此时已经返回了,加个renderNull()是为了防止jfinal后续会调用默认render,避免抛出异常用的是httl模板renderNull()就不返回值了,用renderJson()就报错,renderJson是writer=response.getWriter();writer.write(jsonText);writer.flush();这种write.print是ueditor示例里面这样写的

    /***HttlRender.(Integration,Prototype,ThreadSafe)**@authordafei(myaniuATgmailDOTcom)*/publicclassHttlRenderextendsRender{privatestaticfinallongserialVersionUID=-7218493570717379375L;publicHttlRender(Stringview){this.view=view;}@Overridepublicvoidrender(){try{WebEngine.setRequestAndResponse(request,response);WebEngine.getEngine().getTemplate(this.view,request.getLocale()).render(response);}catch(Exceptione){thrownewRenderException(e.getMessage(),e);}}}



    这是httl扩展的render

    ,httl:1.0.11,jvm:1.6.0_10-rc2,os:WindowsVista6.1x86
    java.lang.IllegalStateException:Compilationinprogress
    atcom.sun.tools.javac.api.JavacTool.beginContext(JavacTool.java:148)
    atcom.sun.tools.javac.api.JavacTaskImpl.beginContext(JavacTaskImpl.java:173)
    atcom.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:113)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:185)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:752)
    athttl.ast.AstVisitor.visit(AstVisitor.java:88)
    athttl.ast.AstVisitor.visit(AstVisitor.java:63)
    athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:335)
    athttl.ast.AstVisitor.visit(AstVisitor.java:41)
    athttl.ast.BlockDirective.accept(BlockDirective.java:45)
    athttl.ast.BlockDirective.accept(BlockDirective.java:48)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:497)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:361)
    athttl.web.jfinal.HttlRender.render(HttlRender.java:40)
    atcom.jfinal.core.ActionHandler.handle(ActionHandler.java:92)
    atcom.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:58)
    atcom.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47)
    atcom.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
    atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
    atorg.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
    atorg.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
    atorg.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
    atorg.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
    atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
    atorg.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
    atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    atorg.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
    atorg.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    atorg.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
    atorg.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
    atorg.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    atorg.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
    atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    atorg.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    atorg.eclipse.jetty.server.Server.handle(Server.java:365)
    atorg.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
    atorg.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
    atorg.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
    atorg.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
    atorg.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
    atorg.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    atorg.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
    atorg.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
    atorg.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    atorg.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    atjava.lang.Thread.run(UnknownSource)


    2014-05-0917:02:01
    [ERROR]-[Thread:qtp27196165-37]-[com.jfinal.core.ActionHandler.handle()]:/meeting/index
    com.jfinal.render.RenderException:Failedtocompileclass,cause:Compilationinprogress,class:httl.spi.translators.templates.Template__meeting_index_html_main__WEB_INF_httl_UTF_8_1395650186009_stream,stack:java.lang.IllegalStateException:Compilationinprogress


    java.lang.IllegalStateException:Compilationinprogress
    atcom.sun.tools.javac.api.JavacTool.beginContext(JavacTool.java:148)
    atcom.sun.tools.javac.api.JavacTaskImpl.beginContext(JavacTaskImpl.java:173)
    atcom.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:113)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:185)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:752)
    athttl.ast.AstVisitor.visit(AstVisitor.java:88)
    athttl.ast.AstVisitor.visit(AstVisitor.java:63)
    athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:335)
    athttl.ast.AstVisitor.visit(AstVisitor.java:41)
    athttl.ast.BlockDirective.accept(BlockDirective.java:45)
    athttl.ast.BlockDirective.accept(BlockDirective.java:48)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:497)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:361)
    athttl.web.jfinal.HttlRender.render(HttlRender.java:40)
    atcom.jfinal.core.ActionHandler.handle(ActionHandler.java:92)
    atcom.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:58)
    atcom.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47)
    atcom.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
    atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
    atorg.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
    atorg.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
    atorg.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
    atorg.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
    atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
    atorg.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
    atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    atorg.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
    atorg.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    atorg.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
    atorg.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
    atorg.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    atorg.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
    atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    atorg.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    atorg.eclipse.jetty.server.Server.handle(Server.java:365)
    atorg.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
    atorg.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
    atorg.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
    atorg.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
    atorg.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
    atorg.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    atorg.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
    atorg.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
    atorg.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    atorg.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    atjava.lang.Thread.run(UnknownSource)


    athttl.web.jfinal.HttlRender.render(HttlRender.java:42)
    atcom.jfinal.core.ActionHandler.handle(ActionHandler.java:92)
    atcom.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:58)
    atcom.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47)
    atcom.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
    atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
    atorg.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
    atorg.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
    atorg.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
    atorg.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
    atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
    atorg.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
    atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    atorg.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
    atorg.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    atorg.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
    atorg.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
    atorg.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    atorg.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
    atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    atorg.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    atorg.eclipse.jetty.server.Server.handle(Server.java:365)
    atorg.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
    atorg.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
    atorg.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
    atorg.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
    atorg.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
    atorg.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    atorg.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
    atorg.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
    atorg.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    atorg.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    atjava.lang.Thread.run(UnknownSource)
    Causedby:java.text.ParseException:Failedtocompileclass,cause:Compilationinprogress,class:httl.spi.translators.templates.Template__meeting_index_html_main__WEB_INF_httl_UTF_8_1395650186009_stream,stack:java.lang.IllegalStateException:Compilationinprogress


    java.lang.IllegalStateException:Compilationinprogress
    atcom.sun.tools.javac.api.JavacTool.beginContext(JavacTool.java:148)
    atcom.sun.tools.javac.api.JavacTaskImpl.beginContext(JavacTaskImpl.java:173)
    atcom.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:113)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:185)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:752)
    athttl.ast.AstVisitor.visit(AstVisitor.java:88)
    athttl.ast.AstVisitor.visit(AstVisitor.java:63)
    athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:335)
    athttl.ast.AstVisitor.visit(AstVisitor.java:41)
    athttl.ast.BlockDirective.accept(BlockDirective.java:45)
    athttl.ast.BlockDirective.accept(BlockDirective.java:48)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:497)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:361)
    athttl.web.jfinal.HttlRender.render(HttlRender.java:40)
    atcom.jfinal.core.ActionHandler.handle(ActionHandler.java:92)
    atcom.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:58)
    atcom.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47)
    atcom.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
    atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
    atorg.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
    atorg.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
    atorg.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
    atorg.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
    atorg.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
    atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
    atorg.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
    atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    atorg.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
    atorg.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    atorg.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
    atorg.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
    atorg.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    atorg.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
    atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    atorg.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    atorg.eclipse.jetty.server.Server.handle(Server.java:365)
    atorg.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
    atorg.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
    atorg.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
    atorg.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
    atorg.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
    atorg.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    atorg.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
    atorg.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
    atorg.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    atorg.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    atjava.lang.Thread.run(UnknownSource)


    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:175)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:752)
    athttl.ast.AstVisitor.visit(AstVisitor.java:88)
    athttl.ast.AstVisitor.visit(AstVisitor.java:63)
    athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:335)
    athttl.ast.AstVisitor.visit(AstVisitor.java:41)
    athttl.ast.BlockDirective.accept(BlockDirective.java:45)
    athttl.ast.BlockDirective.accept(BlockDirective.java:48)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:497)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:361)
    athttl.web.jfinal.HttlRender.render(HttlRender.java:40)
    ...35more

    这个貌似是你的httl模版的问题
    2020-06-20 19:16:34
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
23-Vue.js在前端...1506518547.pdf 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载