Uploaded image for project: 'Opencast'
  1. MH-12459

ClassCastException in ConductingEpisodeUpdatedEventHandler$MessageWatcher when deleting an event

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects versions: 5.0
    • Fix versions: 4.0
    • Components: Backend Software
    • Labels:
      None
    • Severity:
      Incorrectly Functioning Without Workaround
    • Steps to reproduce:
      Hide
      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.


       





      Show
      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.  

      TestRail: Results

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                lkiesow Lars Kiesow
                Reporter:
                rute_santos Rute Santos
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  TestRail: Cases