java.lang.ClassCastException: robocode.peer.proxies.StandardRobotProxy cannot be cast to robocode.robotinterfaces.peer.IAdvancedRobotPeer

robocode | *anonymous | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Exception when changing between Robot to AdvancedRobot

    robocode | 8 years ago | *anonymous
    java.lang.ClassCastException: robocode.peer.proxies.StandardRobotProxy cannot be cast to robocode.robotinterfaces.peer.IAdvancedRobotPeer

    Root Cause Analysis

    1. java.lang.ClassCastException

      robocode.peer.proxies.StandardRobotProxy cannot be cast to robocode.robotinterfaces.peer.IAdvancedRobotPeer

      at robocode.AdvancedRobot.setTurnGunRight()
    2. robocode
      AdvancedRobot.setTurnGunRight
      1. robocode.AdvancedRobot.setTurnGunRight(Unknown Source)
      1 frame
    3. Java EE Connector Architecture API Specification
      Tracker.onScannedRobot
      1. sample.Tracker.onScannedRobot(Tracker.java:96)
      1 frame
    4. robocode
      Event$HiddenEventHelper.dispatch
      1. robocode.ScannedRobotEvent.dispatch(Unknown Source)
      2. robocode.Event$HiddenEventHelper.dispatch(Unknown Source)
      2 frames
    5. robocode.peer.robot
      EventManager.processEvents
      1. robocode.peer.robot.RobotClassManager.dispatch(Unknown Source)
      2. robocode.peer.robot.EventManager.dispatch(Unknown Source)
      3. robocode.peer.robot.EventManager.processEvents(Unknown Source)
      3 frames
    6. robocode.peer.proxies
      BasicRobotProxy.turnGun
      1. robocode.peer.proxies.BasicRobotProxy.executeImpl(Unknown Source)
      2. robocode.peer.proxies.BasicRobotProxy.execute(Unknown Source)
      3. robocode.peer.proxies.BasicRobotProxy.turnGun(Unknown Source)
      3 frames
    7. robocode
      Robot.turnGunRight
      1. robocode.Robot.turnGunRight(Unknown Source)
      1 frame
    8. Java EE Connector Architecture API Specification
      Tracker.run
      1. sample.Tracker.run(Tracker.java:56)
      1 frame
    9. robocode.peer.proxies
      HostingRobotProxy.run
      1. robocode.peer.proxies.HostingRobotProxy.run(Unknown Source)
      1 frame