java.lang.NullPointerException

Hibernate JIRA | Xavier Poinsard | 1 decade ago
  1. 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
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  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
      GenericExporter.start
      1. org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getPackageName(BasicPOJOClass.java:65)
      2. org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.init(BasicPOJOClass.java:33)
      3. org.hibernate.tool.hbm2x.pojo.ComponentPOJOClass.<init>(ComponentPOJOClass.java:18)
      4. org.hibernate.tool.hbm2x.ConfigurationNavigator.addComponent(ConfigurationNavigator.java:112)
      5. org.hibernate.tool.hbm2x.ConfigurationNavigator.collectComponents(ConfigurationNavigator.java:93)
      6. org.hibernate.tool.hbm2x.ConfigurationNavigator.collectComponents(ConfigurationNavigator.java:85)
      7. org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:82)
      8. org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:68)
      9. org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:90)
      10. org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:58)
      10 frames
    4. org.hibernate.eclipse
      ArtifactGeneratorWizard$2.execute
      1. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(Unknown Source)
      1 frame
    5. org.hibernate.console
      ConsoleConfiguration.execute
      1. org.hibernate.console.execution.DefaultExecutionContext.execute(Unknown Source)
      2. org.hibernate.console.ConsoleConfiguration.execute(Unknown Source)
      2 frames
    6. org.hibernate.eclipse
      ArtifactGeneratorWizard$1.run
      1. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(Unknown Source)
      2. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(Unknown Source)
      3. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(Unknown Source)
      3 frames
    7. JFace
      ModalContext$ModalContextThread.run
      1. org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
      1 frame