求助,华为cmpp2.0 API 短信平台在new SMProxy(args_YD); 报错
源码:String result = "";
// 移动连接数据
if (null == args_YD) {
args_YD = new Args();
}
args_YD.set("host", "221.131.129.71");
args_YD.set("port", 7890);
args_YD.set("source-addr", "500233");
args_YD.set("shared-secret", "639123");
args_YD.set("heartbeat-interval", 20);
args_YD.set("reconnect-interval", 0);
args_YD.set("heartbeat-noresponseout", 10);
args_YD.set("transaction-timeout", 10);
args_YD.set("version", 1);
args_YD.set("debug", false);
if (null == yd_proxy) {
yd_proxy = new SMProxy(args_YD);
}
异常:
java.lang.IllegalArgumentException: 定义响应激活请求的消息参数输入有误:success_Id小于0或大于255
at com.huawei.insa2.comm.cmpp.message.CMPPActiveRepMessage.<init>(CMPPActiveRepMessage.java:22)
at com.huawei.smproxy.CMPPEventAdapter.childCreated(SMProxy.java:138)
at com.huawei.insa2.comm.PEventAdapter.handle(PEventAdapter.java:21)
at com.huawei.insa2.comm.PLayer.fireEvent(PLayer.java:167)
at com.huawei.insa2.comm.PLayer.onReceive(PLayer.java:70)
at com.huawei.insa2.comm.PSocketConnection$1$ReceiveThread.task(PSocketConnection.java:216)
at com.huawei.insa2.util.WatchThread.run(WatchThread.java:48)
比较急啊 cmpp2.0 华为 短信 --------------------编程问答-------------------- java.lang.IllegalArgumentException: 定义响应激活请求的消息参数输入有误:success_Id小于0或大于255
这错误这么明显,还不能定位问题吗?虽然我没用过cmpp2.0的东西。。。 --------------------编程问答-------------------- success_Id超出了0-255这个范围,找一下错误出在哪
补充:Java , Java相关