We're updating the issue view to help you get more done. 

ClassCastException in ConductingEpisodeUpdatedEventHandler$MessageWatcher when deleting an event

Steps to reproduce

Steps to reproduce:
1. Schedule an event
2. Delete the event
3. Look at the logs

Actual Results:
(ConductingEpisodeUpdatedEventHandler$MessageWatcher:105) - Problem while getting episode update message events java.lang.ClassCastException: org.opencastproject.message.broker.api.assetmanager.AssetManagerItem$DeleteSnapshot cannot be cast to org.opencastproject.message.broker.api.assetmanager.AssetManagerItem$TakeSnapshot
at org.opencastproject.event.handler.ConductingEpisodeUpdatedEventHandler$MessageWatcher.run(ConductingEpisodeUpdatedEventHandler.java:95)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Expected Results:
No exceptions in log.

This is the line (#95):
AssetManagerItem.TakeSnapshot snapshotItem = (AssetManagerItem.TakeSnapshot) baseMessage.getObject();

It seems to only affect the OAI-PMH handler, which probably should retract the episode when deleted.

Status

Assignee

Lars Kiesow

Reporter

Rute Santos

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

5.0

Priority

Minor