You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: