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.

Illegal reflective access by io.netty.util.internal.ReflectionUtil to DirectByteBuffer

See original GitHub issue

Expected behavior

Actual behavior

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/Users/<user>/.m2/repository/io/netty/netty-all/4.1.52.Final/netty-all-4.1.52.Final.jar) to constructor java.nio.DirectByteBuffer(long,int) WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil 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

Steps to reproduce

Minimal yet complete reproducer code (or URL to code)

Netty version

4.1.52.Final

JVM version (e.g. java -version)

java version “15” 2020-09-15 Java™ SE Runtime Environment (build 15+36-1562) Java HotSpot™ 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)

OS version (e.g. uname -a)

Darwin MacBook-Pro.local 20.1.0 Darwin Kernel Version 20.1.0: Thu Sep 24 20:22:06 PDT 2020; root:xnu-7195.40.89.100.3~1/RELEASE_X86_64 x86_64

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
normanmaurercommented, Oct 14, 2020

@rafmichalak84 this is very strange as it should not try to do so by default…

Did you by any chance specify:

-Dio.netty.tryReflectionSetAccessible=true?

0reactions
normanmaurercommented, Oct 26, 2020

I will close this one for now again… Please reopen once you have more infos to provide

Read more comments on GitHub >

github_iconTop Results From Across the Web

Illegal reflective access by io.netty.util.internal ... - Stack Overflow
netty.util.internal.PlatformDependent0$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations ...
Read more >
Reporting: Illegal reflective access operation - Google Groups
Hi, In my installation of Bookkeeper on Linux this morning, I saw this (and more) in my console: WARNING: An illegal reflective access...
Read more >
Getting this error while installing the SonarCube - SonarQube
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/C:/Devops/sonarqube-6.7.7/lib/common/netty-common-4.1.13.
Read more >
Java – How to hide warning “Illegal reflective access” in java 9 ...
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil ...
Read more >
Java 9 Support - 2.0.0-rc-1 - Ratpack
UnsupportedOperationException: Reflective setAccessible(true) disabled at io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31)
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