Not able to create Dynamic Media Configurations in AEM after upgrading to Service Pack 11.

Description

Admin is not able to create dynamic media configurations inside Global folder after updating the AEM to service pack 11.

Error: Connection has failed is shown on the UI.


The issue only occurs after upgrading the service pack to 11.

Screenshot:

Errors in the Logs:

ERROR: And the following errors can be seen in the error logs:
ERROR 88.198.190.189 1649063458948 POST /libs/settings/dam/scene7/endpoints/europe/jcr:content.companies.json HTTP/1.1 org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable
java.lang.NullPointerException: null
In the console, this error is printed:
POST http://18.193.241.174:4502/libs/settings/dam/scene7/endpoints/europe/jcr:content.companies.json 500 (Server Error)

These additional errors can also be seen in the error logs:
ERROR Apache Sling Repository Startup Thread #1 com.day.cq.dam.scene7.impl.utils.RequestUtils Unable to create jaxbinstance :
javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
ERROR 88.198.190.189 1649328294390 POST /libs/settings/dam/scene7/endpoints/europe/jcr:content.companies.json HTTP/1.1 com.day.cq.dam.scene7.impl.utils.Request
Utils Unable to create jaxbinstance :
java.lang.NullPointerException: null
ERROR sling-oak-observation-1 com.day.cq.dam.scene7.impl.utils.RequestUtils Unable to create jaxbinstance :
java.lang.NullPointerException: null

Steps to Reproduce:
1: Navigate to Tools - Cloud Services.
2: Click on Dynamic Media Configuration.
3: Try to connect to Dynamic Media.

Resolution

We need to remove the below bundles from the system/console if present

  1. jaxb annotations v2.9.8
  2. jaxb api v2.3.1

After removing the above bundles, AEM should be left with just these bundles -

  1. jaxb runtime v2.3.2.2
  2. jaxb-api-2.3 v2.3.0.3

Following the above steps, perform a restart of the setup. And you should be able to create Dynamic Media Configurations.

On this page