-
-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bytebuddy Not able to locate Custom Advice class file during tranformation #1762
Comments
When you |
Added this class loader in Transformer and passed this as class loader in advice.
After passing it, I was able to resolve the issue with finding Advice classes. Thanks @raphw However, I am facing an issue with Advice's dependencies not loading. for the below advice, okhttp3 is a dependency and facing. Since the provided fat JAR has all the dependencies packaged. It should be able to find the class from there. One more thing, since we are loading the fat JAR into the boot loader it should be available by the system loader or any other loaders which has the Boot Loader as parent.
Stack trace are as below
|
Hi, I am trying to intercept the methods for ThreadPoolExecutor service and wrap them current thread context
Here is the code
But while running the app, advice class is not able to locate by bytebuddy
How to resolve this?
The text was updated successfully, but these errors were encountered: