私はsmppクライアントを開発しています.InvalidResponseExceptionを何度も受け取ると、スタックトレースが増加します:
org.jsmpp.extra.NegativeResponseException: Negative response 0000000f found
at org.jsmpp.session.AbstractSession.validateResponse(AbstractSession.java:162)
at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:203)
at org.jsmpp.session.SMPPSession.sendBind(SMPPSession.java:143)
at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:86)
at com.sms.client.gw.Gateway.newSession(Gateway.java:107)
at com.sms.client.gw.Gateway.getSession(Gateway.java:81)
at com.sms.client.gw.Gateway.access$300(Gateway.java:33)
at com.sms.client.gw.Gateway$SessionStateListenerImpl.onStateChange(Gateway.java:196)
at org.jsmpp.session.AbstractSessionContext.fireStateChanged(AbstractSessionContext.java:69)
at org.jsmpp.session.SMPPSessionContext.changeState(SMPPSessionContext.java:44)
at org.jsmpp.session.AbstractSessionContext.close(AbstractSessionContext.java:58)
at org.jsmpp.session.SMPPSessionContext.close(SMPPSessionContext.java:10)
at org.jsmpp.session.AbstractSession.close(AbstractSession.java:141)
その後、スタックトレースが増加しました:
org.jsmpp.extra.NegativeResponseException: Negative response 0000000f found
at org.jsmpp.session.AbstractSession.validateResponse(AbstractSession.java:162)
at org.jsmpp.session.AbstractSession.executeSendCommand(AbstractSession.java:203)
at org.jsmpp.session.SMPPSession.sendBind(SMPPSession.java:143)
at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:86)
at com.sms.client.gw.Gateway.newSession(Gateway.java:107)
at com.sms.client.gw.Gateway.getSession(Gateway.java:81)
at com.sms.client.gw.Gateway.access$300(Gateway.java:33)
at com.sms.client.gw.Gateway$SessionStateListenerImpl.onStateChange(Gateway.java:196)
at org.jsmpp.session.AbstractSessionContext.fireStateChanged(AbstractSessionContext.java:69)
at org.jsmpp.session.SMPPSessionContext.changeState(SMPPSessionContext.java:44)
at org.jsmpp.session.AbstractSessionContext.close(AbstractSessionContext.java:58)
at org.jsmpp.session.SMPPSessionContext.close(SMPPSessionContext.java:10)
at org.jsmpp.session.AbstractSession.close(AbstractSession.java:141)
at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:100)
at com.sms.client.gw.Gateway.newSession(Gateway.java:107)
at com.sms.client.gw.Gateway.getSession(Gateway.java:81)
at com.sms.client.gw.Gateway.access$300(Gateway.java:33)
at com.sms.client.gw.Gateway$SessionStateListenerImpl.onStateChange(Gateway.java:196)
at org.jsmpp.session.AbstractSessionContext.fireStateChanged(AbstractSessionContext.java:69)
at org.jsmpp.session.SMPPSessionContext.changeState(SMPPSessionContext.java:44)
at org.jsmpp.session.AbstractSessionContext.close(AbstractSessionContext.java:58)
at org.jsmpp.session.SMPPSessionContext.close(SMPPSessionContext.java:10)
at org.jsmpp.session.AbstractSession.close(AbstractSession.java:141)
at org.jsmpp.session.SMPPSession$EnquireLinkSender.run(SMPPSession.java:394)
そしてますます大きく。それはどのようにできますか?スタックトレースが蓄積する理由 応答の間に、SMPPSessionContext 変数を null に設定し、SMPPSession を null に設定しました