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
Embedded broker doesn't start with Java 16 #276
Comments
Thank you for your detailed information. We need to check whether the Guice upgrade to a new major would break anything right now. Have you tested updating it yourself already? Best regards, Daniel |
No, I haven't tried that yet. |
I will close this ticket, because it seems to be resolved. I was able to start HiveMQ with OpenJDK 17. |
I have a similar problem with Java 18. `2023-02-21 19:18:26,927 INFO - Starting with file persistence mode.
5 errors Can you help me? I use the default settings without loading config files. |
Expected behavior
When starting an embedded broker on the current version 16 of Java, it should run just as fine as with previous versions.
Actual behavior
However it fails on trying to start the embedded broker:
To Reproduce
Steps
Start an embedded broker with Java 16.
Reproducer code
Details
The problem is that Guice 4.2.3 is used which brings its own version of cglib that is known not to work with newer Java versions.
See google/guice#1133.
An obvious warning was shown due to the illegal access since Java 9. Now, with Java 16, it actually breaks.
Guice 5.0.1 finally fixed this issue. Therefore HiveMQ should upgrade it's Guice dependency.
The text was updated successfully, but these errors were encountered: