java.lang.ClassCastException: megamek.common.actions.WeaponAttackAction cannot be cast to megamek.common.actions.ArtilleryAttackAction

GitHub | arlith | 12 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ClassCastException with Princess and Artillery attacks

    GitHub | 12 months ago | arlith
    java.lang.ClassCastException: megamek.common.actions.WeaponAttackAction cannot be cast to megamek.common.actions.ArtilleryAttackAction

    Root Cause Analysis

    1. java.lang.ClassCastException

      megamek.common.actions.WeaponAttackAction cannot be cast to megamek.common.actions.ArtilleryAttackAction

      at megamek.common.weapons.ArtilleryWeaponIndirectFireHandler.handle()
    2. megamek.common.weapons
      ArtilleryWeaponIndirectFireHandler.handle
      1. megamek.common.weapons.ArtilleryWeaponIndirectFireHandler.handle(ArtilleryWeaponIndirectFireHandler.java:105)
      1 frame
    3. megamek.server
      Server$PacketPump.run
      1. megamek.server.Server.handleAttacks(Server.java:33517)
      2. megamek.server.Server.endCurrentPhase(Server.java:2868)
      3. megamek.server.Server.changeToNextTurn(Server.java:3182)
      4. megamek.server.Server.endCurrentTurn(Server.java:2268)
      5. megamek.server.Server.receiveAttack(Server.java:12444)
      6. megamek.server.Server.handle(Server.java:29452)
      7. megamek.server.Server$PacketPump.run(Server.java:348)
      7 frames