java.lang.VerifyError during class loading (Instruction type does not match stack map)
See original GitHub issueDuring maven build some constructors are enhanced using a net.bytebuddy.build.Plugin, the code added to the constructor(s) can be found here
While this works without any issues on my local machine all builds of the travis build (openjdk8/11/14 and oraclejdk11) are not working: During class loading the verifier throws an exception:
java.lang.VerifyError: Instruction type does not match stack map
Exception Details: Location:
com/github/pfichtner/bytebuddy/pg/_4_no_anno_apt/Person.<init>(Ljava/lang/String;Lcom/github/pfichtner/bytebuddy/pg/_4_no_anno_apt/Person$auxiliary$JNmEMluC;)V @4: aload_2
Reason:
Type uninitializedThis (current frame, locals[2]) is not assignable to 'com/github/pfichtner/bytebuddy/pg/_4_no_anno_apt/Person$auxiliary$JNmEMluC' (stack map, locals[2])
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (6 by maintainers)
Top Results From Across the Web
java.lang.VerifyError: Stack map does not match the one at ...
Start your application in verbose mode and make java log all the classes it is loading to see where the conflicting class is...
Read more >java.lang.VerifyError: Stack map does not match the one at ...
VerifyError : Stack map does not match the one at exception handler with java 14. Hi,. I'm using glowroot with java 8 &...
Read more >How to Fix java.lang.VerifyError: Expecting a stack map frame ...
VerifyError : Expecting a stack map frame at branch target 14 in method at offset JDK 7 [Solved]. Hello guys, today, we'll take...
Read more >java.lang.VerifyError: Stack map does not ... - Google Groups
Hi,. I got VerifyError below when running application with JaCoCo(tried both on 0.7.2 and 0.7.9) instrumented class BaseEntityManager (attached).
Read more >Causes and Avoidance of java.lang.VerifyError - Baeldung
During runtime, the JVM will load .class files and attempt to link them together to form an executable — but the validity of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Using
SuperMethodCall.INSTANCE.andThen(MethodDelegation.to(...))
you can add code to the end, but you can also combine them the other way. Note that you cannot accessthis
or field values if you do it before. By using rebasing (the default), the code will be added.Is your Jenkins running another agent?
In your case, I’d try using
Advice
what is more friendly with constructors and allows for inlining.