I am getting the below error Caused by: org.apache.sling.api.scripting.ScriptEvaluationException:at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:416) [org.apache.sling.scripting.core:2.0.56]at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(Defaul...
Below is the code for configuring the scheduler. You can refer to the screenshot of the configuration @ObjectClassDefinition(name = "AEM: SlingSchedulerConfiguration",description = "Sling scheduler configuration")public @interface SchedulerConfig{@AttributeDefinition(name = "Cron-job expression")Str...
I want to pass parameters text and username from sightly to sling model and display in frontend. Pls HelpSightly Code<sly data-sly-use.mySlingModal="${'com.aem.demo.core.models.MyComponentModel' @ text='Hi!!'}"></sly> MyComponentModel.java@Model(adaptables = SlingHttpServletRequest.class)public clas...
I have created a Component that has title, description, date, URL, and read the values in SlingModel then how can I display the data in the form of JSON to the frontend through the sling model?
Hi @Vijayalakshmi_S, below are dependencies written inproject pom.xml file<dependencyManagement><dependencies><!-- OSGi Dependencies --><dependency><groupId>org.osgi</groupId><artifactId>osgi.core</artifactId><version>6.0.0</version><scope>provided</scope></dependency><dependency><groupId>org.osgi</...
Failure Trace:java.lang.VerifyError: class io.wcm.testing.mock.aem.context.AemContextImpl overrides final method org.apache.sling.testing.mock.sling.context.SlingContextImpl.currentResource(Lorg/apache/sling/api/resource/Resource;)Lorg/apache/sling/api/resource/Resource;at java.base/java.lang.ClassL...
Now, I am trying to render values returned by methods that are in MyService, So to render those in servlet what can I use? Below is MyService Methods code public interface MyService{public String getMyFirstName();public String getMyLastName();public String getMyHobby();}