1 Star 0 Fork 0

hone / aliyun-openapi-java-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
9-Exception-CN.md 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
sunzhiqiang 提交于 2019-04-11 13:22 . add README exception

← 日志 | 异常(English) | 首页 →


问题

异常信息 解决办法
content has not been provided 升级到最新版本
ExceptionInInitializerError 升级到最新版本
NoClassDefFoundError 添加缺少的依赖包
SocketTimeoutException has occurred on a socket read or accept. 设置合理的超时时间
Specified signature nonce was used already. 升级到最新版本
NoSuchMethodError 添加缺少的依赖包
MissingSecurityToken 升级到最新版本
Specified access key is not found 检查AK的正确性
An invalid XML character (Unicode: 0x8) was found in the element content of the document 验证xml是否合法
Server response has a bad format type 更多

Specified access key is not found

原因及解决方案:

  1. Ak 没有相应的权限,联系对应的管理获取权限
  2. Ak 填写错误,请认证检查 AK 是否正确
  3. 使用环境不匹配,请确认当前环境下 AK 是真实有效的

Server response has a bad format type

原因及解决方案:

返回的 http 协议没有指定数据格式

  1. 设置 request.setAcceptFormat(FormatType.JSON) 如果无法解决在使用第二个方案
  2. 使用 HttpResponse response = client.doAction(request) 接收返回

xml character

原因及解决方案:

官方文档说明

以下三段为非法字符,请不要在xml中出现

  1. 0x00 - 0x08
  2. 0x0b - 0x0c
  3. 0x0e - 0x1f

← 日志 | 异常(English) | 首页 →

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hhhoney/aliyun-openapi-java-sdk.git
git@gitee.com:hhhoney/aliyun-openapi-java-sdk.git
hhhoney
aliyun-openapi-java-sdk
aliyun-openapi-java-sdk
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891