I'm getting below error in the error.log when using the core components in my content pages.
The reason why I checked on the logs is dialog values are not getting fetched/displayed in the page and hence i checked the error logs and found below errors for Button and list component.
11.06.2020 11:59:41.328 ERROR [0:0:0:0:0:0:0:1  GET /content/sample/us/sample_home1.html HTTP/1.1] org.apache.sling.scripting.sightly.render.ObjectModel Cannot access method listItems on object com.adobe.cq.wcm.core.components.internal.models.v1.ListImpl@5b6e36a9 java.lang.reflect.InvocationTargetException: null
10.06.2020 20:01:17.889 ERROR [0:0:0:0:0:0:0:1  GET /content/orora/us/orora_home.html HTTP/1.1] org.apache.sling.scripting.sightly.render.ObjectModel Cannot access method text on object com.adobe.cq.commerce.core.components.internal.models.v1.button.ButtonImpl@389ca05d java.lang.reflect.InvocationTargetException: null
Kindly please let me know what causing this error and how to resolve it. OOB Button and List components from core folders are not working properly.
I'm working in AEM 6.5.0 and my Core components are 2.7.0
Can you confirm in which AEM version and which core component version are you facing this issue?
According to the historical versions, Core Components 2.3.0 and Core Components Extension 1.0.10 have 220.127.116.11 as their minimum requirement. The recommendation would, therefore, be to upgrade to the correct version.
Here is the list of Core Components Package compatibility
The model at https://github.com/adobe/aem-core-wcm-components/blob/master/bundles/core/src/main/java/com/adobe/cq... does not export a method like getListItems , It has getItems() . So you can call it like shown below
For com.adobe.cq.commerce.core.components.internal.models.v1.button.ButtonImpl,. I see it implemented in CIF framework https://github.com/adobe/aem-core-cif-components/blob/master/bundles/core/src/main/java/com/adobe/cq.... Did you install this framework?
Can you share HTL code (data-sly-use part )which you are using to in custom component?