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

Warning logs from DynamicBeanDefinitionService

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 14.6.3, 13.4.10
    • 13.4.19, 14.7.9, 15.2.0
    • None
    • None
    • Pulsar
    • Pulsar 287 - Cycle 3 Cooldown, Pulsar 296 - Cycle 6 Cooldown

    Description

      After a local cargo startup and navigation to a page, the container logs multiple WARN messages:

      [INFO] [talledLocalContainer] 2021-11-03 15:42:16,170 WARN [DynamicBeanDefinitionService.addCustomPropertyType:250] Failed to create getter for property: <...> of type: DynamicDropdown
      [INFO] [talledLocalContainer] 2021-11-03 15:42:26,782 WARN [DynamicBeanDefinitionService.addCustomPropertyType:250] Failed to create getter for property: <...> of type: StaticDropdown
      [INFO] [talledLocalContainer] 2021-11-03 15:42:27,313 WARN [DynamicBeanDefinitionService.addCustomPropertyType:250] Failed to create getter for property: .<...> of type: DynamicDropdown
      [INFO] [talledLocalContainer] 2021-11-03 15:42:27,325 WARN [DynamicBeanDefinitionService.addCustomPropertyType:250] Failed to create getter for property: .<...> of type: StaticDropdown

       
      When debugging into the mentioned class, all of these "propertyName"s have the type "String" and thus get added to the builder in line 245.
      But since line 247 uses an "if" instead of an "else if", the code then logs the warning as the property is not of the type "Boolean".

       Fix:
      Need to add "else if" instead of "if" in org.hippoecm.hst.content.beans.dynamic.DynamicBeanDefinitionService#addCustomPropertyType

      Attachments

        Activity

          People

            Unassigned Unassigned
            nannam Nithin Annam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: