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

Fix illegal reflective access #5097

Closed
ShadowySpirits opened this issue Sep 16, 2022 · 0 comments · Fixed by #5098
Closed

Fix illegal reflective access #5097

ShadowySpirits opened this issue Sep 16, 2022 · 0 comments · Fixed by #5098

Comments

@ShadowySpirits
Copy link
Member

When a user runs broker with jdk11, they will face the following two exceptions:

WARNING: Illegal reflective access by org.apache.rocketmq.store.MappedFile$1 (file:/Users/xiexiaohu/github/mq/rocketmq-4.9.3/lib/rocketmq-store-4.9.3.jar) to method java.nio.DirectByteBuffer.attachment()

java.lang.reflect.InaccessibleObjectException: Unable to make public void jdk.internal.ref.Cleaner.clean() accessible: module java.base does not "exports jdk.internal.ref" to unnamed module

It is because jdk9+ uses module to restrict use of internal api and reflection. We need a new way to bypass restricted api.

related issues: #3321 #4161

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.

1 participant