battlecode.instrumenter.InstrumentationException

ILLEGAL Illegal class: testplayerarray/RobotPlayer; this class cannot be referenced by player code.

Solutions on the web3

  • ILLEGAL Illegal class: testplayerarray/RobotPlayer; this class cannot be referenced by player code.
  • via GitHub by omelkonian
    , 5 months ago
    ILLEGAL Illegal class: scala/reflect/ClassTag$ this class cannot be referenced by player code.
  • via GitHub by BrianGuo
    , 6 months ago
    ILLEGAL Team is known to have errors
  • Stack trace

    • battlecode.instrumenter.InstrumentationException: ILLEGAL Illegal class: testplayerarray/RobotPlayer; this class cannot be referenced by player code. at battlecode.instrumenter.bytecode.ClassReferenceUtil.classReference(ClassReferenceUtil.java:171) at battlecode.instrumenter.bytecode.ClassReferenceUtil.classReference(ClassReferenceUtil.java:150) at battlecode.instrumenter.bytecode.InstrumentingMethodVisitor.classReference(InstrumentingMethodVisitor.java:78) at battlecode.instrumenter.bytecode.InstrumentingMethodVisitor.replaceVars(InstrumentingMethodVisitor.java:623) at battlecode.instrumenter.bytecode.InstrumentingMethodVisitor.visitFrameNode(InstrumentingMethodVisitor.java:630) at battlecode.instrumenter.bytecode.InstrumentingMethodVisitor.visitMaxs(InstrumentingMethodVisitor.java:135) at org.objectweb.asm.ClassReader.a(Unknown Source) at org.objectweb.asm.ClassReader.b(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at battlecode.instrumenter.TeamClassLoaderFactory$Loader.instrument(TeamClassLoaderFactory.java:509) at battlecode.instrumenter.TeamClassLoaderFactory$Loader.loadClass(TeamClassLoaderFactory.java:430) at battlecode.instrumenter.SandboxedRobotPlayer.loadAndRunPlayer(SandboxedRobotPlayer.java:238) at battlecode.instrumenter.SandboxedRobotPlayer.lambda$new$2(SandboxedRobotPlayer.java:180) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    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.