安装了springjdbc和spring_rest,生成代码时提示。
Expression table.idColumn is undefined on line 6, column 23 in
java_src\${basepackage_dir}\controller\${className}Controller.java.
The problematic instruction:
----------
==> assignment: pkJavaType=table.idColumn.javaType [on line 6, column 1 in
java_src\${basepackage_dir}\controller\${className}Controller.java]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression table.idColumn is
undefined on line 6, column 23 in
java_src\${basepackage_dir}\controller\${className}Controller.java.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Assignment.accept(Assignment.java:90)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at
cn.org.rapid_framework.generator.Generator.saveNewOutputFileContent(Generator.ja
va:220)
at
cn.org.rapid_framework.generator.Generator.generateNewFileOrInsertIntoFile(Gener
ator.java:157)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:116)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:77)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByTable(GeneratorFacade
.java:44)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByAllTable(GeneratorFac
ade.java:37)
at cn.org.rapid_framework.generator.GeneratorMain.main(GeneratorMain.java:21)
Exception in thread "main" java.lang.RuntimeException: generate 'Database
Table:t_system_user_role to ClassName:TsystemUserRole' oucur error,template
is:java_src\${basepackage_dir}\controller\${className}Controller.java
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:118)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:77)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByTable(GeneratorFacade
.java:44)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByAllTable(GeneratorFac
ade.java:37)
at cn.org.rapid_framework.generator.GeneratorMain.main(GeneratorMain.java:21)
Caused by: freemarker.core.InvalidReferenceException: Expression
table.idColumn is undefined on line 6, column 23 in
java_src\${basepackage_dir}\controller\${className}Controller.java.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Assignment.accept(Assignment.java:90)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at
cn.org.rapid_framework.generator.Generator.saveNewOutputFileContent(Generator.ja
va:220)
at
cn.org.rapid_framework.generator.Generator.generateNewFileOrInsertIntoFile(Gener
ator.java:157)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:116)
... 4 more
而且代码中很多地方都发生了错误。
Original issue reported on code.google.com by superxielei@gmail.com on 18 Nov 2009 at 10:10
Original issue reported on code.google.com by
superxielei@gmail.com
on 18 Nov 2009 at 10:10