java.lang.reflect.InvocationTargetException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Code crashes if you try to use BitSet
    via GitHub by axc
    ,
    • java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at battlecode.instrumenter.SandboxedRobotPlayer.lambda$new$2(SandboxedRobotPlayer.java:176) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.VerifyError: Bad type on operand stack Exception Details: Location: instrumented/java/util/BitSet.stream()Linstrumented/java/util/stream/IntStream; @1: invokedynamic Reason: Type 'instrumented/java/util/BitSet' (current frame, stack[0]) is not assignable to 'java/util/BitSet' Current Frame: bci: @1 flags: { } locals: { 'instrumented/java/util/BitSet' } stack: { 'instrumented/java/util/BitSet' } Bytecode: 0x0000000: 2aba 0181 0000 1140 5503 124b b800 43b8 0x0000010: 0187 1255 b800 43b0 at examplefuncsplayer.RobotPlayer.run(RobotPlayer.java:16) ... 6 more
    No Bugmate found.