{"action":"created","issue":{"url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/622","repository_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools","labels_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/622/comments","events_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/622/events","html_url":"https://github.com/Wechat-Group/weixin-java-tools/issues/622","id":330658511,"node_id":"MDU6SXNzdWUzMzA2NTg1MTE=","number":622,"title":"解密消息出错","user":{"login":"liuzhihai520","id":2859095,"node_id":"MDQ6VXNlcjI4NTkwOTU=","avatar_url":"https://avatars2.githubusercontent.com/u/2859095?v=4","gravatar_id":"","url":"https://api.github.com/users/liuzhihai520","html_url":"https://github.com/liuzhihai520","followers_url":"https://api.github.com/users/liuzhihai520/followers","following_url":"https://api.github.com/users/liuzhihai520/following{/other_user}","gists_url":"https://api.github.com/users/liuzhihai520/gists{/gist_id}","starred_url":"https://api.github.com/users/liuzhihai520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuzhihai520/subscriptions","organizations_url":"https://api.github.com/users/liuzhihai520/orgs","repos_url":"https://api.github.com/users/liuzhihai520/repos","events_url":"https://api.github.com/users/liuzhihai520/events{/privacy}","received_events_url":"https://api.github.com/users/liuzhihai520/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-08T13:28:26Z","updated_at":"2018-11-09T13:36:02Z","closed_at":"2018-06-09T03:24:00Z","author_association":"NONE","body":"在解密微信推送信息时：\r\nWxMpXmlMessage inMessage = WxMpXmlMessage.fromEncryptedXml(requestBody, wxMpService.getWxMpConfigStorage(), timestamp, nonce, msgSignature);\r\n\r\n报错如下：\r\njava.lang.RuntimeException: java.lang.IllegalArgumentException: 1611744036 > 320\r\n\tat me.chanjar.weixin.common.util.crypto.WxCryptUtil.decrypt(WxCryptUtil.java:270) ~[weixin-java-common-2.9.0.jar:na]\r\n\tat me.chanjar.weixin.common.util.crypto.WxCryptUtil.decrypt(WxCryptUtil.java:227) ~[weixin-java-common-2.9.0.jar:na]\r\n\tat me.chanjar.weixin.mp.bean.message.WxMpXmlMessage.fromEncryptedXml(WxMpXmlMessage.java:452) ~[weixin-java-mp-2.9.0.jar:na]\r\n\tat com.book.web.contoller.WxBaseController.post(WxBaseController.java:87) ~[classes/:na]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]\r\n\tat java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]"},"comment":{"url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/comments/437361223","html_url":"https://github.com/Wechat-Group/weixin-java-tools/issues/622#issuecomment-437361223","issue_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/622","id":437361223,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzM2MTIyMw==","user":{"login":"binlibinli","id":40318759,"node_id":"MDQ6VXNlcjQwMzE4NzU5","avatar_url":"https://avatars2.githubusercontent.com/u/40318759?v=4","gravatar_id":"","url":"https://api.github.com/users/binlibinli","html_url":"https://github.com/binlibinli","followers_url":"https://api.github.com/users/binlibinli/followers","following_url":"https://api.github.com/users/binlibinli/following{/other_user}","gists_url":"https://api.github.com/users/binlibinli/gists{/gist_id}","starred_url":"https://api.github.com/users/binlibinli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binlibinli/subscriptions","organizations_url":"https://api.github.com/users/binlibinli/orgs","repos_url":"https://api.github.com/users/binlibinli/repos","events_url":"https://api.github.com/users/binlibinli/events{/privacy}","received_events_url":"https://api.github.com/users/binlibinli/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T13:36:02Z","updated_at":"2018-11-09T13:36:02Z","author_association":"NONE","body":"Caused by: java.lang.IllegalArgumentException: 20 > -604338658\r\nat **java.util.Arrays.copyOfRange(Arrays.java:3519)**\r\nat me.chanjar.weixin.common.util.crypto.WxCryptUtil.decrypt(WxCryptUtil.java:265)\r\n这里出的异常，但不知道是什么原因啊？\r\n      xmlContent = new String(Arrays.copyOfRange(bytes, 20, 20 + xmlLength),\r\n        CHARSET);\r\n有碰到这个问题的兄弟吗？如何解决？"}}
{"actor":{"display_login":"binlibinli"}}