-
Notifications
You must be signed in to change notification settings - Fork 53
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
Illegal Access Error #16
Comments
Same thing here, did you manage to fix it? After trying to see what is the source of the problem, seems to be line 60, the invoke_method fails. java.lang.IllegalArgumentException: object is not an instance of declaring class |
I solved the problem in this way :
The excpetion was not very clear, so I updated org.ow2.asm from version 5.2 to version 7.2. It is compiling fine now. |
adding "--illegal-permit access" at the end of the cmd seems to fix this issue. |
I fixed the bug by using java8 instead of other versions. |
I was getting same error, changing to java8 version worked. |
Hi,
When I run
java -cp ./instrumentor/build/libs/kelinci.jar edu.cmu.sv.kelinci.instrumentor.Instrumentor -i ../bin -o ../bin-instrumented
I get the following errorLoading dir: ../bin Found file ../bin/sorting_algo/sorting.class Found file ../bin/Driver.class WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by edu.cmu.sv.kelinci.instrumentor.Options (file:/home/amit/dev-work/Cost_Model_NN/new_fuzzing/kelinci/instrumentor/build/libs/kelinci.jar) to method java.net.URLClassLoader.addURL(java.net.URL) WARNING: Please consider reporting this to the maintainers of edu.cmu.sv.kelinci.instrumentor.Options WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Exception in thread "main" java.lang.RuntimeException: Error adding location to class path: ../bin at edu.cmu.sv.kelinci.instrumentor.Options.addToClassPath(Options.java:62) at edu.cmu.sv.kelinci.instrumentor.Options.getInput(Options.java:46) at edu.cmu.sv.kelinci.instrumentor.Instrumentor.main(Instrumentor.java:43)
I have tried changing my JDK from 11 to 8 but I still get the same error. Any ideas on how to fix this?
Thanks
The text was updated successfully, but these errors were encountered: