java.lang.ClassCastException: exercise.Contract cannot be cast to exercise.Contr act

robocode | vengmo | 9 years 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

    Using external messaging with JADE

    robocode | 9 years ago | vengmo
    java.lang.ClassCastException: exercise.Contract cannot be cast to exercise.Contr act

    Root Cause Analysis

    1. java.lang.ClassCastException

      exercise.Contract cannot be cast to exercise.Contr act

      at exercise.Soldier.setup()
    2. exercise
      Soldier.setup
      1. exercise.Soldier.setup(Soldier.java:26)
      1 frame
    3. jade
      Agent.run
      1. jade.core.Agent$ActiveLifeCycle.init(Agent.java:1452)
      2. jade.core.Agent.run(Agent.java:1398)
      2 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame