net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord

Hibernate JIRA | Brian Duguid | 1 decade ago
  1. 0

    The SchemaExport tool works fantastic with the exception of compiling for properties that have the second letter in uppercase even though the first leter is lowercase. For example, I have an object that is used to store e-mail communications. The "to," "cc," and "bcc" addresses properties are written as tO, cC, and bCC so the getter and setters are "pretty" (getTO(), getCC(), getBCC()). I am able to fix the error by having the first two letters of the property as lowercase and the third letter as uppercase is acceptable. i.e. property bcC with getBcC() works fine. The error that is thrown read as: ERROR [main] (Configuration.java:233) - Could not compile the mapping document net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) rethrown as net.sf.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:103) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) Caused by: net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92) ... 10 more ERROR [main] (Configuration.java:233) - Could not compile the mapping document net.sf.hibernate.MappingException: duplicate import: EmailRecord at net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:60) at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:108) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:841) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) Error initializing configuration: duplicate import: EmailRecord Thanks.

    Hibernate JIRA | 1 decade ago | Brian Duguid
    net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord
  2. 0

    The SchemaExport tool works fantastic with the exception of compiling for properties that have the second letter in uppercase even though the first leter is lowercase. For example, I have an object that is used to store e-mail communications. The "to," "cc," and "bcc" addresses properties are written as tO, cC, and bCC so the getter and setters are "pretty" (getTO(), getCC(), getBCC()). I am able to fix the error by having the first two letters of the property as lowercase and the third letter as uppercase is acceptable. i.e. property bcC with getBcC() works fine. The error that is thrown read as: ERROR [main] (Configuration.java:233) - Could not compile the mapping document net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) rethrown as net.sf.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:103) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) Caused by: net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92) ... 10 more ERROR [main] (Configuration.java:233) - Could not compile the mapping document net.sf.hibernate.MappingException: duplicate import: EmailRecord at net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:60) at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:108) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:841) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) Error initializing configuration: duplicate import: EmailRecord Thanks.

    Hibernate JIRA | 1 decade ago | Brian Duguid
    net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord
  3. 0

    The SchemaExport tool works fantastic with the exception of compiling for properties that have the second letter in uppercase even though the first leter is lowercase. For example, I have an object that is used to store e-mail communications. The "to," "cc," and "bcc" addresses properties are written as tO, cC, and bCC so the getter and setters are "pretty" (getTO(), getCC(), getBCC()). I am able to fix the error by having the first two letters of the property as lowercase and the third letter as uppercase is acceptable. i.e. property bcC with getBcC() works fine. The error that is thrown read as: ERROR [main] (Configuration.java:233) - Could not compile the mapping document net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) rethrown as net.sf.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:103) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) Caused by: net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92) ... 10 more ERROR [main] (Configuration.java:233) - Could not compile the mapping document net.sf.hibernate.MappingException: duplicate import: EmailRecord at net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:60) at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:108) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:841) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) Error initializing configuration: duplicate import: EmailRecord Thanks.

    Hibernate JIRA | 1 decade ago | Brian Duguid
    net.sf.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The SchemaExport tool works fantastic with the exception of compiling for properties that have the second letter in uppercase even though the first leter is lowercase. For example, I have an object that is used to store e-mail communications. The "to," "cc," and "bcc" addresses properties are written as tO, cC, and bCC so the getter and setters are "pretty" (getTO(), getCC(), getBCC()). I am able to fix the error by having the first two letters of the property as lowercase and the third letter as uppercase is acceptable. i.e. property bcC with getBcC() works fine. The error that is thrown read as: ERROR [main] (Configuration.java:233) - Could not compile the mapping document net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) rethrown as net.sf.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:103) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) Caused by: net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord at net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92) ... 10 more ERROR [main] (Configuration.java:233) - Could not compile the mapping document net.sf.hibernate.MappingException: duplicate import: EmailRecord at net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:60) at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:108) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:841) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746) at fdot.prm.directory.DDLExporter.main(DDLExporter.java:29) Error initializing configuration: duplicate import: EmailRecord Thanks.

    Hibernate JIRA | 1 decade ago | Brian Duguid
    net.sf.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord
  6. 0

    dotCMS Users Group - DotCMS isnt starting: Whats wrong?

    dotcms.com | 11 months ago
    com.dotmarketing.exception.DotHibernateException: Unable to get Hibernate Session

    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. net.sf.hibernate.PropertyNotFoundException

      Could not find a getter for bcC in class fdot.prm.directory.email.EmailRecord

      at net.sf.hibernate.util.ReflectHelper.getGetter()
    2. net.sf.hibernate
      Configuration.configure
      1. net.sf.hibernate.util.ReflectHelper.getGetter(ReflectHelper.java:206)
      2. net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:260)
      3. net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92)
      4. net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:912)
      5. net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294)
      6. net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095)
      7. net.sf.hibernate.cfg.Configuration.add(Configuration.java:230)
      8. net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252)
      9. net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273)
      10. net.sf.hibernate.cfg.Configuration.configure(Configuration.java:838)
      11. net.sf.hibernate.cfg.Configuration.configure(Configuration.java:792)
      12. net.sf.hibernate.cfg.Configuration.configure(Configuration.java:746)
      12 frames
    3. fdot.prm.directory
      DDLExporter.main
      1. fdot.prm.directory.DDLExporter.main(DDLExporter.java:29)
      1 frame