lvygit / rapid-framework

Automatically exported from code.google.com/p/rapid-framework
0 stars 0 forks source link

无法使用代码生成器。 #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
安装了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

GoogleCodeExporter commented 9 years ago
这个请查看FAQs

Original comment by bad...@gmail.com on 18 Nov 2009 at 4:00