question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Java 9 warning - illegal reflective access

See original GitHub issue

Just wanted to report this warning I’m seeing now since I am giving Java 9 a go (for native alpn/ssl stuff that’s not directly related to Redisson).

This warning is shown on stdout when I start up my runnable/uber jar:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.redisson.config.ConfigSupport (file:/opt/rt_deploy/ej_test/target/rt-push-server.jar) to method java.net.URI.lowMask(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.redisson.config.ConfigSupport
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

So far it appears everything is working fine, but figured it might be worth reporting, since it says it will eventually be denied in a future Java 9 release.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
colinmorellicommented, Aug 17, 2018

Any reason this was closed? Seems like a very simple fix would be to simply check of an underscore is used in the URI before applying this hack?

Trying to clear all Java 9+ warnings/errors out of the logs.

0reactions
mattayrescommented, Sep 26, 2018

After this I discovered that Netty (which Redisson depends on) also has a warning about illegal reflective access. I filed netty/netty#8318 for that and submitted netty/netty#8319 as a fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java 9 Illegal Reflective Access Warning - Baeldung
Before Java 9, the Java Reflection API has a superpower: It could gain access to the non-public class members without limitation.
Read more >
What is an illegal reflective access? - java - Stack Overflow
The first reflective-access operation to any such package causes a warning to be issued, but no warnings are issued after that point. This ......
Read more >
How to fix “an illegal reflective access operation has occurred”
The "an illegal reflective access operation has occurred" warning message is related to the unauthorized access to parts of the JDK made by ......
Read more >
"illegal reflective access" under Java 9, 10, 11 - Shibboleth
1WARNING: An illegal reflective access operation has occurred 2WARNING: Illegal reflective access by org.springframework.beans.
Read more >
Illegal reflective access by com.google.protobuf.UnsafeUtil ...
Java 9 WARNING : Illegal reflective access by com.google.protobuf.UnsafeUtil #459. eed3si9n opened this issue on Nov 26, 2017 · 21 comments.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found