-
1. Re: Seam Gen template error?
gavin.king Feb 16, 2007 12:12 PM (in response to damianharvey)Please report this in JIRA. And theres nothing pedantic about reporting bugs :-)
-
2. Re: Seam Gen template error?
saeediqbal1 Feb 17, 2007 2:32 PM (in response to damianharvey)Hey Guys while you are at the bug. Can you please report this if its not done already. when running seam generate-entities , i get the following error which refers to the file list.xhtml.ftl line 30 which is
<#if property.value.typeName == "string">
[hibernate] INFO: Hibernate Tools 3.2.0.snapshotb9 Feb 17, 2007 11:27:43 AM org.hibernate.connection.DriverManagerConnectionProvider close INFO: cleaning up connection pool: jdbc:mysql:///test [hibernate] 2. task: generic exportertemplate: view/list.xhtml.ftl [hibernate] Feb 17, 2007 11:27:44 AM freemarker.log.JDK14LoggerFactory$JDK14Logger error [hibernate] SEVERE: [hibernate] Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl. [hibernate] The problematic instruction: [hibernate] ---------- [hibernate] ==> if property.value.typeName == "string" [on line 30, column 1 in view/list.xhtml.ftl] [hibernate] ---------- [hibernate] Java backtrace for programmers: [hibernate] ---------- [hibernate] freemarker.core.InvalidReferenceException: Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl. [hibernate] at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) [hibernate] at freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java:121) [hibernate] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77) [hibernate] at freemarker.core.Environment.visit(Environment.java:196) [hibernate] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [hibernate] at freemarker.core.Environment.visit(Environment.java:196) [hibernate] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) [hibernate] at freemarker.core.Environment.visit(Environment.java:351) [hibernate] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) [hibernate] at freemarker.core.Environment.visit(Environment.java:196) [hibernate] at freemarker.core.MixedContent.accept(MixedContent.java:92) [hibernate] at freemarker.core.Environment.visit(Environment.java:196) [hibernate] at freemarker.core.Environment.process(Environment.java:176) [hibernate] at freemarker.template.Template.process(Template.java:231) [hibernate] at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247) [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67) [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28) [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97) [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:84) [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(GenericExporter.java:73) [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:56) [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:41) [hibernate] at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) [hibernate] at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40) [hibernate] at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:182) [hibernate] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [hibernate] at org.apache.tools.ant.Task.perform(Task.java:364) [hibernate] at org.apache.tools.ant.Target.execute(Target.java:341) [hibernate] at org.apache.tools.ant.Target.performTasks(Target.java:369) [hibernate] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [hibernate] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [hibernate] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [hibernate] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [hibernate] at org.apache.tools.ant.Main.runBuild(Main.java:668) [hibernate] at org.apache.tools.ant.Main.startAnt(Main.java:187) [hibernate] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) [hibernate] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Thanks. Any idea what could be the work-around to this? or maybe i should deploy the project before generating entities ? -
3. Re: Seam Gen template error?
umk Feb 17, 2007 4:13 PM (in response to damianharvey)"saeediqbal1" wrote:
Hey Guys while you are at the bug. Can you please report this if its not done already. when running seam generate-entities , i get the following error which refers to the file list.xhtml.ftl line 30 which is<#if property.value.typeName == "string">
[hibernate] INFO: Hibernate Tools 3.2.0.snapshotb9 Feb 17, 2007 11:27:43 AM org.hibernate.connection.DriverManagerConnectionProvider close INFO: cleaning up connection pool: jdbc:mysql:///test [hibernate] 2. task: generic exportertemplate: view/list.xhtml.ftl [hibernate] Feb 17, 2007 11:27:44 AM freemarker.log.JDK14LoggerFactory$JDK14Logger error [hibernate] SEVERE: [hibernate] Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl. [hibernate] The problematic instruction: [hibernate] ---------- [hibernate] ==> if property.value.typeName == "string" [on line 30, column 1 in view/list.xhtml.ftl] [hibernate] ---------- [hibernate] Java backtrace for programmers: [hibernate] ---------- [hibernate] freemarker.core.InvalidReferenceException: Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl. ...
Thanks. Any idea what could be the work-around to this? or maybe i should deploy the project before generating entities ?
You're not alone. I'm seeing the same error too when running against Oracle or MySQL
Ideas anyone? -
4. Re: Seam Gen template error?
pmuir Feb 17, 2007 6:11 PM (in response to damianharvey)Put it in JIRA :)
-
5. Re: Seam Gen template error?
damianharvey Feb 17, 2007 7:00 PM (in response to damianharvey)I had the same issue but reverting to the templates from CVS and re-applying my changes fixed it. I assumed that there was a difference in the versions there somehow.
-
6. Re: Seam Gen template error?
saeediqbal1 Feb 17, 2007 7:37 PM (in response to damianharvey)i just used eclipses built in cvs rep. to download jboss-seam folder from the "head" section in the repository. is that the one with new template files? or was it the version section?
-
7. Re: Seam Gen template error?
gavin.king Feb 17, 2007 9:39 PM (in response to damianharvey)This was already fixed in CVS.
-
8. Re: Seam Gen template error?
saeediqbal1 Feb 17, 2007 9:44 PM (in response to damianharvey)i concur, this seems to be fixed now in the cvs build i downloaded.