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

Warning when launching with Java11 #1

Open
klag opened this issue May 3, 2021 · 3 comments
Open

Warning when launching with Java11 #1

klag opened this issue May 3, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@klag
Copy link
Member

klag commented May 3, 2021

If I am running the client server example with java 11, the following warning appears:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.paho.client.mqttv3.internal.FileLock (file:/home/...bla bla bla.../lib/org.eclipse.paho.client.mqttv3-1.1.2-20170804.042534-34.jar) to method sun.nio.ch.FileLockImpl.release()
WARNING: Please consider reporting this to the maintainers of org.eclipse.paho.client.mqttv3.internal.FileLock
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

I am running a local broker inside a docker container: https://hub.docker.com/_/eclipse-mosquitto version 1.6.14.
I am using port 1883.

@klag klag added the enhancement New feature or request label May 3, 2021
@rickyiatto
Copy link
Collaborator

Hi Claudio.
Unfortunately, these warnings are due to the Paho library and there seems to be no way to avoid them (eclipse-paho/paho.mqtt.java#794).

Apart from the warnings, is the service working? Can you send and receive messages?

@klag
Copy link
Member Author

klag commented May 3, 2021

Hi Riccardo, yes it is working so no problem for now!
I would leave the issue opened, until paho library release a fix. What do you think?

@rickyiatto
Copy link
Collaborator

Yes, I agree with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants