freemarker.template.TemplateModelException: Method public java.lang.String org.h ibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(org.hibernate.mapping .Property) threw an exception when invoked on org.hibernate.tool.hbm2x.pojo.Comp onentPOJOClass(com.clarestow.myproject.model.CompositeId)

AppFuse JIRA | Mike Kelland | 9 years ago
  1. 0

    When running mvn appfuse:gen-model followed by mvn appfuse:gen on each entity generated (and once the hibernate.cfg.xml is filled with mapping elements for all the entities), when a composite foreign key is encountered, the process fails with: [myproject] ERROR [main] runtime.error(96) | Method public java.lang.String org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getG etterSignature(org.hibernate.mapping.Property) threw an exception when invoked o n org.hibernate.tool.hbm2x.pojo.ComponentPOJOClass(com.clarestow.myproject.m odel.CompositeId) The problematic instruction: ---------- ==> assignment: getIdMethodName=pojo.getGetterSignature(pojo.identifierProperty) [on line 2, column 1 in appfuse/web/struts/action-test.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public java.lang.String org.h ibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(org.hibernate.mapping .Property) threw an exception when invoked on org.hibernate.tool.hbm2x.pojo.Comp onentPOJOClass(com.clarestow.myproject.model.CompositeId) 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) 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(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:21 4) at org.hibernate.tool.hbm2x.GenericExporter.exportComponent(GenericExpor ter.java:131) at org.hibernate.tool.hbm2x.GenericExporter$3.process(GenericExporter.ja va: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:151 ) 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:228) at org.appfuse.mojo.exporter.AppFuseGeneratorMojo.doExecute(AppFuseGener atorMojo.java:251) at org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo. java:138) at org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGenerat orMojo.java:204) 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:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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.ja va:78) at org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.ja va:168) at org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.ja va:164) at org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(Basic POJOClass.java:549) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:11 3) ... 43 more [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error while processing template appfuse/web/struts/action-test.ftl [INFO] ------------------------------------------------------------------------ [INFO] Trace org.hibernate.tool.hbm2x.ExporterException: Error while processing template appf use/web/struts/action-test.ftl at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelpe r.java:253) 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:21 4) at org.hibernate.tool.hbm2x.GenericExporter.exportComponent(GenericExpor ter.java:131) at org.hibernate.tool.hbm2x.GenericExporter$3.process(GenericExporter.ja va: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:151 ) 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:228) at org.appfuse.mojo.exporter.AppFuseGeneratorMojo.doExecute(AppFuseGener atorMojo.java:251) at org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo. java:138) at org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGenerat orMojo.java:204) 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:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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.S tring org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(org.hibern ate.mapping.Property) threw an exception when invoked on org.hibernate.tool.hbm2 x.pojo.ComponentPOJOClass(com.clarestow.myproject.model.CompositeId) 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) 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(TemplateHelpe r.java:247) ... 34 more Caused by: java.lang.NullPointerException at org.hibernate.tool.hbm2x.Cfg2JavaTool.getMetaAsString(Cfg2JavaTool.ja va:78) at org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.ja va:168) at org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.ja va:164) at org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(Basic POJOClass.java:549) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:11 3) ... 43 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Tue Sep 18 22:26:18 EDT 2007 [INFO] Final Memory: 18M/33M [INFO] ------------------------------------------------------------------------

    AppFuse JIRA | 9 years ago | Mike Kelland
    freemarker.template.TemplateModelException: Method public java.lang.String org.h ibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(org.hibernate.mapping .Property) threw an exception when invoked on org.hibernate.tool.hbm2x.pojo.Comp onentPOJOClass(com.clarestow.myproject.model.CompositeId)
  2. 0

    When running mvn appfuse:gen-model followed by mvn appfuse:gen on each entity generated (and once the hibernate.cfg.xml is filled with mapping elements for all the entities), when a composite foreign key is encountered, the process fails with: [myproject] ERROR [main] runtime.error(96) | Method public java.lang.String org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getG etterSignature(org.hibernate.mapping.Property) threw an exception when invoked o n org.hibernate.tool.hbm2x.pojo.ComponentPOJOClass(com.clarestow.myproject.m odel.CompositeId) The problematic instruction: ---------- ==> assignment: getIdMethodName=pojo.getGetterSignature(pojo.identifierProperty) [on line 2, column 1 in appfuse/web/struts/action-test.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public java.lang.String org.h ibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(org.hibernate.mapping .Property) threw an exception when invoked on org.hibernate.tool.hbm2x.pojo.Comp onentPOJOClass(com.clarestow.myproject.model.CompositeId) 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) 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(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:21 4) at org.hibernate.tool.hbm2x.GenericExporter.exportComponent(GenericExpor ter.java:131) at org.hibernate.tool.hbm2x.GenericExporter$3.process(GenericExporter.ja va: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:151 ) 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:228) at org.appfuse.mojo.exporter.AppFuseGeneratorMojo.doExecute(AppFuseGener atorMojo.java:251) at org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo. java:138) at org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGenerat orMojo.java:204) 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:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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.ja va:78) at org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.ja va:168) at org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.ja va:164) at org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(Basic POJOClass.java:549) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:11 3) ... 43 more [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error while processing template appfuse/web/struts/action-test.ftl [INFO] ------------------------------------------------------------------------ [INFO] Trace org.hibernate.tool.hbm2x.ExporterException: Error while processing template appf use/web/struts/action-test.ftl at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelpe r.java:253) 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:21 4) at org.hibernate.tool.hbm2x.GenericExporter.exportComponent(GenericExpor ter.java:131) at org.hibernate.tool.hbm2x.GenericExporter$3.process(GenericExporter.ja va: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:151 ) 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:228) at org.appfuse.mojo.exporter.AppFuseGeneratorMojo.doExecute(AppFuseGener atorMojo.java:251) at org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo. java:138) at org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGenerat orMojo.java:204) 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:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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.S tring org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(org.hibern ate.mapping.Property) threw an exception when invoked on org.hibernate.tool.hbm2 x.pojo.ComponentPOJOClass(com.clarestow.myproject.model.CompositeId) 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) 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(TemplateHelpe r.java:247) ... 34 more Caused by: java.lang.NullPointerException at org.hibernate.tool.hbm2x.Cfg2JavaTool.getMetaAsString(Cfg2JavaTool.ja va:78) at org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.ja va:168) at org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.ja va:164) at org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(Basic POJOClass.java:549) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:11 3) ... 43 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Tue Sep 18 22:26:18 EDT 2007 [INFO] Final Memory: 18M/33M [INFO] ------------------------------------------------------------------------

    AppFuse JIRA | 9 years ago | Mike Kelland
    freemarker.template.TemplateModelException: Method public java.lang.String org.h ibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(org.hibernate.mapping .Property) threw an exception when invoked on org.hibernate.tool.hbm2x.pojo.Comp onentPOJOClass(com.clarestow.myproject.model.CompositeId)
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.hibernate.tool.hbm2x.Cfg2JavaTool.getMetaAsString()
    2. Hibernate Tools
      BasicPOJOClass.getGetterSignature
      1. org.hibernate.tool.hbm2x.Cfg2JavaTool.getMetaAsString(Cfg2JavaTool.java:78)
      2. org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.java:168)
      3. org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.java:164)
      4. org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getGetterSignature(BasicPOJOClass.java:549)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. FreeMarker
      Template.process
      1. freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583)
      2. freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113)
      3. freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
      4. freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
      5. freemarker.core.Assignment.accept(Assignment.java:90)
      6. freemarker.core.Environment.visit(Environment.java:196)
      7. freemarker.core.MixedContent.accept(MixedContent.java:92)
      8. freemarker.core.Environment.visit(Environment.java:196)
      9. freemarker.core.Environment.process(Environment.java:176)
      10. freemarker.template.Template.process(Template.java:231)
      10 frames
    5. Hibernate Tools
      GenericExporter.exportPOJO
      1. org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247)
      2. org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67)
      3. org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28)
      4. org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97)
      5. org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:146)
      5 frames
    6. org.appfuse.tool
      AppFuseExporter$1.exportPOJO
      1. org.appfuse.tool.AppFuseExporter$1.exportPOJO(AppFuseExporter.java:214)
      1 frame
    7. Hibernate Tools
      AbstractExporter.start
      1. org.hibernate.tool.hbm2x.GenericExporter.exportComponent(GenericExporter.java:131)
      2. org.hibernate.tool.hbm2x.GenericExporter$3.process(GenericExporter.java:61)
      3. org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:126)
      4. org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
      4 frames
    8. org.appfuse.tool
      AppFuseExporter.doStart
      1. org.appfuse.tool.AppFuseExporter.generateWeb(AppFuseExporter.java:151)
      2. org.appfuse.tool.AppFuseExporter.doStart(AppFuseExporter.java:50)
      2 frames
    9. Hibernate Tools
      AbstractExporter.start
      1. org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
      1 frame
    10. org.appfuse.mojo
      AppFuseGeneratorMojo.execute
      1. org.appfuse.mojo.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:228)
      2. org.appfuse.mojo.exporter.AppFuseGeneratorMojo.doExecute(AppFuseGeneratorMojo.java:251)
      3. org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo.java:138)
      4. org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGeneratorMojo.java:204)
      4 frames
    11. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
      1 frame
    12. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
      8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
      8 frames
    13. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    15. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames