I have just upgraded our build to use the latest AEM SDK, however everything that uses JSON now fails to run with the following errors
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Got the same issue earlier, I am assuming you are using GSON version 2.8.9 or older in your code.
Update the version to [2.9.0] and test your code that uses GSON library. Everything should get fixed after this.
Hi @taggatmerkle ,
I would assume that you include com.google.code.gson dependency with newer version in your pom.xml.
Please check through the Package Dependencies (/system/console/depfinder) latest version that is provided within AEM SDK API dependency. If you bundle is importing another version, please update dependency version to one that is provided with AEM SDK API.
Also double check deprecated API: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/release-notes/de...
Best regards,
Kostiantyn Diachenko.

Yes we did, but it seems to get ignored since the SDK has a version of gson in it.
To get around this i have removed GSON from all of our code and used ObjectMapper instead.
Got the same issue earlier, I am assuming you are using GSON version 2.8.9 or older in your code.
Update the version to [2.9.0] and test your code that uses GSON library. Everything should get fixed after this.
@taggatmerkle Did you find the suggestions helpful? If you need more information, please let us know. If a response resolved your issue, kindly mark it as correct to help others in the future. Alternatively, if you discovered a solution on your own, we'd appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
Yes the reply by sharma_g resolved the issue and everything is working as expected (thought i had marked it as correct but can't see that now)