System.NullReferenceException

Jun 19, 2012 at 1:40 PM

Hi,

I'm using Smpp.Net.Client and Smpp.Net.Lib in a web service. Under medium load I get a System.NullReferenceException (see stack trace below). I am running the load test against Selenium Software SMPPSim.

 

Versions:

Smpp.Client.Net: 

[assemblyAssemblyFileVersion("1.4.4.2")]

Smpp.Client.Lib:

[assemblyAssemblyFileVersion("1.4.3.1")]

 

Should the SMPP client be thread safe or do I need to serialize the access to the client within a process?

Here is the stack trace:

   at JamaaTech.Smpp.Net.Lib.StreamParser.RaiseParserExceptionEvent(Exception exception) in C:\dev\BusinessSupport\Services\Sms\Main\Business\JamaaTech.SMPP.Net.Lib\StreamParser.cs:line 221   at JamaaTech.Smpp.Net.Lib.StreamParser.HandleException(Exception ex) in C:\dev\BusinessSupport\Services\Sms\Main\Business\JamaaTech.SMPP.Net.Lib\StreamParser.cs:line 205   at JamaaTech.Smpp.Net.Lib.StreamParser.WaitPDU() in C:\dev\BusinessSupport\Services\Sms\Main\Business\JamaaTech.SMPP.Net.Lib\StreamParser.cs:line 125   at JamaaTech.Smpp.Net.Lib.StreamParser.RunNow() in C:\dev\BusinessSupport\Services\Sms\Main\Business\JamaaTech.SMPP.Net.Lib\StreamParser.cs:line 101   at JamaaTech.Smpp.Net.Lib.Util.RunningComponent.ThreadCallback() in C:\dev\BusinessSupport\Services\Sms\Main\Business\JamaaTech.SMPP.Net.Lib\Util\RunningComponent.cs:line 86   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)   at System.Threading.ExecutionContext.runTryCode(Object userData)   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)   at System.Threading.ThreadHelper.ThreadStart()

 

Thanks,

Helgi