5 Replies Latest reply on Oct 23, 2008 4:48 PM by dan.j.allen

    Error with seam generate in 2.1.0.GA

      This is the error when I run seam generate:


      ly@ly-laptop:~/seam-2.1.0.GA$ ./seam generate
      Location of seam script: /home/ly/seam-2.1.0.GA
      seam-gen template folder: /home/ly/seam-2.1.0.GA/seam-gen
      Buildfile: /home/ly/seam-2.1.0.GA/seam-gen/build.xml
      
      init:
      
      init-properties:
           [echo] /home/ly/jboss-4.2.3.GA
      
      validate-workspace:
      
      validate-project:
      
      init-generate:
      
      generate-model:
           [echo] Reverse engineering database using JDBC driver /home/ly/jboss-4.2.3.GA/server/default/lib/ojdbc6.jar
           [echo] project=/tmp/open18
           [echo] model=open18.bean.entity
      [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
      [hibernate] 1. task: hbm2java (Generates a set of .java files)
      [hibernate] Oct 23, 2008 12:06:14 AM org.hibernate.cfg.Environment <clinit>
      [hibernate] INFO: Hibernate 3.2.4.sp1
      [hibernate] Oct 23, 2008 12:06:14 AM org.hibernate.cfg.Environment <clinit>
      [hibernate] INFO: hibernate.properties not found
      [hibernate] Oct 23, 2008 12:06:14 AM org.hibernate.cfg.Environment buildBytecodeProvider
      [hibernate] INFO: Bytecode provider name : cglib
      [hibernate] Oct 23, 2008 12:06:14 AM org.hibernate.cfg.Environment <clinit>
      [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
      [hibernate] Oct 23, 2008 12:06:14 AM org.hibernate.cfg.reveng.OverrideRepository addFile
      [hibernate] INFO: Override file: /tmp/open18/resources/seam-gen.reveng.xml
      [hibernate] Oct 23, 2008 12:06:15 AM org.hibernate.connection.DriverManagerConnectionProvider configure
      [hibernate] INFO: Using Hibernate built-in connection pool (not for production use!)
      [hibernate] Oct 23, 2008 12:06:15 AM org.hibernate.connection.DriverManagerConnectionProvider configure
      [hibernate] INFO: Hibernate connection pool size: 20
      [hibernate] Oct 23, 2008 12:06:15 AM org.hibernate.connection.DriverManagerConnectionProvider configure
      [hibernate] INFO: autocommit mode: false
      [hibernate] Oct 23, 2008 12:06:15 AM org.hibernate.connection.DriverManagerConnectionProvider configure
      [hibernate] INFO: using driver: oracle.jdbc.OracleDriver at URL: jdbc:oracle:thin:@localhost:1521:xe
      [hibernate] Oct 23, 2008 12:06:15 AM org.hibernate.connection.DriverManagerConnectionProvider configure
      [hibernate] INFO: connection properties: {user=ly, password=****}
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: RDBMS: Oracle, version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: JDBC driver: Oracle JDBC driver, version: 11.1.0.6.0-Production+
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.dialect.Dialect <init>
      [hibernate] INFO: Using dialect: org.hibernate.dialect.Oracle9Dialect
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
      [hibernate] INFO: Using default transaction strategy (direct JDBC transactions)
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
      [hibernate] INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Automatic flush during beforeCompletion(): disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Automatic session close at end of transaction: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: JDBC batch size: 15
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: JDBC batch updates for versioned data: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Scrollable result sets: enabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: JDBC3 getGeneratedKeys(): disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Connection release mode: auto
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Default schema: LY
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Default batch fetch size: 1
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Generate SQL with comments: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Order SQL updates by primary key: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Order SQL inserts for batching: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
      [hibernate] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
      [hibernate] INFO: Using ASTQueryTranslatorFactory
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Query language substitutions: {}
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: JPA-QL strict compliance: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Second-level cache: enabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Query cache: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory createCacheProvider
      [hibernate] INFO: Cache provider: org.hibernate.cache.HashtableCacheProvider
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Optimize cache for minimal puts: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Structured second-level cache entries: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Statistics: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Deleted entity synthetic identifier rollback: disabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Default entity-mode: pojo
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Named query checking : enabled
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
      [hibernate] INFO: {TABLE_NAME=COURSE, REMARKS=null, TABLE_TYPE=TABLE, TABLE_SCHEM=LY, TABLE_CAT=null}
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
      [hibernate] INFO: {TABLE_NAME=FACILITY, REMARKS=null, TABLE_TYPE=TABLE, TABLE_SCHEM=LY, TABLE_CAT=null}
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
      [hibernate] INFO: {TABLE_NAME=HOLE, REMARKS=null, TABLE_TYPE=TABLE, TABLE_SCHEM=LY, TABLE_CAT=null}
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
      [hibernate] INFO: {TABLE_NAME=TEE, REMARKS=null, TABLE_TYPE=TABLE, TABLE_SCHEM=LY, TABLE_CAT=null}
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
      [hibernate] INFO: {TABLE_NAME=TEE_SET, REMARKS=null, TABLE_TYPE=TABLE, TABLE_SCHEM=LY, TABLE_CAT=null}
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.connection.DriverManagerConnectionProvider close
      [hibernate] INFO: cleaning up connection pool: jdbc:oracle:thin:@localhost:1521:xe
      [hibernate] Oct 23, 2008 12:06:16 AM org.hibernate.tool.Version <clinit>
      [hibernate] INFO: Hibernate Tools 3.2.2.GA
      [javaformatter] Java formatting of 6 files completed. Skipped 0 file(s).
      
      generate-ui:
           [echo] Building project 'open18' to generate views and controllers
      
      init:
      
      groovy.compile:
      
      groovy.copy:
      
      compile:
          [javac] Compiling 6 source files to /tmp/open18/exploded-archives/open18.jar
      
      copyclasses:
      
      jar:
           [copy] Copying 1 file to /tmp/open18/exploded-archives/open18.jar/META-INF
           [copy] Copying 1 file to /tmp/open18/exploded-archives/open18.jar
      [hibernate] Executing Hibernate Tool with a JPA Configuration
      [hibernate] 1. task: generic exportertemplate: view/list.xhtml.ftl
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.Version <clinit>
      [hibernate] INFO: Hibernate Annotations 3.3.0.GA
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.ejb.Version <clinit>
      [hibernate] INFO: Hibernate EntityManager 3.3.1.GA
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.AnnotationBinder bindClass
      [hibernate] INFO: Binding entity from annotated class: open18.bean.entity.Course
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.EntityBinder bindTable
      [hibernate] INFO: Bind entity open18.bean.entity.Course on table COURSE
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.AnnotationBinder bindClass
      [hibernate] INFO: Binding entity from annotated class: open18.bean.entity.TeeSet
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.EntityBinder bindTable
      [hibernate] INFO: Bind entity open18.bean.entity.TeeSet on table TEE_SET
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.AnnotationBinder bindClass
      [hibernate] INFO: Binding entity from annotated class: open18.bean.entity.Facility
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.EntityBinder bindTable
      [hibernate] INFO: Bind entity open18.bean.entity.Facility on table FACILITY
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.AnnotationBinder bindClass
      [hibernate] INFO: Binding entity from annotated class: open18.bean.entity.Hole
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.EntityBinder bindTable
      [hibernate] INFO: Bind entity open18.bean.entity.Hole on table HOLE
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.AnnotationBinder bindClass
      [hibernate] INFO: Binding entity from annotated class: open18.bean.entity.Tee
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.EntityBinder bindTable
      [hibernate] INFO: Bind entity open18.bean.entity.Tee on table TEE
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.CollectionBinder bindOneToManySecondPass
      [hibernate] INFO: Mapping collection: open18.bean.entity.Course.holes -> HOLE
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.CollectionBinder bindOneToManySecondPass
      [hibernate] INFO: Mapping collection: open18.bean.entity.Course.teeSets -> TEE_SET
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.CollectionBinder bindOneToManySecondPass
      [hibernate] INFO: Mapping collection: open18.bean.entity.TeeSet.tees -> TEE
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.CollectionBinder bindOneToManySecondPass
      [hibernate] INFO: Mapping collection: open18.bean.entity.Facility.courses -> COURSE
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.cfg.annotations.CollectionBinder bindOneToManySecondPass
      [hibernate] INFO: Mapping collection: open18.bean.entity.Hole.tees -> TEE
      [hibernate] Oct 23, 2008 12:06:19 AM org.hibernate.validator.Version <clinit>
      [hibernate] INFO: Hibernate Validator 3.0.0.GA
      [hibernate] 2. task: generic exportertemplate: view/view.xhtml.ftl
      [hibernate] Oct 23, 2008 12:06:20 AM freemarker.log.JDK14LoggerFactory$JDK14Logger error
      [hibernate] SEVERE: 
      [hibernate] 
      [hibernate] Error executing macro: outputValue
      [hibernate] required parameter: property is not specified.
      [hibernate] The problematic instruction:
      [hibernate] ----------
      [hibernate] ==> macro outputValue [on line 38, column 1 in util/TypeInfo.ftl]
      [hibernate]  in user-directive outputValue [on line 100, column 17 in view/view.xhtml.ftl]
      [hibernate] ----------
      [hibernate] 
      [hibernate] Java backtrace for programmers:
      [hibernate] ----------
      [hibernate] freemarker.template.TemplateException: Error executing macro: outputValue
      [hibernate] required parameter: property is not specified.
      [hibernate]      at freemarker.core.Macro$Context.sanityCheck(Macro.java:181)
      [hibernate]      at freemarker.core.Macro$Context.runMacro(Macro.java:161)
      [hibernate]      at freemarker.core.Environment.visit(Environment.java:537)
      [hibernate]      at freemarker.core.UnifiedCall.accept(UnifiedCall.java:128)
      [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.IfBlock.accept(IfBlock.java:82)
      [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.ConditionalBlock.accept(ConditionalBlock.java:79)
      [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.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.ConditionalBlock.accept(ConditionalBlock.java:79)
      [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.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:232)
      [hibernate]      at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:255)
      [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:103)
      [hibernate]      at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:148)
      [hibernate]      at org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(GenericExporter.java:137)
      [hibernate]      at org.hibernate.tool.hbm2x.GenericExporter$2.process(GenericExporter.java:43)
      [hibernate]      at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:128)
      [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:186)
      [hibernate]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      [hibernate]      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
      [hibernate]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [hibernate]      at java.lang.reflect.Method.invoke(Method.java:597)
      [hibernate]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      [hibernate]      at org.apache.tools.ant.Task.perform(Task.java:348)
      [hibernate]      at org.apache.tools.ant.Target.execute(Target.java:357)
      [hibernate]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      [hibernate]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      [hibernate]      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      [hibernate]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      [hibernate]      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      [hibernate]      at org.apache.tools.ant.Main.runBuild(Main.java:698)
      [hibernate]      at org.apache.tools.ant.Main.startAnt(Main.java:199)
      [hibernate]      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      [hibernate]      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
      [hibernate] An exception occurred while running exporter #3:generic exportertemplate: view/view.xhtml.ftl
      [hibernate] To get the full stack trace run ant with -verbose
      [hibernate] org.hibernate.tool.hbm2x.ExporterException: Error while processing Entity: open18.bean.entity.TeeSet with template view/view.xhtml.ftl
      [hibernate] freemarker.template.TemplateException: Error executing macro: outputValue
      [hibernate] required parameter: property is not specified.
      
      BUILD FAILED
      /home/ly/seam-2.1.0.GA/seam-gen/build.xml:1155: org.hibernate.tool.hbm2x.ExporterException: Error while processing Entity: open18.bean.entity.TeeSet with template view/view.xhtml.ftl
      
      Total time: 6 seconds



      What should I do with this error?

        • 1. Re: Error with seam generate in 2.1.0.GA
          fastnsilver

          Yep.  I ran up against this one too.  I think it's a bug.  Someone fat-fingered the freemarker templates used to generate ui.


          Here's what I did to fix...


          in


          SEAM_HOME/seam-gen/view/view.xhtml.ftl,


          I edited line 100, that starts


          <@outputValue property=parentParentPojo.indentifierProperty


          to be


          <@outputValue property=parentParentPojo.identifierProperty.


          Similarly, in


          SEAM_HOME/seam-gen/view/edit.xhtml.ftl,


          I edited line 127, that starts


          <@outputValue property=parentParentPojo.indentifierProperty


          to be


          <@outputValue property=parentParentPojo.identifierProperty.


          That should fix you up.


          Note: SEAM_HOME is your install location for seam-2.1.0.GA

          • 2. Re: Error with seam generate in 2.1.0.GA
            vimalkansal
            I also had run into the same issue and made the changes as suggested by you, but now I get this :

            [hibernate] 2. task: generic exportertemplate: view/view.xhtml.ftl
            [hibernate] Oct 23, 2008 7:26:09 PM freemarker.log.JDK14LoggerFactory$JDK14Logge
            r error
            [hibernate] SEVERE:
            [hibernate]
            [hibernate] Expression parentParentPojo.indentifierProperty is undefined on line
            100, column 40 in view/view.xhtml.ftl.
            [hibernate] The problematic instruction:
            [hibernate] ----------
            [hibernate] ==> macro outputValue [on line 38, column 1 in util/TypeInfo.ftl]
            [hibernate]  in user-directive outputValue [on line 100, column 17 in view/view.
            xhtml.ftl]
            [hibernate] ----------
            [hibernate]
            [hibernate] Java backtrace for programmers:
            [hibernate] ----------
            [hibernate] freemarker.core.InvalidReferenceException: Expression parentParentPo
            jo.indentifierProperty is undefined on line 100, column 40 in view/view.xhtml.ft
            l.
            [hibernate]     at freemarker.core.TemplateObject.assertNonNull(TemplateObject.j
            ava:124)
            [hibernate]     at freemarker.core.TemplateObject.invalidTypeException(TemplateO
            bject.java:134)
            [hibernate]     at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
            [hibernate]     at freemarker.core.Expression.getAsTemplateModel(Expression.java
            :89)
            [hibernate]     at freemarker.core.ComparisonExpression.isTrue(ComparisonExpress
            ion.java:111)
            [hibernate]     at freemarker.core.BooleanExpression._getAsTemplateModel(Boolean
            Expression.java:61)
            [hibernate]     at freemarker.core.Expression.getAsTemplateModel(Expression.java
            :89)
            [hibernate]     at freemarker.core.Environment.visit(Environment.java:491)
            [hibernate]     at freemarker.core.UnifiedCall.accept(UnifiedCall.java:128)
            [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.IfBlock.accept(IfBlock.java:82)
            [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.ConditionalBlock.accept(ConditionalBlock.java
            :79)
            [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.IteratorBlock$Context.runLoop(IteratorBlock.j
            ava: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.ConditionalBlock.accept(ConditionalBlock.java
            :79)
            [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.IteratorBlock$Context.runLoop(IteratorBlock.j
            ava: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:232)
            [hibernate]     at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(Templ
            ateHelper.java:255)
            [hibernate]     at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(Tem
            plateProducer.java:67)
            [hibernate]     at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplatePro
            ducer.java:28)
            [hibernate]     at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplatePro
            ducer.java:103)
            [hibernate]     at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericEx
            porter.java:148)
            [hibernate]     at org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClas
            s(GenericExporter.java:137)
            [hibernate]     at org.hibernate.tool.hbm2x.GenericExporter$2.process(GenericExp
            orter.java:43)
            [hibernate]     at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExpor
            ter.java:128)
            [hibernate]     at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExpor
            ter.java:95)
            [hibernate]     at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java
            :40)
            [hibernate]     at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToo
            lTask.java:186)
            [hibernate]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
            va:288)
            [hibernate]     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
            [hibernate]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
            hodAccessorImpl.java:25)
            [hibernate]     at java.lang.reflect.Method.invoke(Method.java:597)
            [hibernate]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
            tils.java:105)
            [hibernate]     at org.apache.tools.ant.Task.perform(Task.java:348)
            [hibernate]     at org.apache.tools.ant.Target.execute(Target.java:357)
            [hibernate]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
            [hibernate]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
            a:1329)
            [hibernate]     at org.apache.tools.ant.Project.executeTarget(Project.java:1298)

            [hibernate]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
            faultExecutor.java:41)
            [hibernate]     at org.apache.tools.ant.Project.executeTargets(Project.java:1181
            )
            [hibernate]     at org.apache.tools.ant.Main.runBuild(Main.java:698)
            [hibernate]     at org.apache.tools.ant.Main.startAnt(Main.java:199)
            [hibernate]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
            [hibernate]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
            [hibernate] An exception occurred while running exporter #3:generic exportertemp
            late: view/view.xhtml.ftl
            [hibernate] To get the full stack trace run ant with -verbose
            [hibernate] org.hibernate.tool.hbm2x.ExporterException: Error while processing E
            ntity: org.open18.model.Hole with template view/view.xhtml.ftl
            [hibernate] freemarker.core.InvalidReferenceException: Expression parentParentPo
            jo.indentifierProperty is undefined on line 100, column 40 in view/view.xhtml.ft
            l.

            BUILD FAILED
            C:\vkk\jboss-seam-2.1.0.GA\seam-gen\build.xml:1155: org.hibernate.tool.hbm2x.Exp
            orterException: Error while processing Entity: org.open18.model.Hole with templa
            te view/view.xhtml.ftl

            Total time: 4 seconds
            • 3. Re: Error with seam generate in 2.1.0.GA
              nickarls
              Expression parentParentPojo.i*n*dentifierProperty
              



              it's still there.

              • 4. Re: Error with seam generate in 2.1.0.GA
                andre.eugenio

                Thank you, worked like a charm

                • 5. Re: Error with seam generate in 2.1.0.GA
                  dan.j.allen

                  Sorry about this guys and gals. I fat fingered it and it slipped through our tests. Please spread the word.


                  You can find a patch for this problem in JIRA, an issue which is now resolved: JBSEAM-3617