Skip to content

Why my interceptor never get executed ? #1836

Answered by raphw
OldFarmer86 asked this question in Q&A
Discussion options

You must be logged in to vote

Multiple problems:

  1. Your class is already loaded, so you would need to retransform it. Register a RetransformationStrategy for this.
  2. You need to adjust your ignore matcher. By default Byte Buddy ignores all JVM classes.
  3. Method delegation needs to be able to see the inserted code. This won't work as bootstrap classes do not see your agent's code. Advice inlines code what does not imply this problem. (You will likely need to inject your helper classes into the boot loader.)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by OldFarmer86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants