magic.exception.GameException: magic.exception.GameException: magic.exception.GameException: java.lang.ClassCastException: magic.model.action.ChangeStateAction cannot be cast to magic.model.MagicPermanent

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by melvinzhang
, 1 year ago
magic.exception.GameException: magic.exception.GameException: java.lang.ClassCastException: magic.model.action.ChangeStateAction cannot be cast to magic.model.MagicPermanent
via GitHub by melvinzhang
, 1 year ago
magic.exception.GameException: java.lang.ClassCastException: magic.model.MagicPermanent cannot be cast to magic.model.MagicPlayer
via GitHub by melvinzhang
, 2 years ago
java.lang.ClassCastException: magic.model.MagicCard$1 cannot be cast to magic.model.MagicPermanent
via GitHub by melvinzhang
, 2 years ago
magic.exception.GameException: java.lang.RuntimeException: getTargetChoice called on MagicEvent.NONE
via GitHub by melvinzhang
, 1 year ago
magic.exception.GameException: java.lang.RuntimeException: getTargetChoice called on MagicEvent.NONE
via GitHub by melvinzhang
, 2 years ago
magic.exception.GameException: java.lang.RuntimeException: getTargetChoice called on MagicEvent.NONE
magic.exception.GameException: magic.exception.GameException: magic.exception.GameException: java.lang.ClassCastException: magic.model.action.ChangeStateAction cannot be cast to magic.model.MagicPermanent
at magic.model.trigger.ThisBecomesBlockedTrigger.accept(ThisBecomesBlockedTrigger.java:8)
at magic.model.MagicGame.executeTrigger(MagicGame.java:1343)
at magic.model.MagicGame.executeTrigger(MagicGame.java:1379)
at magic.model.action.ChangeStateAction.doAction(ChangeStateAction.java:35)
at magic.model.MagicGame.doAction(MagicGame.java:553)
at magic.model.action.PlayCardFromStackAction.doAction(PlayCardFromStackAction.java:61)
at magic.model.MagicGame.doAction(MagicGame.java:553)
at magic.model.event.MagicPlayCardEvent$1.executeEvent(MagicPlayCardEvent.java:27)
at magic.model.event.MagicEvent.executeEvent(MagicEvent.java:746)
at magic.model.MagicGame.executeEvent(MagicGame.java:775)
at magic.model.stack.MagicItemOnStack.resolve(MagicItemOnStack.java:129)
at magic.model.stack.MagicCardOnStack.resolve(MagicCardOnStack.java:112)
at magic.model.action.StackResolveAction.doAction(StackResolveAction.java:13)
at magic.model.MagicGame.doAction(MagicGame.java:553)
at magic.model.phase.MagicPhase.executePhase(MagicPhase.java:43)
at magic.model.MagicGame.executePhase(MagicGame.java:469)
at magic.model.MagicGame.advanceToNextEventWithChoice(MagicGame.java:794)
at magic.ai.VegasWorker.runGame(VegasWorker.java:26)
at magic.ai.VegasWorker.run(VegasWorker.java:43)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.