WKND Tutorial - Model Message not displaying in Hello World Component

Avatar

Avatar

marks16411289

Avatar

marks16411289

marks16411289

23-03-2021

Screen Shot 2021-03-23 at 7.17.17 PM.png



The Model message is not generated, only property text content compared to the tutorial which it has. How do I get it to be displayed?

Edit:
Just some additional info:
@Bhuwan_B 
Core bundle is already active

Screen Shot 2021-03-24 at 11.41.18 AM.png


@asutosh_j3 
HelloWorldModel.java

Screen Shot 2021-03-24 at 11.53.37 AM.png

this was the code already inside the bundle.

in  helloworld.html

Screen Shot 2021-03-24 at 11.55.29 AM.png

 

and core/pom.xml

Screen Shot 2021-03-24 at 11.56.59 AM.png


error.log

 

 

 

24.03.2021 11:40:53.436 *ERROR* [qtp1336792384-2491] org.apache.felix.metatype Missing element AD in element OCD : bundle://d996d805-cb73-4036-a288-c316b6553368_424.0:0/OSGI-INF/metatype/com.adobe.social.integrations.livefyre.config.impl.LivefyreConfigProviderImpl.xml
24.03.2021 11:40:53.583 *ERROR* [qtp1336792384-2491] org.apache.felix.metatype Missing element AD in element OCD : bundle://d996d805-cb73-4036-a288-c316b6553368_448.0:0/OSGI-INF/metatype/com.adobe.cq.social.sync.impl.SyncManagerImpl.xml
24.03.2021 11:53:13.255 *ERROR* [FelixDispatchQueue] org.apache.sling.engine FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: javax/servlet/Filter)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter
24.03.2021 11:53:13.261 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/osgi/service/event/EventHandler)
Caused by: java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 11:53:13.262 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.resourceresolver.impl.observation.OsgiObservationBridge (326)))
24.03.2021 11:53:13.266 *ERROR* [Background Update aem-guides-wknd.core (582)] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (582)BundleComponentActivator : Unexpected failure enabling component holder com.adobe.aem.guides.wknd.core.listeners.SimpleResourceListener (java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler)
java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 11:53:13.269 *ERROR* [Background Update aem-guides-wknd.core (582)] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (582)[com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask(3707)] :  Error during instantiation of the implementation object (java.lang.reflect.InvocationTargetException)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
24.03.2021 11:53:13.270 *ERROR* [FelixDispatchQueue] org.apache.sling.commons.scheduler FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask (3707)))
24.03.2021 11:53:13.283 *ERROR* [FelixDispatchQueue] org.apache.sling.servlets.resolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/apache/sling/api/servlets/SlingSafeMethodsServlet)
Caused by: java.lang.NoClassDefFoundError: org/apache/sling/api/servlets/SlingSafeMethodsServlet
24.03.2021 11:57:59.952 *ERROR* [FelixDispatchQueue] org.apache.sling.engine FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: javax/servlet/Filter)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter
24.03.2021 11:57:59.955 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/osgi/service/event/EventHandler)
Caused by: java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 11:57:59.958 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.resourceresolver.impl.observation.OsgiObservationBridge (326)))
24.03.2021 11:57:59.968 *ERROR* [Background Update aem-guides-wknd.core (582)] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (582)BundleComponentActivator : Unexpected failure enabling component holder com.adobe.aem.guides.wknd.core.listeners.SimpleResourceListener (java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler)
java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 11:57:59.971 *ERROR* [Background Update aem-guides-wknd.core (582)] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (582)[com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask(3716)] :  Error during instantiation of the implementation object (java.lang.reflect.InvocationTargetException)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
24.03.2021 11:57:59.986 *ERROR* [FelixDispatchQueue] org.apache.sling.commons.scheduler FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask (3716)))
24.03.2021 11:57:59.994 *ERROR* [FelixDispatchQueue] org.apache.sling.servlets.resolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/apache/sling/api/servlets/SlingSafeMethodsServlet)
Caused by: java.lang.NoClassDefFoundError: org/apache/sling/api/servlets/SlingSafeMethodsServlet
24.03.2021 11:58:21.766 *ERROR* [FelixDispatchQueue] org.apache.sling.engine FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: javax/servlet/Filter)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter
24.03.2021 11:58:21.769 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/osgi/service/event/EventHandler)
Caused by: java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 11:58:21.771 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.resourceresolver.impl.observation.OsgiObservationBridge (326)))
24.03.2021 11:58:21.772 *ERROR* [Background Update aem-guides-wknd.core (582)] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (582)BundleComponentActivator : Unexpected failure enabling component holder com.adobe.aem.guides.wknd.core.listeners.SimpleResourceListener (java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler)
java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 11:58:21.778 *ERROR* [Background Update aem-guides-wknd.core (582)] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (582)[com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask(3720)] :  Error during instantiation of the implementation object (java.lang.reflect.InvocationTargetException)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
24.03.2021 11:58:21.781 *ERROR* [FelixDispatchQueue] org.apache.sling.commons.scheduler FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask (3720)))
24.03.2021 11:58:21.786 *ERROR* [FelixDispatchQueue] org.apache.sling.servlets.resolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/apache/sling/api/servlets/SlingSafeMethodsServlet)
Caused by: java.lang.NoClassDefFoundError: org/apache/sling/api/servlets/SlingSafeMethodsServlet
24.03.2021 12:06:27.809 *ERROR* [FelixDispatchQueue] org.apache.sling.engine FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: javax/servlet/Filter)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter
24.03.2021 12:06:27.813 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/osgi/service/event/EventHandler)
Caused by: java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 12:06:27.814 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.resourceresolver.impl.observation.OsgiObservationBridge (326)))
24.03.2021 12:06:27.816 *ERROR* [Background Install /var/folders/2r/8dcbs47j11b3j5q4xtvf2z2h0000gp/T/install10494615035361203775.tmp] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (585)BundleComponentActivator : Unexpected failure enabling component holder com.adobe.aem.guides.wknd.core.listeners.SimpleResourceListener (java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler)
java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 12:06:27.818 *ERROR* [Background Install /var/folders/2r/8dcbs47j11b3j5q4xtvf2z2h0000gp/T/install10494615035361203775.tmp] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (585)[com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask(3729)] :  Error during instantiation of the implementation object (java.lang.reflect.InvocationTargetException)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
24.03.2021 12:06:27.819 *ERROR* [FelixDispatchQueue] org.apache.sling.commons.scheduler FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask (3729)))
24.03.2021 12:06:27.831 *ERROR* [FelixDispatchQueue] org.apache.sling.servlets.resolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/apache/sling/api/servlets/SlingSafeMethodsServlet)
Caused by: java.lang.NoClassDefFoundError: org/apache/sling/api/servlets/SlingSafeMethodsServlet
24.03.2021 12:06:27.875 *ERROR* [FelixDispatchQueue] org.apache.sling.engine FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: javax/servlet/Filter)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter
24.03.2021 12:06:27.880 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/osgi/service/event/EventHandler)
Caused by: java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 12:06:27.884 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.resourceresolver.impl.observation.OsgiObservationBridge (326)))
24.03.2021 12:06:27.887 *ERROR* [FelixFrameworkWiring] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (585)BundleComponentActivator : Unexpected failure enabling component holder com.adobe.aem.guides.wknd.core.listeners.SimpleResourceListener (java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler)
java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 12:06:27.894 *ERROR* [FelixFrameworkWiring] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (585)[com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask(3733)] :  Error during instantiation of the implementation object (java.lang.reflect.InvocationTargetException)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
24.03.2021 12:06:27.896 *ERROR* [FelixDispatchQueue] org.apache.sling.commons.scheduler FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask (3733)))
24.03.2021 12:06:27.906 *ERROR* [FelixDispatchQueue] org.apache.sling.servlets.resolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/apache/sling/api/servlets/SlingSafeMethodsServlet)
Caused by: java.lang.NoClassDefFoundError: org/apache/sling/api/servlets/SlingSafeMethodsServlet
24.03.2021 12:08:17.286 *ERROR* [FelixDispatchQueue] org.apache.sling.engine FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: javax/servlet/Filter)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter
24.03.2021 12:08:17.287 *ERROR* [Background Install /var/folders/2r/8dcbs47j11b3j5q4xtvf2z2h0000gp/T/install12426622461144331216.tmp] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (586)BundleComponentActivator : Unexpected failure enabling component holder com.adobe.aem.guides.wknd.core.listeners.SimpleResourceListener (java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler)
java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 12:08:17.290 *ERROR* [Background Install /var/folders/2r/8dcbs47j11b3j5q4xtvf2z2h0000gp/T/install12426622461144331216.tmp] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (586)[com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask(3742)] :  Error during instantiation of the implementation object (java.lang.reflect.InvocationTargetException)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
24.03.2021 12:08:17.303 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/osgi/service/event/EventHandler)
Caused by: java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 12:08:17.309 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.resourceresolver.impl.observation.OsgiObservationBridge (326)))
24.03.2021 12:08:17.311 *ERROR* [FelixDispatchQueue] org.apache.sling.commons.scheduler FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask (3742)))
24.03.2021 12:08:17.320 *ERROR* [FelixDispatchQueue] org.apache.sling.servlets.resolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/apache/sling/api/servlets/SlingSafeMethodsServlet)
Caused by: java.lang.NoClassDefFoundError: org/apache/sling/api/servlets/SlingSafeMethodsServlet
24.03.2021 12:08:17.389 *ERROR* [FelixDispatchQueue] org.apache.sling.engine FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: javax/servlet/Filter)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter
24.03.2021 12:08:17.395 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/osgi/service/event/EventHandler)
Caused by: java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 12:08:17.395 *ERROR* [FelixDispatchQueue] org.apache.sling.resourceresolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: org.apache.sling.resourceresolver.impl.observation.OsgiObservationBridge (326)))
24.03.2021 12:08:17.398 *ERROR* [FelixFrameworkWiring] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (586)BundleComponentActivator : Unexpected failure enabling component holder com.adobe.aem.guides.wknd.core.listeners.SimpleResourceListener (java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler)
java.lang.NoClassDefFoundError: org/osgi/service/event/EventHandler
24.03.2021 12:08:17.400 *ERROR* [FelixFrameworkWiring] aem-guides-wknd.core bundle aem-guides-wknd.core:0.0.1.SNAPSHOT (586)[com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask(3746)] :  Error during instantiation of the implementation object (java.lang.reflect.InvocationTargetException)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
24.03.2021 12:08:17.402 *ERROR* [FelixDispatchQueue] org.apache.sling.commons.scheduler FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: com.adobe.aem.guides.wknd.core.schedulers.SimpleScheduledTask (3746)))
24.03.2021 12:08:17.410 *ERROR* [FelixDispatchQueue] org.apache.sling.servlets.resolver FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory exception: org/apache/sling/api/servlets/SlingSafeMethodsServlet)
Caused by: java.lang.NoClassDefFoundError: org/apache/sling/api/servlets/SlingSafeMethodsServlet
24.03.2021 15:19:59.887 *ERROR* [sling-default-1-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.2648] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask Failed to validate URL http://www.adobe.com/go/marketingcloud_privacy: javax.net.ssl.SSLException: Operation timed out (Read failed)
24.03.2021 15:22:00.320 *ERROR* [sling-default-1-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.2648] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask Failed to validate URL http://www.adobe.com/go/marketingcloud_terms_of_use: java.net.SocketTimeoutException: Read timed out
24.03.2021 15:22:24.286 *ERROR* [sling-default-1-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.2648] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask Failed to validate URL https://marketing.adobe.com/resources/help/en_US/home/: javax.net.ssl.SSLException: Operation timed out (Read failed)
24.03.2021 17:20:08.248 *ERROR* [sling-default-2-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.2648] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask Failed to validate URL http://www.adobe.com/go/marketingcloud_privacy: javax.net.ssl.SSLException: Operation timed out (Read failed)
24.03.2021 17:22:08.267 *ERROR* [sling-default-2-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.2648] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask Failed to validate URL https://marketing.adobe.com/resources/help/en_US/home/: java.net.SocketTimeoutException: Read timed out

 

 

 


Not sure if this is how I should share the error log. There seems to be a lot of error, I'm so confused.

I don't get why it is still not displaying.. Hope someone can find the answer here. Very much appreciated. Thanks!

Edit: 3/26/2021
Aligned AEM version and it worked. Previously had 6.5.5 my bad 

-D aemVersion="6.5"

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

asutosh_j3

Avatar

asutosh_j3

asutosh_j3

23-03-2021

Hi @marks16411289 

When you say model message is not displayed:
Did you add the message in the java class directly? or you are reading from dialog and showing on page using a sling model?
Make sure you have a getter method defined for the variable which is holding the message string. Now use the same getter variable on HTL to get the reference.
if you are getting the value from dialog, try to print in log to see if it's able to read the value or not. Also make sure the variable name and the name attribute in dialog field both are same.

private String attribute1;

protected void init(){

attribute1 = "Some text" / read from dialog;
}

 

public String getAttribute1(){

this.attribute1 = attribute1;

}

HTL add below code:
${model.attribute1}

This should print the value.

Make sure the version in the POM file is having X.X.X-SNAPSHOT where X can be any number, i.e. 1.0.0-SNAPSHOT just to ensure the latest changes are deployed to your local.

Thanks!

 

Avatar

Avatar

Bhuwan_B

Avatar

Bhuwan_B

Bhuwan_B

23-03-2021

@marks16411289 Check in the system console if the bundle is active. Try deleting your bundle and install it again. Go to your core directory and run this command:

mvn -PautoInstallBundle clean install