moquette-io / moquette

Java MQTT lightweight broker
http://moquette-io.github.io/moquette/
Apache License 2.0
2.27k stars 814 forks source link

java.lang.NoSuchMethodError: No static method encodeHexString([B)Ljava/lang/String; in class Lorg/apache/commons/codec/binary/Hex; or its super classes (declaration of 'org.apache.commons.codec.binary.Hex' appears in /system/framework/org.apache.http.legacy.boot.jar) #812

Closed morarafrank closed 3 months ago

morarafrank commented 5 months ago

Expected behavior.

I want to encode a string to generate a signature key for authentication header in my android app but it generates this error when this line is called: return Hex.encodeHexString(bytes);

Actual behavior

Steps to reproduce

Minimal yet complete reproducer code (or URL to code) or complete log file

Moquette MQTT version

JVM version (e.g. java -version)

Kotlin version 1.7.10

OS version (e.g. uname -a)

Windows 11

andsel commented 4 months ago

Hi @morarafrank , the issue is not conform to the required fields, in particular if this is a bug, the section about the reproducible steps is totally missed. Where this commons codec comes from, it's not part of Moquette libraries.

andsel commented 3 months ago

Close this because the issue opener never come back with details.