robocode.exception.RobotException: You cannot take action inside Condition.test(). You should handle onCustomEvent instead.

robocode | *anonymous | 10 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

    testingCondition flag not reset

    robocode | 10 years ago | *anonymous
    robocode.exception.RobotException: You cannot take action inside Condition.test(). You should handle onCustomEvent instead.

    Root Cause Analysis

    1. robocode.exception.RobotException

      You cannot take action inside Condition.test(). You should handle onCustomEvent instead.

      at robocode.peer.RobotPeer.tick()
    2. robocode.peer
      RobotPeer.tick
      1. robocode.peer.RobotPeer.tick(RobotPeer.java:690)
      1 frame
    3. robocode
      AdvancedRobot.execute
      1. robocode.AdvancedRobot.execute(AdvancedRobot.java:397)
      1 frame
    4. procyon.exception
      Bug.run
      1. procyon.exception.Bug.run(Bug.java:28)
      1 frame
    5. robocode.peer
      RobotPeer.run
      1. robocode.peer.RobotPeer.run(RobotPeer.java:504)
      1 frame
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame