org.hibernate.tool.hbm2x.ExporterException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Xavier Poinsard,
  • 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
    via by Xavier Poinsard,
  • 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)
    via by Xavier Poinsard,
  • 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)
    via by Xavier Poinsard,
    • 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
    No Bugmate found.