ClassNotFound: When using VirtualMachine.loadAgent
Hello im trying to dynamically load an agent with virtual machine but when I load on a non custom class loader jvm it works but when I load on a custom one it throws a ClassNotFound and my agentmain is not called is there a way to load the agent on the custom class loader or not
3 Replies
⌛
This post has been reserved for your question.
Hey @$! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Is the agent loaded using a custom class loader or is the code the agent is processing loaded by a custom class loader?
Also dynamically loading agents is a bad idea in most cases
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.