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 } ...


Solutions on the web

Solution icon of stackoverflow
/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

Solution icon of github
Bad type on operand stack in arraylength Exception Details: Location: com.example.FooTest.bar()V @852: arraylength Reason: Invalid type: 'java/lang/Object' (current frame, stack[0]) Current Frame: bci: @852 flags

Solution icon of github
Bad local variable type Exception Details: Location: pouet.__$$_closure_0(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; @0: aload_2 Reason: Type top (current frame, locals[2]) is not assignable to reference type Current Frame

Solution icon of github
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

Solution icon of web
]) is not assignable to 'javasoft/sqe/tests/lang/lmbd010/lmbd01001m6/lmbd01001m6' Current Frame: bci: @1 flags: { } locals: { '[Ljava/lang/String;', 'java/io/PrintStream' } stack: { '[Ljava/lang/String;' } Bytecode: 0000000: 2aba

Solution icon of web
via java.net by Unknown author, 5 months ago
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

Solution icon of openjdk
via JDK Bug System by Webbug Group, 6 months ago
Bad return type Exception Details: Location: TestFailing.lambda$main$1(LTestFailing$Function2;Ljava/lang/Integer;)Ljava/lang/Integer; @11: areturn Reason: Type 'java/lang/Object' (current frame, stack[0]) is not assignable to 'java/lang

Solution icon of github
via GitHub by rillip3
, 1 year ago
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

Solution icon of web
via java.net by Unknown author, 1 year ago
Bad type on operand stack Exception Details: Location: Valhalla.main([Ljava/lang/String;)V @36: invokevirtual Reason: Type 'Valhalla$Point3D' (current frame, stack[2]) is not assignable to 'Valhalla$Point3D${0=I}' Current Frame

Solution icon of github
Bad type on operand stack Exception Details: Location: If.main([Ljava/lang/String;)V @21: ifeq Reason: Type top (current frame, stack[0]) is not assignable to integer Current Frame: bci: @21 flags: { } locals: { '[Ljava

Stack trace

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

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

5 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 more bugmates