Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-60

Package name triggering weird bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 1.2.2, 1.2.3
    • None
    • None

    Description

      I'm trying to create a modelClass for our website. I have created the necessary template and dialog definitions and the groovy modelClass. The class is enabled. When I try to run it fails with the error message

      Error while rendering [/DEV_PLAYGROUND/category_search/untitled0/content/0] with template [standard-templating-kit:components/yornet/stkYornetTeaser]: RenderException: info.magnolia.rendering.engine.RenderException: Can't instantiate model: class yornet.yornetTeaserModel

      after extensive testing I tried creating exactly the same class just in a different package - I created a package called "our", copied the original yornetTeaserModel, modified the necessary parts of the model script and template definition and suddenly everything works fine. I deleted the old "yornet" tree and recreated it from scratch (to make sure it wasn't some glitch in the repository) and the error message returned . I tried it on two different magnolia installations and was able to reproduce this bug on both of them.

      (full stack trace and sources in the attachment)

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              fgrilli Federico Grilli
              ciny Ciny Marcinko
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD