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

Dynamic bean generation issue with default documenttype editor values

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 14.4.0
    • 13.4.8, 14.5.0
    • None
    • None

    Description

      Dynamic bean generation issue, see reproduction path below.

      Reproduction path:

      • Create a new archetype 14.4.0 project
      • Install the banner component
      • At a banner to the homepage and select a banner document
      • Check the banner on the site
      • Goto the content document type editor
      • Edit the banner document. Add two string fields without modifing the Field properties!
      • Goto to the homepage and see that the banner is not shown.
      • See error below.
      • The issue is that the path property for both string fields is set by the system to "string" and "string_", renaming the path "string_" to "string1" solves the problem.

       

      Error:
      [INFO] [talledLocalContainer] 15.01.2021 13:23:37 INFO http-nio-8080-exec-2 [DynamicBeanDefinitionService.generateBeanDefinition:180] Creating bean of document type myproject:bannerdocument from parent bean Banner.
      [INFO] [talledLocalContainer] 15.01.2021 13:23:37 WARN http-nio-8080-exec-2 [HstComponentInvokerImpl.logComponentException:255] Component exception caught on window banner with component org.onehippo.cms7.essentials.components.EssentialsBannerComponent: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Duplicate method signature for public java.lang.String org.example.beans.Banner$Bannerdocument$47vDqaQ3.getString() at com.google.common.cache.LocalCache.get(LocalCache.java:3952)
      [INFO] [talledLocalContainer] 15.01.2021 13:23:37 WARN http-nio-8080-exec-2 [AbstractBaseOrderableValve.handleComponentExceptions:306] Component exception(s) found in page request, 'Request{ method='GET', scheme='http', host='localhost:8080', requestURI='/site/', queryString='null'}'.
      [INFO] [talledLocalContainer] 15.01.2021 13:23:37 WARN http-nio-8080-exec-2 [DefaultPageErrorHandler.logWarningsForEachComponentExceptions:51] Component exception on org.onehippo.cms7.essentials.components.EssentialsBannerComponent : com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Duplicate method signature for public java.lang.String org.example.beans.Banner$Bannerdocument$47vDqaQ3.getString()

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kvanderweijden Koen van der Weijden (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: