最近使用华为的api做了一个短信接口,能够实现短信下发,但是有一个问题,就是服务运行一段时间就报错,提示登录失败,重启服务后正常。我再想应该是没有自动建立连接导致的,但是不知道怎么处理
Beacause the heartbeat was sent time after time,but there was not return or the return value was unsuccessful
com.huawei.smproxy.comm.PException: Send message error,The login is unsuccessful.
at com.huawei.smproxy.comm.PSocketConnection.send(PSocketConnection.java:332)
at com.huawei.smproxy.comm.smgp.SMGPTransaction.send(SMGPTransaction.java:53)
at com.huawei.smproxy.SMGPSMProxy.send(SMGPSMProxy.java:57)
at demo.smgpdemo.SMSender.send(SMSender.java:74)
at com.tiros.send.SendMessage.sendMessage(SendMessage.java:62)
at org.apache.jsp.sendMessage_jsp._jspService(sendMessage_jsp.java:95)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org