Thanks to visit codestin.com
Credit goes to github.com

Skip to content

微信支付报错:解析报文异常 #3698

@stealth-Lee

Description

@stealth-Lee

Caused by: com.github.binarywang.wxpay.exception.WxPayException: 解析报文异常!
at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.baseParseOrderNotifyV3Result(BaseWxPayServiceImpl.java:395)
at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.parseOrderNotifyV3Result(BaseWxPayServiceImpl.java:368)
at cn.iocoder.yudao.module.pay.framework.pay.core.client.impl.weixin.AbstractWxPayClient.doParseOrderNotifyV3(AbstractWxPayClient.java:184)
at cn.iocoder.yudao.module.pay.framework.pay.core.client.impl.weixin.AbstractWxPayClient.doParseOrderNotify(AbstractWxPayClient.java:164)
at cn.iocoder.yudao.module.pay.framework.pay.core.client.impl.AbstractPayClient.parseOrderNotify(AbstractPayClient.java:108)
... 154 common frames omitted
Caused by: java.lang.IllegalArgumentException: java.security.InvalidKeyException: Invalid AES key length: 33 bytes
at com.github.binarywang.wxpay.v3.util.AesUtils.decryptToString(AesUtils.java:93)
at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.baseParseOrderNotifyV3Result(BaseWxPayServiceImpl.java:388)
... 158 common frames omitted
Caused by: java.security.InvalidKeyException: Invalid AES key length: 33 bytes
at com.sun.crypto.provider.AESCrypt.init(AESCrypt.java:87)
at com.sun.crypto.provider.GaloisCounterMode.init(GaloisCounterMode.java:303)
at com.sun.crypto.provider.CipherCore.init(CipherCore.java:589)
at com.sun.crypto.provider.AESCipher.engineInit(AESCipher.java:346)
at javax.crypto.Cipher.implInit(Cipher.java:811)
at javax.crypto.Cipher.chooseProvider(Cipher.java:869)
at javax.crypto.Cipher.init(Cipher.java:1401)
at javax.crypto.Cipher.init(Cipher.java:1332)
at com.github.binarywang.wxpay.v3.util.AesUtils.decryptToString(AesUtils.java:86)
... 159 common frames omitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions