关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、418799587 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 9003|回复: 3

[代码生成器] 代码生成选择table风格,pageAreatextColumns未定义报错

[复制链接]
发表于 2018-4-19 15:13:11 | 显示全部楼层 |阅读模式
本帖最后由 偶尔 于 2018-4-19 15:19 编辑
  1. [2018-04-19 15:04:48] [INFO] [org.jeecgframework.codegenerate.generate.CgformCodeGenerate:249] ----jeecg---Code----Generation----[单表模型:venue]------- 生成中。。。
  2. [2018-04-19 15:04:48] [INFO] [org.jeecgframework.codegenerate.generate.CgformCodeGenerate:260] ----jeecg------path----[table/single]-------
  3. [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."

  4. Expression pageAreatextColumns is undefined on line 422, column 40 in table/single/cgform_jspTemplate_add.ftl.
  5. The problematic instruction:
  6. ----------
  7. ==> list pageAreatextColumns as po [on line 422, column 33 in table/single/cgform_jspTemplate_add.ftl]
  8. ----------

  9. Java backtrace for programmers:
  10. ----------
  11. freemarker.core.InvalidReferenceException: Expression pageAreatextColumns is undefined on line 422, column 40 in table/single/cgform_jspTemplate_add.ftl.
  12.         at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
  13.         at freemarker.core.IteratorBlock.accept(IteratorBlock.java:100)
  14.         at freemarker.core.Environment.visit(Environment.java:221)
  15.         at freemarker.core.MixedContent.accept(MixedContent.java:92)
  16.         at freemarker.core.Environment.visit(Environment.java:221)
  17.         at freemarker.core.Environment.process(Environment.java:199)
  18.         at freemarker.template.Template.process(Template.java:259)
  19.         at org.jeecgframework.codegenerate.generate.CgformCodeFactory.generateFileUserDefined(CgformCodeFactory.java:87)
  20.         at org.jeecgframework.codegenerate.generate.CgformCodeFactory.invokeUserDefined(CgformCodeFactory.java:158)
  21.         at org.jeecgframework.codegenerate.generate.CgformCodeGenerate.generateToFileUserDefined(CgformCodeGenerate.java:265)
  22.         at org.jeecgframework.web.cgform.controller.generate.GenerateController.dogenerate(GenerateController.java:192)
  23.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  24.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  25.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  26.         at java.lang.reflect.Method.invoke(Method.java:606)
  27.         at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
  28.         at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
  29.         at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
  30.         at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:747)
  31.         at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:676)
  32.         at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
  33.         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)
  34.         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)
  35.         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
  36.         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)
  37.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
  38.         at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
  39.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  40.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  41.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  42.         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  43.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  44.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  45.         at org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:93)
  46.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  47.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  48.         at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)
  49.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  50.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  51.         at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  52.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  53.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  54.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  55.         at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  56.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  57.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  58.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  59.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
  60.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
  61.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
  62.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  63.         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
  64.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  65.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
  66.         at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
  67.         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
  68.         at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2555)
  69.         at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2544)
  70.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  71.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  72.         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  73.         at java.lang.Thread.run(Thread.java:745)

  74. Expression pageAreatextColumns is undefined on line 422, column 40 in table/single/cgform_jspTemplate_add.ftl.
复制代码
在生成代码的时候 报错,只有选页面风格是div模式才不报错,这是什么原因呢。

功能测试正常

功能测试正常

代码生成时候的选项

代码生成时候的选项
TIM截图20180419151902.png
发表于 2018-4-19 17:29:43 | 显示全部楼层
发帖,请说明你的jeecg版本号
另外你这个问题,是默认模板出的问题?还是自己改过什么
 楼主| 发表于 2018-4-20 15:34:32 | 显示全部楼层
admin 发表于 2018-4-19 17:29
发帖,请说明你的jeecg版本号
另外你这个问题,是默认模板出的问题?还是自己改过什么 ...

你好,最新的3.7.2,是默认的模板,没有修改过什么
发表于 2018-4-20 15:44:39 | 显示全部楼层
用3.7.3试试,不清楚你的问题啊
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表