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

WARNING: An illegal reflective access operation has occurred #87

Open
perl-monger opened this issue Sep 25, 2020 · 2 comments · May be fixed by #113
Open

WARNING: An illegal reflective access operation has occurred #87

perl-monger opened this issue Sep 25, 2020 · 2 comments · May be fixed by #113

Comments

@perl-monger
Copy link

Hi.
I am getting following warnings while connecting to the jxm console:
$ java -jar /vendor/jmxterm/jmxterm-1.0.2-uber.jar -l 119511
Delete /u01/app/home/asmsadm/.jmxterm_history if you encounter error right after launching me.WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.cyclopsgroup.jmxterm.utils.WeakCastUtils$2 (file:/vendor/jmxterm/jmxterm-1.0.2-uber.jar) to method sun.tools.jconsole.LocalVirtualMachine.getAllVirtualMachines()
WARNING: Please consider reporting this to the maintainers of org.cyclopsgroup.jmxterm.utils.WeakCastUtils$2
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
Welcome to JMX terminal. Type "help" for available commands.
$>Fri Sep 25 15:18:45 EDT 2020: Connected nj01smgapp5061.smg.iconectiv.com
/
#IllegalArgumentException: Command / isn't valid, run help to see available commands
$>
$>

@perl-monger
Copy link
Author

This with Oracle JDK version 11.0.2.

@jluehe
Copy link
Contributor

jluehe commented Oct 7, 2020

I was able to work around this warning by launching jmxterm with the "--add-exports jdk.jconsole/sun.tools.jconsole=ALL-UNNAMED" directive. I don't believe a proper "supported" replacement for the affected API exists yet.

@nyg nyg linked a pull request Feb 4, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants