freemarker.core.InvalidReferenceException: Expression property.getValue().getEle ment().referencedEntityName is undefined on line 22, column 41 in hbm/bag.hbm.ft l.

Hibernate JIRA | Wytze van der Ploeg | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have an annotated entity which uses @CollectionOfElements annotation. When using hibernate tools to generate the corresponding hbm xml files I get an exception on this annotation. Stacktrace: 11:59:21,447 INFO org.hibernate.tool.Version - Hibernate Tools 3.2.0.b9 11:59:22,057 ERROR freemarker.runtime - Expression property.getValue().getElement().referencedEntityName is undefined on line 22, column 41 in hbm/bag.hbm.ftl. The problematic instruction: ---------- ==> ${property.getValue().getElement().referencedEntityName} [on line 22, column 39 in hbm/bag.hbm.ftl] in include "${c2h.getTag(property)}.hbm.ftl" [on line 93, column 1 in hbm/persi stentclass.hbm.ftl] in include "persistentclass.hbm.ftl" [on line 34, column 1 in hbm/hibernate-map ping.hbm.ftl] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression property.getValue().getEle ment().referencedEntityName is undefined on line 22, column 41 in hbm/bag.hbm.ft l. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.Expression.getStringValue(Expression.java:118) 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.Environment.include(Environment.java:1375) at freemarker.core.Include.accept(Include.java:155) 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.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.Environment.include(Environment.java:1375) at freemarker.core.Include.accept(Include.java:155) 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.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(Generi cExporter.java:135) at org.hibernate.tool.hbm2x.GenericExporter$2.process(GenericExporter.ja va:41) at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java :126) at org.hibernate.tool.hbm2x.HibernateMappingExporter.doStart(HibernateMa ppingExporter.java:34) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java :95) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(Hibernat eExporterMojo.java:241) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE xporterMojo.java:140) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.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(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)

    Hibernate JIRA | 9 years ago | Wytze van der Ploeg
    freemarker.core.InvalidReferenceException: Expression property.getValue().getEle ment().referencedEntityName is undefined on line 22, column 41 in hbm/bag.hbm.ft l.
  2. 0

    I have an annotated entity which uses @CollectionOfElements annotation. When using hibernate tools to generate the corresponding hbm xml files I get an exception on this annotation. Stacktrace: 11:59:21,447 INFO org.hibernate.tool.Version - Hibernate Tools 3.2.0.b9 11:59:22,057 ERROR freemarker.runtime - Expression property.getValue().getElement().referencedEntityName is undefined on line 22, column 41 in hbm/bag.hbm.ftl. The problematic instruction: ---------- ==> ${property.getValue().getElement().referencedEntityName} [on line 22, column 39 in hbm/bag.hbm.ftl] in include "${c2h.getTag(property)}.hbm.ftl" [on line 93, column 1 in hbm/persi stentclass.hbm.ftl] in include "persistentclass.hbm.ftl" [on line 34, column 1 in hbm/hibernate-map ping.hbm.ftl] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression property.getValue().getEle ment().referencedEntityName is undefined on line 22, column 41 in hbm/bag.hbm.ft l. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.Expression.getStringValue(Expression.java:118) 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.Environment.include(Environment.java:1375) at freemarker.core.Include.accept(Include.java:155) 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.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.Environment.include(Environment.java:1375) at freemarker.core.Include.accept(Include.java:155) 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.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(Generi cExporter.java:135) at org.hibernate.tool.hbm2x.GenericExporter$2.process(GenericExporter.ja va:41) at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java :126) at org.hibernate.tool.hbm2x.HibernateMappingExporter.doStart(HibernateMa ppingExporter.java:34) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java :95) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(Hibernat eExporterMojo.java:241) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE xporterMojo.java:140) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.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(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)

    Hibernate JIRA | 9 years ago | Wytze van der Ploeg
    freemarker.core.InvalidReferenceException: Expression property.getValue().getEle ment().referencedEntityName is undefined on line 22, column 41 in hbm/bag.hbm.ft l.
  3. 0

    db:: 3.24::Re: Hibernate Oracle nested CURSOR 1d

    hivmr.com | 1 year ago
    freemarker.core.InvalidReferenceException: Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    db:: 3.68::Hibernate 3 + Spring 3 error on deployment mx

    hivmr.com | 10 months ago
    freemarker.core.InvalidReferenceException: Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl.
  6. 0

    Access RequestParameters inside Camel Freemarker ftl

    Stack Overflow | 3 years ago | amate
    freemarker.core.InvalidReferenceException: Expression RequestParameters is undefined on line 216, column 40 in ftl/META-INF/spring/route-context.xml.ftl.
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. freemarker.core.InvalidReferenceException

    Expression property.getValue().getEle ment().referencedEntityName is undefined on line 22, column 41 in hbm/bag.hbm.ft l.

    at freemarker.core.TemplateObject.assertNonNull()
  2. FreeMarker
    Template.process
    1. freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
    2. freemarker.core.Expression.getStringValue(Expression.java:118)
    3. freemarker.core.Expression.getStringValue(Expression.java:93)
    4. freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    5. freemarker.core.Environment.visit(Environment.java:196)
    6. freemarker.core.MixedContent.accept(MixedContent.java:92)
    7. freemarker.core.Environment.visit(Environment.java:196)
    8. freemarker.core.IfBlock.accept(IfBlock.java:82)
    9. freemarker.core.Environment.visit(Environment.java:196)
    10. freemarker.core.MixedContent.accept(MixedContent.java:92)
    11. freemarker.core.Environment.visit(Environment.java:196)
    12. freemarker.core.Environment.include(Environment.java:1375)
    13. freemarker.core.Include.accept(Include.java:155)
    14. freemarker.core.Environment.visit(Environment.java:196)
    15. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
    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.Environment.include(Environment.java:1375)
    24. freemarker.core.Include.accept(Include.java:155)
    25. freemarker.core.Environment.visit(Environment.java:196)
    26. freemarker.core.MixedContent.accept(MixedContent.java:92)
    27. freemarker.core.Environment.visit(Environment.java:196)
    28. freemarker.core.Environment.process(Environment.java:176)
    29. freemarker.template.Template.process(Template.java:231)
    29 frames
  3. Hibernate Tools
    AbstractExporter.start
    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)
    6. org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(GenericExporter.java:135)
    7. org.hibernate.tool.hbm2x.GenericExporter$2.process(GenericExporter.java:41)
    8. org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:126)
    9. org.hibernate.tool.hbm2x.HibernateMappingExporter.doStart(HibernateMappingExporter.java:34)
    10. org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
    10 frames
  4. org.codehaus.mojo
    HibernateExporterMojo.execute
    1. org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:241)
    2. org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:140)
    2 frames
  5. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
    1 frame
  6. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
    4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
    5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
    6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
    7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
    8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
    8 frames
  7. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
    1 frame
  8. 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
  9. 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