bug记录
jsl575
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
com.alibaba.fastjson.JSONException: illegal state : 1002
定位报错 JSONReader reader = new JSONReader(new StringReader(str)); .... while (reader.hasNext()) { } 导致报错原因:代码块中使用了两次reader.readObject(); 分析下为什么报错? public boolean hasNext() { if (context == null) { throw new JSONException("context is原创 2021-08-07 10:41:17 · 2430 阅读 · 2 评论 -
java.security.InvalidKeyException: Illegal key size
项目中遇见一个问题,测试环境中APP登录正常。我这边呢想在本地跑一下。结果在网关层就发生了NPE,最终定位到AES解密代码。 开始以为是key无效,但后来看了下是一样的,那为啥呢? 来看解密代码 private byte[] decrypt(String cmp, SecretKey sk, IvParameterSpec IV, byte[] ciphertext) { try { Cipher c = Cipher.getInstance(cmp);原创 2021-06-25 19:51:54 · 472 阅读 · 0 评论
分享