org.hibernate.tool.hbm2x.ExporterException: Error while processing template doc/entities/entity.ftl

Hibernate JIRA | Xavier Poinsard | 9 years ago
  1. 0

    Null Pointer Exception when trying to export schema documentation : org.hibernate.tool.hbm2x.ExporterException: Error while processing template doc/entities/entity.ftl at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:257) 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.DocExporter.processTemplate(DocExporter.java:614) at org.hibernate.tool.hbm2x.DocExporter.generateEntitiesDetails(DocExporter.java:436) at org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:162) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$1.execute(CodeGenerationLaunchDelegate.java:245) at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:88) at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:215) at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:130) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899) at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: freemarker.template.TemplateModelException: Method public org.hibernate.tool.hbm2x.doc.DocFile org.hibernate.tool.hbm2x.doc.DocFileManager.getEntityDocFileByDeclarationName(org.hibernate.tool.hbm2x.pojo.POJOClass) threw an exception when invoked on org.hibernate.tool.hbm2x.doc.DocFileManager@3045a87a 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.ListLiteral.getModelList(ListLiteral.java:125) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) 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.IfBlock.accept(IfBlock.java:82) 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.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.ConditionalBlock.accept(ConditionalBlock.java:79) 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:232) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:251) ... 17 more Caused by: java.lang.NullPointerException at org.hibernate.util.StringHelper.qualifier(StringHelper.java:132) at org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getQualifiedDeclarationName(BasicPOJOClass.java:95) at org.hibernate.tool.hbm2x.doc.DocFileManager.getEntityDocFileByDeclarationName(DocFileManager.java:391) 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:616) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) ... 44 more

    Hibernate JIRA | 9 years ago | Xavier Poinsard
    org.hibernate.tool.hbm2x.ExporterException: Error while processing template doc/entities/entity.ftl
  2. 0

    Null Pointer Exception when trying to export schema documentation : org.hibernate.tool.hbm2x.ExporterException: Error while processing template doc/entities/entity.ftl at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:257) 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.DocExporter.processTemplate(DocExporter.java:614) at org.hibernate.tool.hbm2x.DocExporter.generateEntitiesDetails(DocExporter.java:436) at org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:162) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$1.execute(CodeGenerationLaunchDelegate.java:245) at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:88) at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:215) at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:130) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899) at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: freemarker.template.TemplateModelException: Method public org.hibernate.tool.hbm2x.doc.DocFile org.hibernate.tool.hbm2x.doc.DocFileManager.getEntityDocFileByDeclarationName(org.hibernate.tool.hbm2x.pojo.POJOClass) threw an exception when invoked on org.hibernate.tool.hbm2x.doc.DocFileManager@3045a87a 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.ListLiteral.getModelList(ListLiteral.java:125) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) 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.IfBlock.accept(IfBlock.java:82) 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.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.ConditionalBlock.accept(ConditionalBlock.java:79) 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:232) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:251) ... 17 more Caused by: java.lang.NullPointerException at org.hibernate.util.StringHelper.qualifier(StringHelper.java:132) at org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getQualifiedDeclarationName(BasicPOJOClass.java:95) at org.hibernate.tool.hbm2x.doc.DocFileManager.getEntityDocFileByDeclarationName(DocFileManager.java:391) 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:616) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) ... 44 more

    Hibernate JIRA | 9 years ago | Xavier Poinsard
    org.hibernate.tool.hbm2x.ExporterException: Error while processing template doc/entities/entity.ftl
  3. 0

    I was trying to generate java artifacts from mapping. If I put a dynamic-component inside a class definition like this : <class ... <dynamic-component name="aName"> </dynamic-component> </class> the generation fails : Error 2005-10-20 16:10:59.38 Error under artifact generation java.lang.NullPointerException at org.hibernate.util.StringHelper.qualifier(StringHelper.java:132) at org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getPackageName(BasicPOJOClass.java:65) at org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.init(BasicPOJOClass.java:33) at org.hibernate.tool.hbm2x.pojo.ComponentPOJOClass.<init>(ComponentPOJOClass.java:18) at org.hibernate.tool.hbm2x.ConfigurationNavigator.addComponent(ConfigurationNavigator.java:112) at org.hibernate.tool.hbm2x.ConfigurationNavigator.collectComponents(ConfigurationNavigator.java:93) at org.hibernate.tool.hbm2x.ConfigurationNavigator.collectComponents(ConfigurationNavigator.java:85) at org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:82) at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:68) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:90) at org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:58) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(Unknown Source) at org.hibernate.console.execution.DefaultExecutionContext.execute(Unknown Source) at org.hibernate.console.ConsoleConfiguration.execute(Unknown Source) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(Unknown Source) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(Unknown Source) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

    Hibernate JIRA | 1 decade ago | Xavier Poinsard
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I was trying to generate java artifacts from mapping. If I put a dynamic-component inside a class definition like this : <class ... <dynamic-component name="aName"> </dynamic-component> </class> the generation fails : Error 2005-10-20 16:10:59.38 Error under artifact generation java.lang.NullPointerException at org.hibernate.util.StringHelper.qualifier(StringHelper.java:132) at org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getPackageName(BasicPOJOClass.java:65) at org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.init(BasicPOJOClass.java:33) at org.hibernate.tool.hbm2x.pojo.ComponentPOJOClass.<init>(ComponentPOJOClass.java:18) at org.hibernate.tool.hbm2x.ConfigurationNavigator.addComponent(ConfigurationNavigator.java:112) at org.hibernate.tool.hbm2x.ConfigurationNavigator.collectComponents(ConfigurationNavigator.java:93) at org.hibernate.tool.hbm2x.ConfigurationNavigator.collectComponents(ConfigurationNavigator.java:85) at org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:82) at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:68) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:90) at org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:58) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(Unknown Source) at org.hibernate.console.execution.DefaultExecutionContext.execute(Unknown Source) at org.hibernate.console.ConsoleConfiguration.execute(Unknown Source) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(Unknown Source) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(Unknown Source) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

    Hibernate JIRA | 1 decade ago | Xavier Poinsard
    java.lang.NullPointerException
  6. 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

    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.util.StringHelper.qualifier()
    2. Hibernate
      StringHelper.qualifier
      1. org.hibernate.util.StringHelper.qualifier(StringHelper.java:132)
      1 frame
    3. Hibernate Tools
      DocFileManager.getEntityDocFileByDeclarationName
      1. org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getQualifiedDeclarationName(BasicPOJOClass.java:95)
      2. org.hibernate.tool.hbm2x.doc.DocFileManager.getEntityDocFileByDeclarationName(DocFileManager.java:391)
      2 frames
    4. 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:585)
      4 frames
    5. FreeMarker
      Template.process
      1. freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:616)
      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.ListLiteral.getModelList(ListLiteral.java:125)
      6. freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89)
      7. freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
      8. freemarker.core.Expression.getStringValue(Expression.java:93)
      9. freemarker.core.DollarVariable.accept(DollarVariable.java:76)
      10. freemarker.core.Environment.visit(Environment.java:196)
      11. freemarker.core.MixedContent.accept(MixedContent.java:92)
      12. freemarker.core.Environment.visit(Environment.java:196)
      13. freemarker.core.IfBlock.accept(IfBlock.java:82)
      14. freemarker.core.Environment.visit(Environment.java:196)
      15. freemarker.core.MixedContent.accept(MixedContent.java:92)
      16. freemarker.core.Environment.visit(Environment.java:196)
      17. freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
      18. freemarker.core.Environment.visit(Environment.java:351)
      19. freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
      20. freemarker.core.Environment.visit(Environment.java:196)
      21. freemarker.core.MixedContent.accept(MixedContent.java:92)
      22. freemarker.core.Environment.visit(Environment.java:196)
      23. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
      24. freemarker.core.Environment.visit(Environment.java:196)
      25. freemarker.core.MixedContent.accept(MixedContent.java:92)
      26. freemarker.core.Environment.visit(Environment.java:196)
      27. freemarker.core.Environment.process(Environment.java:176)
      28. freemarker.template.Template.process(Template.java:232)
      28 frames
    6. Hibernate Tools
      AbstractExporter.start
      1. org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:251)
      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.DocExporter.processTemplate(DocExporter.java:614)
      6. org.hibernate.tool.hbm2x.DocExporter.generateEntitiesDetails(DocExporter.java:436)
      7. org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:162)
      8. org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
      8 frames
    7. org.hibernate.eclipse
      CodeGenerationLaunchDelegate$1.execute
      1. org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$1.execute(CodeGenerationLaunchDelegate.java:245)
      1 frame
    8. org.hibernate.console
      ConsoleConfiguration.execute
      1. org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
      2. org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:88)
      2 frames
    9. org.hibernate.eclipse
      CodeGenerationLaunchDelegate.launch
      1. org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:215)
      2. org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:130)
      2 frames
    10. Debug Core
      LaunchConfiguration.launch
      1. org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
      2. org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
      2 frames
    11. org.eclipse.debug
      DebugUIPlugin$7.run
      1. org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
      2. org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
      2 frames
    12. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame