Skip to content

ClassCastException with org.apache.sling.distribution.DistributionRequestType in CloudDispatcherFlushRulesExecutor.handleEvent #3604

@shivamrastogi1308

Description

@shivamrastogi1308

We are using com.adobe.acs.commons.replication.dispatcher.impl.DispatcherFlushRulesImpl~faq-content-fragment.cfg.json
but with java 21 upgrade deployment we are getting below mentioned error for ClassCastException:

java.lang.ClassCastException: class org.apache.sling.distribution.DistributionRequestType cannot be cast to class java.lang.String (org.apache.sling.distribution.DistributionRequestType is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @556ef35f; java.lang.String is in module java.base of loader 'bootstrap')
at com.adobe.acs.commons.replication.dispatcher.impl.CloudDispatcherFlushRulesExecutor.handleEvent(CloudDispatcherFlushRulesExecutor.java:63)
at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:432) [org.apache.felix.eventadmin:1.6.4]
at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutDenylistTiming(HandlerTask.java:82) [org.apache.felix.eventadmin:1.6.4]
at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:107) [org.apache.felix.eventadmin:1.6.4]
at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:167) [org.apache.felix.eventadmin:1.6.4]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions