I remove the Blog property and appfuse:gen still fail.


mraible wrote:
> 
> Since you don't have any @OneToMany (or similar annotations), I
> suspect it's caused by the Blob. If you remove it as a property, does
> appfuse:gen work? We may have to add some special logic for blobs.
> 
> Matt
> 
> On 5/30/07, Azarias Tomás <[EMAIL PROTECTED]> wrote:
>>
>>
>> With class Ficheiro (attached ) I got this error :
>> [lifestyle] ERROR [main] runtime.error(96) |
>> Expression column is undefined on line 30, column 144 in
>> appfuse/web/jsf/form-vi
>> ew.ftl.
>> The problematic instruction:
>> ----------
>> ==> ${(!column.nullable)?string} [on line 30, column 140 in
>> appfuse/web/jsf/form
>> -view.ftl]
>> ----------
>>
>> Java backtrace for programmers:
>> ----------
>> freemarker.core.InvalidReferenceException: Expression column is undefined
>> on
>> lin
>> e 30, column 144 in appfuse/web/jsf/form-view.ftl.
>>         at
>> freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
>>
>>         at
>> freemarker.core.TemplateObject.invalidTypeException(TemplateObject.ja
>> va:134)
>>         at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
>>
>>
>> ....
>>
>>
>> And with class Evento I got this error :
>> [lifestyle] ERROR [main] runtime.error(96) |
>> Method public java.lang.String
>> org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getJ
>> avaTypeName(org.hibernate.mapping.Property,boolean) threw an exception
>> when
>> invo
>> ked on
>> org.hibernate.tool.hbm2x.pojo.EntityPOJOClass(com.lifestyle.model.Evento)
>>
>> The problematic instruction:
>> ----------
>> ==> ${pojo.getJavaTypeName(pojo.identifierProperty, jdk5)} [on line 15,
>> column 4
>> 3 in appfuse/web/jsf/list-test.ftl]
>> ----------
>>
>> Java backtrace for programmers:
>> ----------
>> freemarker.template.TemplateModelException: Method public
>> java.lang.String
>> org.h
>> ibernate.tool.hbm2x.pojo.BasicPOJOClass.getJavaTypeName(org.hibernate.mapping.Pr
>> operty,boolean) threw an exception when invoked on
>> org.hibernate.tool.hbm2x.pojo
>> .EntityPOJOClass(com.lifestyle.model.Evento)
>>         at
>> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:13
>> 6)
>>         at
>> freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
>>         at
>> freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
>>
>> ....
>> http://www.nabble.com/file/p10881406/model.zip model.zip
>>
>>
>>
>> mraible wrote:
>> >
>> > Can you post the contents of your other class (attaching may work best)
>> so
>> > I
>> > can try to reproduce?
>> >
>> > Thanks,
>> >
>> > Matt
>> >
>> > On 5/30/07, Azarias Tomás <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> I  am having the same error with other classes.
>> >> With default User object , I was just testing...
>> >>
>> >>
>> >> mraible wrote:
>> >> >
>> >> > Are you trying to generate User screens from the default User object
>> >> that
>> >> > ships with AppFuse? If so, why?
>> >> >
>> >> > On 5/30/07, Azarias Tomás <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >>
>> >> >> Hi All,
>> >> >>
>> >> >> I am having problems when using AMP.
>> >> >> when I run "mvn appfuse:gen -Dentity=User"
>> >> >>
>> >> >> It always throws exceptions :
>> >> >>
>> >> >> "
>> >> >> ERROR [main] runtime.error(96) |
>> >> >> Expression field.value.typeName is undefined on line 27, column 18
>> in
>> >> >> appfuse/we
>> >> >> b/jsf/list-test.ftl.
>> >> >> The problematic instruction:
>> >> >> ----------
>> >> >> ==> if field.value.typeName == "java.lang.String" &&
>> column.isUnique()
>> >> >> [on
>> >> >> line
>> >> >> 27, column 13 in appfuse/web/jsf/list-test.ftl]
>> >> >> ----------
>> >> >>
>> >> >> Java backtrace for programmers:
>> >> >> ----------
>> >> >> freemarker.core.InvalidReferenceException: Expression
>> >> >> field.value.typeName
>> >> >> is un
>> >> >> defined on line 27, column 18 in appfuse/web/jsf/list-test.ftl.
>> >> >>         at
>> >> >>
>> freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
>> >> >>
>> >> >>         at
>> >> >>
>> freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java
>> >> >> :121)
>> >> >>         at
>> freemarker.core.AndExpression.isTrue(AndExpression.java:68)
>> >> >>         at freemarker.core.ConditionalBlock.accept(
>> >> ConditionalBlock.java
>> >> >> :77)
>> >> >>         at freemarker.core.Environment.visit(Environment.java:196)
>> >> >>         at
>> freemarker.core.MixedContent.accept(MixedContent.java:92)
>> >> >>         at freemarker.core.Environment.visit(Environment.java:196)
>> >> >>         at freemarker.core.ConditionalBlock.accept(
>> >> ConditionalBlock.java
>> >> >> :79)
>> >> >>         at freemarker.core.Environment.visit(Environment.java:196)
>> >> >>         at
>> >> >>
>> freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
>> >> >>
>> >> >>         at freemarker.core.Environment.visit(Environment.java:351)
>> >> >>         at
>> freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
>> >> >>         at freemarker.core.Environment.visit(Environment.java:196)
>> >> >>         at
>> >> >>
>> freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
>> >> >>
>> >> >>         at freemarker.core.Environment.visit(Environment.java:351)
>> >> >>         at
>> freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
>> >> >>         at freemarker.core.Environment.visit(Environment.java:196)
>> >> >>         at
>> freemarker.core.MixedContent.accept(MixedContent.java:92)
>> >> >>         at freemarker.core.Environment.visit(Environment.java:196)
>> >> >>         at
>> freemarker.core.Environment.process(Environment.java:176)
>> >> >>         at freemarker.template.Template.process(Template.java:231)
>> >> >>         at
>> >> >>
>> org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelpe
>> >> >> r.java:247)
>> >> >>         at
>> >> >>
>> org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplatePro
>> >> >> ducer.java:67)
>> >> >>         at
>> >> >>
>> org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.ja
>> >> >> va:28)
>> >> >>         at
>> >> >>
>> org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.ja
>> >> >> va:97)
>> >> >>         at
>> >> >>
>> org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.j
>> >> >> ava:146)
>> >> >>         at
>> >> >>
>> org.appfuse.tool.AppFuseExporter$1.exportPOJO(AppFuseExporter.java:20
>> >> >> 2)
>> >> >>         at
>> >> >>
>> org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(Generi
>> >> >> cExporter.java:135)
>> >> >>         at
>> >> >>
>> org.hibernate.tool.hbm2x.GenericExporter$2.process(GenericExporter.ja
>> >> >> va:41)
>> >> >>         at
>> >> >>
>> org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java
>> >> >> :126)
>> >> >>         at
>> >> >>
>> org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java
>> >> >> :95)
>> >> >>         at
>> >> >>
>> org.appfuse.tool.AppFuseExporter.generateWeb(AppFuseExporter.java:107
>> >> >> )
>> >> >>         at org.appfuse.tool.AppFuseExporter.doStart(
>> >> AppFuseExporter.java
>> >> >> :50)
>> >> >>         at
>> >> >>
>> org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java
>> >> >> :95)
>> >> >>         at
>> >> >>
>> org.appfuse.mojo.HibernateExporterMojo.doExecute(HibernateExporterMoj
>> >> >> o.java:244)
>> >> >>         at
>> >> >>
>> org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo.
>> >> >> java:154)
>> >> >>         at
>> >> >>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>> >> >> nManager.java:443)
>> >> >>         at
>> >> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> >> >> ultLifecycleExecutor.java:539)
>> >> >>         at
>> >> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
>> >> >> Goal(DefaultLifecycleExecutor.java:493)
>> >> >>         at
>> >> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> >> >> ltLifecycleExecutor.java:463)
>> >> >>         at
>> >> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> >> >> dleFailures(DefaultLifecycleExecutor.java:311)
>> >> >>         at
>> >> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> >> >> ts(DefaultLifecycleExecutor.java:278)
>> >> >>         at
>> >> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> >> >> fecycleExecutor.java:143)
>> >> >>         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
>> >> :334)
>> >> >>         at
>> >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>> >> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>> >> >> ....
>> >> >>
>> >> >> "
>> >> >>
>> >> >> any workaround on this?
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/problems-with-AMP%2C-appfuse%3Agen-tf3839783s2369.html#a10871824
>> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > http://raibledesigns.com
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/problems-with-AMP%2C-appfuse%3Agen-tf3839783s2369.html#a10878550
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > http://raibledesigns.com
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/problems-with-AMP%2C-appfuse%3Agen-tf3839783s2369.html#a10881406
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problems-with-AMP%2C-appfuse%3Agen-tf3839783s2369.html#a10903074
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to