question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.VerifyError during class loading (Instruction type does not match stack map)

See original GitHub issue

During 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])

(see https://travis-ci.org/github/pfichtner/jsr380-pg)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
raphwcommented, Sep 9, 2020

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 access this or field values if you do it before. By using rebasing (the default), the code will be added.

0reactions
raphwcommented, Oct 24, 2020

Is your Jenkins running another agent?

In your case, I’d try using Advice what is more friendly with constructors and allows for inlining.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found