Warning in logs: Encountered the '$type' property but failed to resolved the type from its value (MGNLUI-7125)

[MGNLUI-7641] Pre-int QA Created: 23/Nov/22  Updated: 25/Nov/22  Resolved: 25/Nov/22

Status: Completed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Sub-task Priority: Neutral
Reporter: Sang Ngo Huu Assignee: Daniel Alonso
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Date of First Response:
Sprint: Nucleus 24
Team: Nucleus

 Comments   
Comment by Daniel Alonso [ 25/Nov/22 ]

In order to reproduce the WARN log entry, i added the following conditional breakpoint on BeanTypeResolver constructor (L 71) (resolvers.size()>1)

And then, I performed this watch expression evaluation:

 

resolvers=new LinkedHashSet<>(Arrays.asList(new TypeResolver[]{(((RegularImmutableSet) resolvers).elements)[2],(((RegularImmutableSet) resolvers).elements)[0],(((RegularImmutableSet) resolvers).elements)[1],(((RegularImmutableSet) resolvers).elements)[3],(((RegularImmutableSet) resolvers).elements)[4]})) 

Then I managed to reorder the resolvers list, just to put the AnnotationProcessingTypeResolver in the first position.

With this, the log entry appears:

2022-11-25 11:59:51,553 INFO  agnolia.config.source.yaml.YamlConfigurationSource: Registered definition from YAML file [/ui-admincentral/fieldTypes/timeZone.yaml]: [fieldType] definition [timeZone] with reference id: [timeZone] from module [ui-admincentral] at [timeZone]
2022-11-25 11:59:55,969 INFO  ource.yaml.AbstractFileResourceConfigurationSource: Setting up YamlConfigurationSource to load definitions from resources
2022-11-25 11:59:55,979 WARN  a.config.resolver.AnnotationProcessingTypeResolver: Encountered the '$type' property but failed to resolved the type from its value: [tabbedForm]. Available types: [treeView,listView,thumbnailView]
2022-11-25 11:59:55,996 INFO  agnolia.config.source.yaml.YamlConfigurationSource: Registered definition from YAML file [/sample/dialogs/pages/first.yaml]: [dialog] definition [first] with reference id: [sample:pages/first] from module [sample] at [pages/first] 

 

Comment by Daniel Alonso [ 25/Nov/22 ]

Ok with  changes from branch MGNLUI-7125. No warn log entry found.

 

Comment by Daniel Alonso [ 25/Nov/22 ]

Ok with changes from branch MGNLUI-7125-branch6.2. No warn log entry found

 

Generated at Mon Feb 12 09:47:59 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.