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
      Fire.run
      1. sample.Fire.run(Fire.java:47)
      1 frame
    4. robocode.peer.proxies
      HostingRobotProxy.run
      1. robocode.peer.proxies.HostingRobotProxy.run(Unknown Source)
      1 frame
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame