我正在尝试使用 smppsessionfactorybean 向手机发送短信。我配置了主机、端口、systemid、密码、bindtype、autostartup。(使用nexmo 短信服务器配置)。但是在 send() 方法调用时它正在抛出
"java.io.IOException: Cannot submitShortMessage while in state CLOSED".
这个错误是什么意思?
sysout:-- SessionState: CLOSED
sysout:-- SessionId: 09ca74d9
IO 错误发生 java.io.IOException: Cannot submitShortMessage while in state CLOSED at org.jsmpp.session.AbstractSession.ensureTransmittable(AbstractSession.java:375) at org.jsmpp.session.AbstractSession.ensureTransmittable(AbstractSession.java:358) at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:312) at org.jsmpp.session.SMPPSession$$FastClassBySpringCGLIB$$9f8cc1d0.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java :204) 在 org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:629) 在 org.jsmpp.session.SMPPSession$$EnhancerBySpringCGLIB$$636b51bb.submitShortMessage() 在 org.springframework.integration.smpp .core.SmesMessageSpecification.send(SmesMessageSpecification.java:420)