收藏
回答

怎么到了服务器访问就要报错呢?

就是jsapi下单接口本地可以跑返回参数,但是部署到服务器报错,只是到了服务器 他出不来。

回答关注问题邀请回答
收藏

2 个回答

  • Jianbo
    Jianbo
    2023-01-12

    报错信息什么?

    2023-01-12
    有用
    回复
  • 冇
    2023-01-12

    "{\"@type\":\"java.lang.Exception\",\"cause\":{\"@type\":\"java.lang.IllegalArgumentException\",\"cause\":{\"@type\":\"java.security.InvalidKeyException\",\"localizedMessage\":\"Illegal key size\",\"message\":\"Illegal key size\",\"stackTrace\":[{\"className\":\"javax.crypto.Cipher\",\"fileName\":\"Cipher.java\",\"lineNumber\":1039,\"methodName\":\"checkCryptoPerm\",\"nativeMethod\":false},{\"className\":\"javax.crypto.Cipher\",\"fileName\":\"Cipher.java\",\"lineNumber\":805,\"methodName\":\"implInit\",\"nativeMethod\":false},{\"className\":\"javax.crypto.Cipher\",\"fileName\":\"Cipher.java\",\"lineNumber\":864,\"methodName\":\"chooseProvider\",\"nativeMethod\":false},{\"className\":\"javax.crypto.Cipher\",\"fileName\":\"Cipher.java\",\"lineNumber\":1396,\"methodName\":\"init\",\"nativeMethod\":false},{\"className\":\"javax.crypto.Cipher\",\"fileName\":\"Cipher.java\",\"lineNumber\":1327,\"methodName\":\"init\",\"nativeMethod\":false},{\"className\":\"com.wechat.pay.contrib.apache.httpclient.util.AesUtil\",\"fileName\":\"AesUtil.java\",\"lineNumber\":40,\"methodName\":\"decryptToString\",\"nativeMethod\":false},{\"className\":\"com.wechat.pay.contrib.apache.httpclient.util.CertSerializeUtil\",\"fileName\":\"CertSerializeUtil.java\",\"lineNumber\":42,\"methodName\":\"deserializeToCerts\",\"nativeMethod\":false},{\"className\":\"com.wechat.pay.contrib.apache.httpclient.cert.CertificatesManager\",\"fileName\":\"CertificatesManager.java\",\"lineNumber\":280,\"methodName\":\"downloadAndUpdateCert\",\"nativeMethod\":false},{\"className\":\"com.wechat.pay.contrib.apache.httpclient.cert.CertificatesManager\",\"fileName\":\"CertificatesManager.java\",\"lineNumber\":308,\"methodName\":\"initCertificates\",\"nativeMethod\":false},{\"className\":\"com.wechat.pay.contrib.apache.httpclient.cert.CertificatesManager\",\"fileName\":\"CertificatesManager.java\",\"lineNumber\":155,\"methodName\":\"putMerchant\",\"nativeMethod\":false},{\"className\":\"com.jd.after.common.utils.WxPayUtils\",\"fileName\":\"WxPayUtils.java\",\"lineNum

    2023-01-12
    有用
    回复 1
    • 冇
      2023-01-12
      报错
      2023-01-12
      回复
登录 后发表内容