eclipse java web项目调用 短信服务API 执行 getAcsResponse 出错

各位大佬,我遇到的问题如下:

开发环境: eclipse 导入的jar包 aliyun-java-sdk-core-4.6.0.jar aliyun-java-sdk-dysmsapi-2.2.1.jar

public int sendMsg(String phoneNum, String parameter) { String product = "Dysmsapi"; String domain = "dysmsapi.aliyuncs.com"; DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", "accessKeyId", "accessKeySecret"); IAcsClient client = new DefaultAcsClient(profile); SendSmsRequest request = new SendSmsRequest(); request.setPhoneNumbers(phoneNum); request.setSignName("雨清软件"); request.setTemplateCode("SMS_227575226"); request.setTemplateParam("{"code":"112233"}"); try { SendSmsResponse response = client.getAcsResponse(request); } catch (ServerException e) { e.printStackTrace(); } catch (ClientException e) { System.out.println("ErrCode:" + e.getErrCode()); System.out.println("ErrMsg:" + e.getErrMsg()); System.out.println("RequestId:" + e.getRequestId()); } }

执行后返回结果

ErrCode:SDK.RequestTryOrRetryFailed ErrMsg:Some errors occurred. Error message for latest request is org/apache/commons/lang3/concurrent/BasicThreadFactory$Builder RequestId:null

请问是什么原因那?谢谢啦

圈主 管理员

热门评论
:
该帖子评论已关闭
图片审查中...
编辑答案: 我的回答: 最多上传一张图片和一个附件
x
x
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索