Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Image not displaying in page

Avatar

Level 2

Per Adobe, I  used image core component in aem-sdk-2022.10.9398.20221020T071514Z-220900

After drag and drop the image, the image is displayed in the dialog correctly. However, once finish the authoring, I don't see the image is displayed in the page.

 

Thanks a lot.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @hagrid

The same issue discussed in the link .Could you please check this link

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/image-not-rendering-on-a-p...

Hope this will help.

Thanks

View solution in original post

9 Replies

Avatar

Community Advisor

Hi @hagrid,

Could you check,

  • If bundle is in Active state?
  • If there are error in developer console?
  • If there is any error in error.log

that gives you pointer to fix the issue.

Also, Did you install the core components manually on top? - The SDK and AEMaaCS have the Core Components already installed at /libs. You can't install the Core Components on you own in a different version. This is only necessary for OnPrem Customer which are using AEM 6.5.

Hope that helps!

Regards,
Santosh

Avatar

Level 2

In error log it shows like this org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable... in this case how to resolve it ?

Avatar

Community Advisor

@hagrid 

Sometime the JSP classes will not get compiled automatically in Adobe Experience Manager(AEM).  Strange UI issues can compilation errors may be seen in the logs. 

Recompiling the JSP classes with steps below wil resolve many of such issues:  

  1. Login via the AEM System Console http://hos:port/system/console/slingjsp
  2. Click on Recompile all JSPs

Alternatively, 

  1. Log via CRXDE Lite
  2. Browse to /var/clientlibs
  3. Delete all contents under /var/clientlibs with the exception of rep:policy
  4. Click Save All

Avatar

Level 2

@SantoshSai Web capture_28-11-2022_95157_localhost.jpeg

cannot able to delete files in var/clientlibs/rep:policy and other side  http://hos:port/system/console/slingjsp cannot able to open the slingjsp.

Avatar

Community Advisor

@hagrid Please don't delete any rep:policy (Delete all contents under /var/clientlibs with the exception of rep:policy)

About Sling JSP:

That option was removed in 6.5. Now, Classes and Slightly cache is stored in the Apache Sling Commons FileSystem ClassLoader. Check point 2 at [1] on how to clear classes and sightly cache

[1] How to force a recompilation of all Sling scripts jsps, java, and sightly in AEM 6.4

Avatar

Level 2

@SantoshSai Web capture_28-11-2022_14258_localhost.jpeg

I followed the steps and reinstalled client libraries & cleared class loader but still the issue not resolved...still the image not showing in the page.

Avatar

Community Advisor

Hi

 

Could you please check your dam and image path ? is image is available there?

Can you check the policy of image component? 

Can you check the console error.is there any error( 500 any internal server) when load the image in component ?

 

Thanks 

 

Avatar

Level 2

@KNan I checked it.but it shows this error "class com.adobe.cq.wcm.core.components.internal.link.LinkHandler cannot be cast to class com.adobe.cq.wcm.core.components.internal.link.LinkHandler (com.adobe.cq.wcm.core.components.internal.link.LinkHandler is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @602a8339; com.adobe.cq.wcm.core.components.internal.link.LinkHandler is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @6849c8df)"

Avatar

Correct answer by
Community Advisor

Hi @hagrid

The same issue discussed in the link .Could you please check this link

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/image-not-rendering-on-a-p...

Hope this will help.

Thanks