Skip to content
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

Error #1

Open
CorruptionHades opened this issue Jun 19, 2023 · 0 comments
Open

Error #1

CorruptionHades opened this issue Jun 19, 2023 · 0 comments

Comments

@CorruptionHades
Copy link

When loading the agent into the target program it creates a new thread and also for some reason doesnt have access to the classes because I get this error
Exception in thread "Attach Listener" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:513)
Caused by: javassist.NotFoundException: program.Utilities
at javassist.ClassPool.get(ClassPool.java:430)
at agent.Agent.agentmain(Agent.java:46)
... 6 more
Agent failed to start!

line 46: CtClass ctClass = classPool.get("program.Utilities");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant