gpt4 book ai didi

java - JSMPP 响应超时异常 : No response after waiting for 2000 millis when executing submit_sm

转载 作者:太空宇宙 更新时间:2023-11-04 07:24:25 24 4
gpt4 key购买 nike

我正在使用 JSMPP http://code.google.com/p/jsmpp/用于发送和接收消息。当我发送少于 140 个字符的短消息时,它工作正常,但当我尝试发送长短信时,它会抛出以下异常:

我尝试设置TransactionTimer(3000L);它仍然给我同样的错误

我设置可选参数的方式是否正确,或者我在那里做错了什么并且因此发生此错误?任何人都可以告诉我吗?

Response timeout
org.jsmpp.extra.ResponseTimeoutException: No response after waiting for 2000 millis when executing submit_sm with sessionId 090debe6 and sequenceNumber 2
at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:261)
at org.jsmpp.session.SMPPSession.submitShortMessage(SMPPSession.java:320)
at javaapplication1.SimpleSubmitExample.main(SimpleSubmitExample.java:99)
Caused by: org.jsmpp.extra.ResponseTimeoutException: No response after 3000 millis
at org.jsmpp.extra.PendingResponse.waitDone(PendingResponse.java:117)
at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:257)
... 2 more

最佳答案

我使用的是 Ozeki Smpp sms gateway lite,他们已在最新版本中修复了此问题。

关于java - JSMPP 响应超时异常 : No response after waiting for 2000 millis when executing submit_sm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18784513/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com