Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Getting client ID error when trying to extend pdf viewer core component in AEM 6.4

minisanu
Level 3
Level 3

Hi Everyone,

 

I tried to extend pdfviewer core component into my project to view the pdf docs. I have downloaded core-wcm-components v 2.10.0 from github and installed in local server. I have created sling :config inside conf folder for Pdf viewer configuration which has the client id and report suite id.I also embedded the clientlibs into base clientlibs of my project.I am getting error

minisanu_0-1597824006734.png

 


 
Updating Media

 

 

 

 

Adobe Experience Manager core components PDF
1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

Did you use this context aware configuration in the content tree https://sling.apache.org/documentation/bundles/context-aware-configuration/context-aware-configurati...

 

e.g. /content/yourproj/home

 

Resolved the error. It was dependency issue. I changed the dependency for javax.json.JsonObjectBuilder

View solution in original post

6 Replies
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

Did you use this context aware configuration in the content tree https://sling.apache.org/documentation/bundles/context-aware-configuration/context-aware-configurati...

 

e.g. /content/yourproj/home

 

Resolved the error. It was dependency issue. I changed the dependency for javax.json.JsonObjectBuilder

View solution in original post

minisanu
Level 3
Level 3
Arun, Your comments resolved the clientid error. Thanks a lot for that. Even though the clientlibs are loading , i couldn't see the preview of pdf. I have embedded inside project clientlibs.Your answers will be helpful.
Arun_Patidar
Community Advisor
Community Advisor
Did you see any error in the console? or check if the response is returned or not.
minisanu
Level 3
Level 3

Hi Arun,

Ya.I am getting an error in console.PFB the screenshot

minisanu_0-1598269100411.png

Could you please let me know if there s a fix for the above error?

Thanks 

 

minisanu
Level 3
Level 3
Resolved the error. It was dependency issue. I changed the dependency for javax.json.JsonObjectBuilder