AdhamAwadhi / JamaaSMPP

Jamaa SMPP Client is a .NET implementation of the SMPP protocol that focuses on providing an easy-to-use and robust SMPP client library for .NET developers. This project is intended to be used by developers who want to integrate SMS functionalities in their applications as well as students who are learning the SMPP protocol.
https://github.com/AdhamAwadhi/JamaaSMPP/wiki
Other
43 stars 36 forks source link

TcpIpSession.RaiseSessionClosedEvent throw System.NullReferenceException #34

Open AdhamAwadhi opened 4 years ago

AdhamAwadhi commented 4 years ago

Lately I got this error too much, not sure why still investagating

Type: System.NullReferenceException Message: Object reference not set to an instance of an object. Source: JamaaTech.Smpp.Net.Lib Stack Trace:

   at JamaaTech.Smpp.Net.Lib.Networking.TcpIpSession.RaiseSessionClosedEvent(SessionCloseReason reason, Exception ex)
   at JamaaTech.Smpp.Net.Lib.Networking.TcpIpSession.TerminateSession(SessionCloseReason reason, Exception exception)
   at JamaaTech.Smpp.Net.Lib.Networking.TcpIpSession.Receive(Byte[] buffer, Int32 start, Int32 length)
   at JamaaTech.Smpp.Net.Lib.StreamParser.WaitBytes(Int32 length)
   at JamaaTech.Smpp.Net.Lib.StreamParser.WaitPDU()
   at JamaaTech.Smpp.Net.Lib.StreamParser.RunNow()
   at JamaaTech.Smpp.Net.Lib.Util.RunningComponent.ThreadCallback()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()