本帖最后由 偶尔 于 2018-4-19 15:19 编辑
- [2018-04-19 15:04:48] [INFO] [org.jeecgframework.codegenerate.generate.CgformCodeGenerate:249] ----jeecg---Code----Generation----[单表模型:venue]------- 生成中。。。
- [2018-04-19 15:04:48] [INFO] [org.jeecgframework.codegenerate.generate.CgformCodeGenerate:260] ----jeecg------path----[table/single]-------
- [2018-04-19 15:04:48] [ERROR] [freemarker.runtime:96] Template processing error: "Expression pageAreatextColumns is undefined on line 422, column 40 in table/single/cgform_jspTemplate_add.ftl."
- Expression pageAreatextColumns is undefined on line 422, column 40 in table/single/cgform_jspTemplate_add.ftl.
- The problematic instruction:
- ----------
- ==> list pageAreatextColumns as po [on line 422, column 33 in table/single/cgform_jspTemplate_add.ftl]
- ----------
- Java backtrace for programmers:
- ----------
- freemarker.core.InvalidReferenceException: Expression pageAreatextColumns is undefined on line 422, column 40 in table/single/cgform_jspTemplate_add.ftl.
- at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
- at freemarker.core.IteratorBlock.accept(IteratorBlock.java:100)
- at freemarker.core.Environment.visit(Environment.java:221)
- at freemarker.core.MixedContent.accept(MixedContent.java:92)
- at freemarker.core.Environment.visit(Environment.java:221)
- at freemarker.core.Environment.process(Environment.java:199)
- at freemarker.template.Template.process(Template.java:259)
- at org.jeecgframework.codegenerate.generate.CgformCodeFactory.generateFileUserDefined(CgformCodeFactory.java:87)
- at org.jeecgframework.codegenerate.generate.CgformCodeFactory.invokeUserDefined(CgformCodeFactory.java:158)
- at org.jeecgframework.codegenerate.generate.CgformCodeGenerate.generateToFileUserDefined(CgformCodeGenerate.java:265)
- at org.jeecgframework.web.cgform.controller.generate.GenerateController.dogenerate(GenerateController.java:192)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
- at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
- at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
- at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:747)
- at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:676)
- at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
- at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)
- at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)
- at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
- at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
- at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:93)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
- at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
- at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
- 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:219)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
- 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$SocketProcessor.doRun(AprEndpoint.java:2555)
- at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2544)
- 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:745)
- Expression pageAreatextColumns is undefined on line 422, column 40 in table/single/cgform_jspTemplate_add.ftl.
复制代码 在生成代码的时候 报错,只有选页面风格是div模式才不报错,这是什么原因呢。
功能测试正常
代码生成时候的选项
|