Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13120

ObjectConverter throws InstantiationException when DynamicBeanService#createBeanDefinition method returns HippoCompound

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 13.4.3, 14.1.1, 14.2.0, 100.2.0
    • None
    • None

    Description

      This problem occurs in a specific case.

      While generating the dynamic bean of a compound type, if neither a node property, nor a child node gets added to the generated bean (this might be happened due to unsupported fields/nodes), then the bean doesn't get generated. Since the parent object is HippoCompound class, HippoCompound type gets returned as the generated type. While mapping the node content to the created instance of the returned type, an InstantiationException occurs in ObjectConverter#instantiateObject since HippoCompound is an abstract class.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ekarakus Erdem Karakus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: