Nail callback has been reporting errors
java.lang.IllegalArgumentException : Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible value. Expected the discarded bits to be zero.
at org.apache.commons . codec.binary.Base64 .validateCharacter(Base64. java:803 ) ~[commons-codec-1.14.jar!/:1.14]
at org.apache.commons . codec.binary.Base64 .decode(Base64. java:482 ) ~[commons-codec-1.14.jar!/:1.14]
at org.apache.commons . codec.binary.BaseNCodec .decode( BaseNCodec.java:481 ) ~[commons-codec-1.14.jar!/:1.14]
at org.apache.commons . codec.binary.BaseNCodec .decode( BaseNCodec.java:465 ) ~[commons-codec-1.14.jar!/:1.14]
at org.apache.commons . codec.binary.Base64 .decodeBase64(Base64. java:699 ) ~[commons-codec-1.14.jar!/:1.14]
at com.dingtalk.oapi . lib.aes.DingTalkEncryptor .<init>( DingTalkEncryptor.java:61 ) ~[lippi-oapi-encrpt-0.0.1.jar!/:?]
Before debugging OK, I put it online. After thinking about it, I only upgraded springboot recently, from 2.1.6 to 2.3.0, and then rolled back the version. As expected, the parsing was successful, and no error was reported. I found that the upgrade of Base64 package from commons-codec-1.11 to commons-codec-1.13 was caused by adding a verification code
Then introduce commons-codec-1.11 into POM to solve the problem
Read More:
- Java and Android commons codec usage and nosuch method error
- Using JSON to report errors
- Import Maven project pom.xml File error
- Successfully resolved Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B
- Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B
- Error in the latest version of ffmpeg: ‘codec’_ FLAG_ GLOBAL_ Header ‘undeclared identifier solution
- How to solve the problem of syntax error: (Unicode error)’unicodescape ‘codec can’t decode bytes in position 2-3: truncat
- Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block collection
- Building Eureka_ Server error: application failed to start with classpath:file :/C:/ProgramFiles/Java/jdk
- ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in range(128)
- Eureka failed to register error: saw local status change event statuschangeevent
- Python: How to Fix “Ord() expected string of length 1, but int found”
- Illegalargumentexception: control character in cookie value or attribute tomcat7
- Introducing pair in Java
- Difference between isempty method and isblank method in stringutils
- Spring error: ora-01017: invalid username / password; login denied
- Tomcat error parsing HTTP request header
- java.lang.VerifyError : inconsistent stackmap frames at branch target
- Warning when using numpy: runtimewarning: numpy.dtype size changed, may indicate binary incompatibility
- Error: expected class name before ‘{‘ token