coolc4 commented on issue #3223:
URL: https://github.com/apache/rocketmq/issues/3223#issuecomment-914932737
if the rocketmq-4.9.0 was compiled in the openjdk-8 environment
and it runs in the environment of openjdk-11
the mqbroker process that comes with the example will report an exception
when calling mqshutdown normally:
java .lang.IllegalStateException:
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
We can shield this exception by modifying the startup parameters in
runbroker.sh
Add JAVA_OPT="${JAVA_OPT} --add-exports
java.base/jdk.internal.ref=ALL-UNNAMED"
[0001-fix-fixed-the-broker-example-will-report-an-exceptio.txt](https://github.com/apache/rocketmq/files/7126140/0001-fix-fixed-the-broker-example-will-report-an-exceptio.txt)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]