Hello All - I am getting an exception in the Model class.Can someone advise on this?
@Model(adaptables=Resource.class)
public class ModelA{
@ValueMapValue
@Named("cq:lastReplicated")
@Required
private String lastReplicated;
@Inject
@Named("articleTitle")
@SuppressWarnings("unchecked")
private String artTitle;
07.30.2020 21:57:32.160 *WARN* [ anonymous-nosite-0:0:0:0:0:0:0:1-24170aab-c015-47e6-9c11-512d9d960aab ] org.apache.sling.models.impl.ModelAdapterFactory Could not adapt to model
org.apache.sling.models.factory.MissingElementsException: Could not inject all required fields into class com.xxx.yyy.aem.core.models.ModelA
org.apache.sling.models.impl.ModelAdapterFactory Could not adapt to model
org.apache.sling.models.factory.MissingElementsException: Could not inject all required fields into class com.xxx.yyy.aem.core.models.ModelA
Caused by: org.apache.sling.models.factory.ModelClassException: No injector returned a non-null value!
Suppressed: org.apache.sling.models.factory.MissingElementException: Could not inject private java.lang.String com.xxx.yyy.aem.core.models.ModelA.artTitle
at org.apache.sling.models.impl.ModelAdapterFactory.createObject(ModelAdapterFactory.java:749)
... 163 common frames omitted
Caused by: org.apache.sling.models.factory.ModelClassException: No injector returned a non-null value!
at org.apache.sling.models.impl.ModelAdapterFactory.injectElement(ModelAdapterFactory.java:635)
at org.apache.sling.models.impl.ModelAdapterFactory.createObject(ModelAdapterFactory.java:744)
... 163 common frames omitted
Suppressed: org.apache.sling.models.factory.MissingElementException: Could not inject private java.lang.String com.xxx.yyy.aem.core.models.ModelA.altText
at org.apache.sling.models.impl.ModelAdapterFactory.createObject(ModelAdapterFactory.java:749)
... 163 common frames omitted