java.lang.VerifyError: Bad local variable type Exception Details: Location: gsa/jerusalem/naming/ptp/PTPServerEodPositionHelper.fillResponse(Lgsa/jerusalem/protocol/ptp/PTPResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lgsa/jerusalem/protocol/ptp/PTPCommand;Ljava/lang/String;)V @73: aload Reason: Type top (current frame, locals[7]) is not assignable to reference type Current Frame: bci: @73 flags: { } locals: { 'gsa/jerusalem/naming/ptp/PTPServerEodPositionHelper', 'gsa/jerusalem/protocol/ptp/PTPResponse', 'java/lang/String', 'java/lang/String', 'java/lang/String', 'gsa/jerusalem/protocol/ptp/PTPCommand', 'java/lang/String', top, '[Ljava/lang/String;', 'java/lang/String', 'gsa/shared/datetime/XDate' } stack: { 'java/util/logging/Logger', 'java/lang/String', '[Ljava/lang/Object;', '[Ljava/lang/Object;', integer } ...

Stack Overflow | oxbow_lakes | 3 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

    SBT and JDK8 incremental compilation issue: "java.lang.VerifyError: Bad local variable type"

    Stack Overflow | 3 years ago | oxbow_lakes
    java.lang.VerifyError: Bad local variable type Exception Details: Location: gsa/jerusalem/naming/ptp/PTPServerEodPositionHelper.fillResponse(Lgsa/jerusalem/protocol/ptp/PTPResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lgsa/jerusalem/protocol/ptp/PTPCommand;Ljava/lang/String;)V @73: aload Reason: Type top (current frame, locals[7]) is not assignable to reference type Current Frame: bci: @73 flags: { } locals: { 'gsa/jerusalem/naming/ptp/PTPServerEodPositionHelper', 'gsa/jerusalem/protocol/ptp/PTPResponse', 'java/lang/String', 'java/lang/String', 'java/lang/String', 'gsa/jerusalem/protocol/ptp/PTPCommand', 'java/lang/String', top, '[Ljava/lang/String;', 'java/lang/String', 'gsa/shared/datetime/XDate' } stack: { 'java/util/logging/Logger', 'java/lang/String', '[Ljava/lang/Object;', '[Ljava/lang/Object;', integer } ...
  2. 0

    VerifyError: Bad type on operand stack

    java.net | 11 months ago
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: A.main([Ljava/lang/String;)V @1: invokedynamic Reason: Type '[Ljava/lang/String;' (current frame, stack[0]) is not assignable to 'A' Current Frame: bci: @1 flags: { } locals: { '[Ljava/lang/String;' } stack: { '[Ljava/lang/String;' } Bytecode: 0000000: 2aba 0002 0000 4cb1
  3. 0

    Calling an Extension Method While Invoking A Method Throws Verify Error: Bad type on operand stack

    GitHub | 1 year ago | ntroutman
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: VerifyErrorBadOperandLombokExtensionMethodTest.main([Ljava/lang/String;)V @19: checkcast Reason: Type integer (current frame, stack[1]) is not assignable to 'java/lang/Object' Current Frame: bci: @19 flags: { } locals: { '[Ljava/lang/String;', 'VerifyErrorBadOperandLombokExtensionMethodTest$CanReturnInt' } stack: { 'java/lang/Object', integer } Bytecode: 0x0000000: bb00 1059 b700 124c bb00 0359 b700 082b 0x0000010: b600 13c0 0017 b800 19b2 001f 1225 b600 0x0000020: 27b1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.VerifyError: Inconsistent stackmap frames at branch target

    GitHub | 10 months ago | hatcherunh
    java.lang.VerifyError: Inconsistent stackmap frames at branch target 48 Exception Details: Location: test1.main([Ljava/lang/String;)V @48: iconst_1 Reason: Type top (current frame, locals[6]) is not assignable to double (stack map, locals[6]) Current Frame: bci: @41 flags: { } locals: { '[Ljava/lang/String;', double, double_2nd, integer, integer, top, top, double, double_2nd } stack: { integer } Stackmap Frame: bci: @48 flags: { } locals: { '[Ljava/lang/String;', double, double_2nd, integer, integer, top, double, double_2nd } stack: { } Bytecode: 0x0000000: 0387 4804 3e04 3604 a700 1027 3905 1805 0x0000010: 0f98 9c00 06a7 0008 1504 9aff f1a7 0016 0x0000020: 033e 2739 0718 070f 989b 0007 03a7 0004 0x0000030: 0436 091d 9aff ecb1 Stackmap Table: append_frame(@11,Double,Integer,Integer) same_frame(@24) same_frame(@29) same_frame(@32) append_frame(@48,Top,Double) same_locals_1_stack_item_frame(@49,Integer) chop_frame(@51,1)
  6. 0

    GitHub comment 13#36091974

    GitHub | 3 years ago | rillip3
    java.lang.VerifyError: Bad local variable type Exception Details: Location: breaktest.main([Ljava/lang/String;)V @26: iload_0 Reason: Type top (current frame, locals[0]) is not assignable to integer Current Frame: bci: @26 flags: { } locals: { top, integer } stack: { 'java/io/PrintStream' } Bytecode: 0000000: 1100 003b 1100 003c 1100 0011 0000 a000 0000010: 0704 a700 0403 3cb2 0011 1ab6 0017 b1 Stackmap Table: full_frame(@21,{Integer,Integer},{}) full_frame(@22,{},{Integer})

    2 unregistered visitors
    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. java.lang.VerifyError

      Bad local variable type Exception Details: Location: gsa/jerusalem/naming/ptp/PTPServerEodPositionHelper.fillResponse(Lgsa/jerusalem/protocol/ptp/PTPResponse;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lgsa/jerusalem/protocol/ptp/PTPCommand;Ljava/lang/String;)V @73: aload Reason: Type top (current frame, locals[7]) is not assignable to reference type Current Frame: bci: @73 flags: { } locals: { 'gsa/jerusalem/naming/ptp/PTPServerEodPositionHelper', 'gsa/jerusalem/protocol/ptp/PTPResponse', 'java/lang/String', 'java/lang/String', 'java/lang/String', 'gsa/jerusalem/protocol/ptp/PTPCommand', 'java/lang/String', top, '[Ljava/lang/String;', 'java/lang/String', 'gsa/shared/datetime/XDate' } stack: { 'java/util/logging/Logger', 'java/lang/String', '[Ljava/lang/Object;', '[Ljava/lang/Object;', integer } ...

      at java.lang.Class.getDeclaredMethods0()
    2. Java RT
      Class.getDeclaredMethods
      1. java.lang.Class.getDeclaredMethods0(Native Method)
      2. java.lang.Class.privateGetDeclaredMethods(Class.java:2688)
      3. java.lang.Class.getDeclaredMethods(Class.java:1962)
      3 frames
    3. SBT
      ClassToAPI$$anonfun$process$1.apply
      1. sbt.ClassToAPI$.structure(ClassToAPI.scala:72)
      2. sbt.ClassToAPI$.x$2$lzycompute$1(ClassToAPI.scala:61)
      3. sbt.ClassToAPI$.x$2$1(ClassToAPI.scala:61)
      4. sbt.ClassToAPI$.instance$lzycompute$1(ClassToAPI.scala:61)
      5. sbt.ClassToAPI$.sbt$ClassToAPI$$instance$1(ClassToAPI.scala:61)
      6. sbt.ClassToAPI$$anonfun$5.apply(ClassToAPI.scala:62)
      7. sbt.ClassToAPI$$anonfun$5.apply(ClassToAPI.scala:62)
      8. xsbti.SafeLazy$Impl._t$lzycompute(SafeLazy.scala:18)
      9. xsbti.SafeLazy$Impl._t(SafeLazy.scala:16)
      10. xsbti.SafeLazy$Impl.get(SafeLazy.scala:22)
      11. sbt.ClassToAPI$$anonfun$process$1.apply(ClassToAPI.scala:21)
      12. sbt.ClassToAPI$$anonfun$process$1.apply(ClassToAPI.scala:21)
      12 frames
    4. Scala
      ListBuffer.foreach
      1. scala.collection.immutable.List.foreach(List.scala:318)
      2. scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
      3. scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:45)
      3 frames
    5. SBT
      Analyze$$anonfun$apply$9.apply
      1. sbt.ClassToAPI$.process(ClassToAPI.scala:21)
      2. sbt.compiler.AggressiveCompile$$anonfun$3.sbt$compiler$AggressiveCompile$$anonfun$$readAPI$1(AggressiveCompile.scala:127)
      3. sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$2$$anonfun$apply$mcV$sp$2$$anonfun$apply$6.apply(AggressiveCompile.scala:135)
      4. sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$2$$anonfun$apply$mcV$sp$2$$anonfun$apply$6.apply(AggressiveCompile.scala:135)
      5. sbt.classfile.Analyze$$anonfun$apply$9.apply(Analyze.scala:42)
      6. sbt.classfile.Analyze$$anonfun$apply$9.apply(Analyze.scala:41)
      6 frames
    6. Scala
      TraversableLike$WithFilter.foreach
      1. scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
      2. scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)
      3. scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)
      4. scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:226)
      5. scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)
      6. scala.collection.mutable.HashMap.foreach(HashMap.scala:98)
      7. scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
      7 frames
    7. SBT
      AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$2$$anonfun$apply$mcV$sp$2.apply
      1. sbt.classfile.Analyze$.apply(Analyze.scala:41)
      2. sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$2$$anonfun$apply$mcV$sp$2.apply(AggressiveCompile.scala:135)
      3. sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$2$$anonfun$apply$mcV$sp$2.apply(AggressiveCompile.scala:133)
      3 frames
    8. Scala
      TraversableLike$WithFilter.foreach
      1. scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
      2. scala.collection.immutable.List.foreach(List.scala:318)
      3. scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
      3 frames
    9. SBT
      Defaults$$anonfun$compileTask$1.apply
      1. sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$2.apply$mcV$sp(AggressiveCompile.scala:133)
      2. sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$2.apply(AggressiveCompile.scala:133)
      3. sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$2.apply(AggressiveCompile.scala:133)
      4. sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:162)
      5. sbt.compiler.AggressiveCompile$$anonfun$3.compileJava$1(AggressiveCompile.scala:132)
      6. sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:139)
      7. sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:86)
      8. sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:38)
      9. sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:36)
      10. sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:31)
      11. sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:39)
      12. sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:38)
      13. sbt.inc.Incremental$.manageClassfiles(Incremental.scala:66)
      14. sbt.inc.Incremental$.compile(Incremental.scala:38)
      15. sbt.inc.IncrementalCompile$.apply(Compile.scala:26)
      16. sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:153)
      17. sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:70)
      18. sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:45)
      19. sbt.Compiler$.apply(Compiler.scala:74)
      20. sbt.Compiler$.apply(Compiler.scala:65)
      21. sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:773)
      22. sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:765)
      23. sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:765)
      23 frames
    10. Scala
      Function1$$anonfun$compose$1.apply
      1. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
      1 frame
    11. SBT
      $tilde$greater$$anonfun$$u2219$1.apply
      1. sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
      1 frame
    12. sbt Task system
      Transform$$anon$4.work
      1. sbt.std.Transform$$anon$4.work(System.scala:63)
      1 frame
    13. SBT
      CompletionService$$anon$2.call
      1. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
      2. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
      3. sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
      4. sbt.Execute.work(Execute.scala:235)
      5. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
      6. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
      7. sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
      8. sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
      8 frames
    14. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      6. java.lang.Thread.run(Thread.java:744)
      6 frames