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

GitHub | Pear0 | 2 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    InstrumentationException with enhanced for loops

    GitHub | 2 months ago | Pear0
    battlecode.instrumenter.InstrumentationException: ILLEGAL Illegal class: testplayerarray/RobotPlayer; this class cannot be referenced by player code.
  2. 0

    GitHub comment 403#272957747

    GitHub | 2 months ago | omelkonian
    battlecode.instrumenter.InstrumentationException: ILLEGAL Illegal class: scala/reflect/ClassTag$ this class cannot be referenced by player code.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 345#271963835

    GitHub | 2 months ago | BrianGuo
    battlecode.instrumenter.InstrumentationException: ILLEGAL Team is known to have errors
  5. 0

    Error while instrumenting class org.jacoco.examples.CoreTutorial$TestTarget

    Google Groups | 1 year ago | Unknown author
    java.io.IOException: Error while instrumenting class org.jacoco.examples.CoreTutorial$TestTarget.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. battlecode.instrumenter.InstrumentationException

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

      at battlecode.instrumenter.bytecode.ClassReferenceUtil.classReference()
    2. battlecode.instrumenter.bytecode
      InstrumentingMethodVisitor.visitMaxs
      1. battlecode.instrumenter.bytecode.ClassReferenceUtil.classReference(ClassReferenceUtil.java:171)
      2. battlecode.instrumenter.bytecode.ClassReferenceUtil.classReference(ClassReferenceUtil.java:150)
      3. battlecode.instrumenter.bytecode.InstrumentingMethodVisitor.classReference(InstrumentingMethodVisitor.java:78)
      4. battlecode.instrumenter.bytecode.InstrumentingMethodVisitor.replaceVars(InstrumentingMethodVisitor.java:623)
      5. battlecode.instrumenter.bytecode.InstrumentingMethodVisitor.visitFrameNode(InstrumentingMethodVisitor.java:630)
      6. battlecode.instrumenter.bytecode.InstrumentingMethodVisitor.visitMaxs(InstrumentingMethodVisitor.java:135)
      6 frames
    3. Felix iPOJO
      ClassReader.accept
      1. org.objectweb.asm.ClassReader.a(Unknown Source)
      2. org.objectweb.asm.ClassReader.b(Unknown Source)
      3. org.objectweb.asm.ClassReader.accept(Unknown Source)
      4. org.objectweb.asm.ClassReader.accept(Unknown Source)
      4 frames
    4. battlecode.instrumenter
      SandboxedRobotPlayer.lambda$new$2
      1. battlecode.instrumenter.TeamClassLoaderFactory$Loader.instrument(TeamClassLoaderFactory.java:509)
      2. battlecode.instrumenter.TeamClassLoaderFactory$Loader.loadClass(TeamClassLoaderFactory.java:430)
      3. battlecode.instrumenter.SandboxedRobotPlayer.loadAndRunPlayer(SandboxedRobotPlayer.java:238)
      4. battlecode.instrumenter.SandboxedRobotPlayer.lambda$new$2(SandboxedRobotPlayer.java:180)
      4 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame