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

JDK 11 WARNING: Please consider reporting this to the maintainers of com.esotericsoftware.kryo.unsafe.UnsafeUtil #924

Closed
tietang opened this issue Nov 15, 2022 · 2 comments
Labels

Comments

@tietang
Copy link

tietang commented Nov 15, 2022

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.esotericsoftware.kryo.unsafe.UnsafeUtil (file:/Users/header/.m2/repository/com/esotericsoftware/kryo/5.3.0/kryo-5.3.0.jar) to constructor java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of com.esotericsoftware.kryo.unsafe.UnsafeUtil
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

Temurin jdk-11.0.17+8

MacOS

@theigl
Copy link
Collaborator

theigl commented Nov 15, 2022

You currently have two options:

  1. You can use -Dkryo.unsafe=false to avoid loading UnsafeUtil
  2. You can add --add-opens java.base/sun.nio.ch=ALL-UNNAMED to allow access to DirectByteBuffer.

@theigl
Copy link
Collaborator

theigl commented Dec 20, 2022

Should be resolved by #932. It would be great if you could verify the fix using the latest snapshot build.

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

No branches or pull requests

2 participants