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
java.lang.IllegalArgumentException: Invalid UTF-8 char: [a] #836
Comments
I am getting this same error. Worked in version 1.1.0 (haven't tried 1.2.0). |
Did you find solution for these? I have tried in both org.eclipse.paho.client.mqttv3-1.2.5.jar and org.eclipse.paho.client.mqttv3-1.2.2.jar,Same issue is there from both of the jar files |
Nope, just downgraded to 1.2.0. |
Okay. I'm trying to upgrade paho client for fixing EOFException after referring to this link But Now I feel I don't have any option to resolve my EOF exception. Any comments here ? |
I found reason for this exception. Actually I'm sending "X.509 open ssl certificate" as a password for Subscription. Which is having space character in the certificate. Since space is ISO character ,It is saying as "illegal Argument" from paho client 1.2.1 onwards. From paho client 1.2.1 onwards,validateUTF8String() method is added in MqttWireMessage class. In validateUTF8String() method if space is sent , Line number 400 -> Character.isISOControl(c) -> returns true In Below image, Left is MqttWireMessage Source of paho client 1.2.0 and right side is paho client version of 1.2.1 Can anyone help me to solve this issue? |
Should de fixed in 818, there is a PR there but no reviews. |
@silh ,Thanks for the Info. Any Idea whom to contact for the fix? |
I got the same error: |
@rdasgupt I have seen that you are currently one of the most active members in this project. May I point you attention to this issue? It is a blocker for many users who use encryption that was introduced with 1.2.1 and which is open since then. There's even an open PR for it. Thank you a lot, |
@micw Could you point me to the open PR you have referred to in your last message? |
@rdasgupt I did not find it, maybe it was the PR for MQTTv5 I was looking at at this time. The Issue has been fixed for MQTTv5 (as stated in the initial report) but is still open for MQTTv3. The PR did not contain any tests, so I cannot tell if that really fixes this issue :-( |
I think the PR https://github.com/eclipse/paho.mqtt.java/pull/819/files solves the issue (and also adds tests). Problem is that the last release is >3 years old and does not contain the fix. |
Please fill out the form below before submitting, thank you!
I'm trying to connect with mosquito broker via paho client (versions used are org.eclipse.paho.client.mqttv3-1.2.5.jar and org.eclipse.paho.client.mqttv3-1.2.1.jar)
When I try to connect I'm getting:
But I didn't get this issue in org.eclipse.paho.client.mqttv3-1.2.0.jar
Any help to resolve this?
Thanks in advance
The text was updated successfully, but these errors were encountered: