3 Replies Latest reply on Feb 23, 2007 3:35 AM by Gavin King

    Error while doing: seam generate-entities

    eeckmann Newbie

      [hibernate] 2. task: generic exportertemplate: view/list.xhtml.ftl
      [hibernate] Feb 22, 2007 12:06:17 AM freemarker.log.JDK14LoggerFactory$JDK14Logger error
      [hibernate] SEVERE:

      [hibernate] Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.f
      [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 undefine
      n 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)

        • 1. Re: Error while doing: seam generate-entities
          Gavin King Master

          This was already solved in CVS.

          • 2. Re: Error while doing: seam generate-entities
            eeckmann Newbie

            Thanks. I was able to get further this time. See this:

            [hibernate] 10. task: generic exportertemplate: view/layout/menu.xhtml.ftl
            [javaformatter] Java formatting of 288 files completed. Skipped 0 file(s).
            [echo] Type 'seam restart' and go to http://localhost:8080/MyNewSeamGenProject

            BUILD SUCCESSFUL
            Total time: 51 seconds

            C:\eclipse321\workspace\jboss-seam>seam restart
            Buildfile: C:\eclipse321\workspace\jboss-seam\seam-gen\build.xml

            validate-workspace:

            validate-project:

            restart:
            [echo] Restarting project 'MyNewSeamGenProject'

            init:

            compile:
            [javac] Compiling 288 source files to C:\eclipse321\workspace\MyNewSeamGenProject\exploded-archives\MyNewSeamGe
            ect.jar
            [javac] C:\eclipse321\workspace\MyNewSeamGenProject\src\com\mydomain\crm\MyNewSeamGenProject\UsersFeedsHome.jav
            cannot find symbol
            [javac] symbol : method getDeleted()
            [javac] location: class com.mydomain.crm.MyNewSeamGenProject.UsersFeedsId
            [javac] if (getUsersFeedsId().getDeleted() == null)
            [javac] ^
            [javac] 1 error

            BUILD FAILED
            C:\eclipse321\workspace\jboss-seam\seam-gen\build.xml:886: The following error occurred while executing this line:
            C:\eclipse321\workspace\MyNewSeamGenProject\build.xml:50: Compile failed; see the compiler error output for details

            Total time: 12 seconds

            C:\eclipse321\workspace\jboss-seam>

            • 3. Re: Error while doing: seam generate-entities
              Gavin King Master

              Please report this in JIRA, I guess it should be "isDeleted()".