Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NULL Reference Exception on Continual Connection Error #47

Open
danielckelly opened this issue Jun 17, 2021 · 1 comment
Open

NULL Reference Exception on Continual Connection Error #47

danielckelly opened this issue Jun 17, 2021 · 1 comment

Comments

@danielckelly
Copy link

Hi,
If you enter the wrong SMPP details or there are continual connection issues, eventually (usually within 10 minutes) you get an exception that crashes the entire application (no just the SMPP client) as we have everything wrapped around a Try / Catch Block and the exception does not get thrown back to the calling method.

Source is JamaaTech.Smpp.Net.Lib

The exception Stack Trace is as follows:-

at JamaaTech.Smpp.Net.Lib.StreamParser.RaiseParserExceptionEvent(Exception exception)
at JamaaTech.Smpp.Net.Lib.StreamParser.HandleException(Exception ex)
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.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()

And Excedption Details:-

System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=JamaaTech.Smpp.Net.Lib
StackTrace:
at JamaaTech.Smpp.Net.Lib.StreamParser.RaiseParserExceptionEvent(Exception exception)
at JamaaTech.Smpp.Net.Lib.StreamParser.HandleException(Exception ex)
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.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()
InnerException:

Thanks,

Daniel.

@danielckelly
Copy link
Author

Upon loading the source, visual studio is breaking inside StreamParser.cs - Line 112 (inside Method RunNow()) which has a Single Throw Statement on it ( http://btg.io/dk/JamaaException.png )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant