[MGNLGROOVY-60] Package name triggering weird bug Created: 28/Aug/12 Updated: 02/Nov/17 Resolved: 02/Nov/17 |
|
| Status: | Closed |
| Project: | Magnolia Groovy Module |
| Component/s: | None |
| Affects Version/s: | 1.2.2, 1.2.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Ciny Marcinko | Assignee: | Federico Grilli |
| Resolution: | Obsolete | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
FreeBSD 8.2-RELEASE with both were default magnolia 4.5.4 (previously 4.5.3) installations |
||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| 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) |
| Comments |
| Comment by Federico Grilli [ 28/Aug/12 ] |
|
Hi Ciny, thanks for reporting this issue. My first guess is that it is an issue with our own MgnlGroovyClassLoader. I will investigate this as soon as possible. Federico |