Dear Friends, the solve was sent by Leo Barrientos, and is here: create a table INNODB with BIGINT autonumeric and PK called *id*, and the others fields like VARCHARS the most important is what the table must have a PK BIGINT and autonumeric...and thats all.
Good luck AppFUsers... El 6 de abril de 2009 6:40, Leonardo Castaño <leonardo.cast...@gmail.com>escribió: > > > Dear Friends I am working with appfuse jsfbasic and I am triying to create >> the person class like in appfuse CRUD video, but >> when I lauch this command [mvn appfuse:gen -Dentity=Person] >> only obtain a error who says >> >> >> >> " >> [INFO] No hibernate properties file loaded. >> ERROR [main] runtime.error(96) | >> Method public java.lang.String >> org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getJavaTypeName(org.hibernate.mapping.Property >> olean) threw an exception when invoked on >> org.hibernate.tool.hbm2x.pojo.ComponentPOJOClass(com.mycompany.app.model.Persona >> >> The problematic instruction: >> ---------- >> ==> assignment: >> identifierType=pojo.getJavaTypeName(pojo.identifierProperty, jdk5) [on line >> 2, column 1 in appfuse/web/jsf >> st-test.ftl] >> ---------- >> >> Java backtrace for programmers: >> ---------- >> freemarker.template.TemplateModelException: Method public java.lang.String >> org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.ge<http://org.hibernate.tool.hbm2x.pojo.basicpojoclass.ge/> >> vaTypeName(org.hibernate.mapping.Property,boolean) threw an exception when >> invoked on org.hibernate.tool.hbm2x.pojo.Compon >> POJOClass(com.mycompany.app.model.PersonaId) >> at >> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136) >> at >> freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) >> at >> freemarker.core.Expression.getAsTemplateModel(Expression.java:89) >> at freemarker.core.Assignment.accept(Assignment.java:90) >> 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(TemplateHelper.java:247) >> at >> org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67) >> at >> org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28) >> at >> org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97) >> at >> org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:146) >> at >> org.appfuse.tool.AppFuseExporter$1.exportPOJO(AppFuseExporter.java:214) >> at >> org.hibernate.tool.hbm2x.GenericExporter.exportComponent(GenericExporter.java:131) >> at >> org.hibernate.tool.hbm2x.GenericExporter$3.process(GenericExporter.java:61) >> 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:117) >> 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(HibernateExporterMojo.java:228) >> at >> org.appfuse.mojo.exporter.AppFuseGeneratorMojo.doExecute(AppFuseGeneratorMojo.java:241) >> at >> org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo.java:138) >> at >> org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGeneratorMojo.java:194) >> at >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java: >> ) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >> at >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >> Caused by: java.lang.NullPointerException >> at >> org.hibernate.tool.hbm2x.Cfg2JavaTool.getMetaAsString(Cfg2JavaTool.java:78) >> at >> org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.java:168) >> at >> org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getJavaTypeName(BasicPOJOClass.java:839) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at >> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) >> at >> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) >> ... 43 more >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] FATAL ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Error while processing template appfuse/web/jsf/list-test.ftl >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Trace >> org.hibernate.tool.hbm2x.ExporterException: Error while processing >> template appfuse/web/jsf/list-test.ftl >> at >> org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:253) >> at >> org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67) >> at >> org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28) >> at >> org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97) >> at >> org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:146) >> at >> org.appfuse.tool.AppFuseExporter$1.exportPOJO(AppFuseExporter.java:214) >> at >> org.hibernate.tool.hbm2x.GenericExporter.exportComponent(GenericExporter.java:131) >> at >> org.hibernate.tool.hbm2x.GenericExporter$3.process(GenericExporter.java:61) >> 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:117) >> 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(HibernateExporterMojo.java:228) >> at >> org.appfuse.mojo.exporter.AppFuseGeneratorMojo.doExecute(AppFuseGeneratorMojo.java:241) >> at >> org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo.java:138) >> at >> org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGeneratorMojo.java:194) >> at >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java: >> ) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >> at >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >> Caused by: freemarker.template.TemplateModelException: Method public >> java.lang.String org.hibernate.tool.hbm2x.pojo.BasicP >> Class.getJavaTypeName(org.hibernate.mapping.Property,boolean) threw an >> exception when invoked on org.hibernate.tool.hbm2x. >> o.ComponentPOJOClass(com.mycompany.app.model.PersonaId) >> at >> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136) >> at >> freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) >> at >> freemarker.core.Expression.getAsTemplateModel(Expression.java:89) >> at freemarker.core.Assignment.accept(Assignment.java:90) >> 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(TemplateHelper.java:247) >> ... 34 more >> Caused by: java.lang.NullPointerException >> at >> org.hibernate.tool.hbm2x.Cfg2JavaTool.getMetaAsString(Cfg2JavaTool.java:78) >> at >> org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.java:168) >> at >> org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getJavaTypeName(BasicPOJOClass.java:839) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at >> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) >> at >> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) >> ... 43 more >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 9 seconds >> [INFO] Finished at: Sat Apr 04 23:07:30 CEST 2009 >> [INFO] Final Memory: 18M/33M >> [INFO] >> ------------------------------------------------------------------------ >> >> Thanks for your help >> > > > -- > Leonardo Castaño D. > > -- Leonardo Castaño D.