Re: Errors on Stress Test

From: Bob Grommes (bob_at_bobgrommes.com)
Date: 03/13/05


Date: Sun, 13 Mar 2005 09:39:00 -0700

Just a stab in the dark, but any time you get random errors under load in a
web app and those errors are connected with missing objects or null
references, the first thing that comes to my mind is, are you caching any
objects? If so, look out for constructs like this:

if (myCache.Contains(somekey)) {
    // get the value out of the cache and do something with it
}

Under load, it's possible for the cache to expire between the "if" test and
the retreival. A better pattern is:

someType myVar = myCache[somekey];

if (myVar != null) {
    // do something with it
}

--Bob

"Shabam" <chalupa@yomama-nospam.com> wrote in message
news:M7KdnSByFvHyt6nfRVn-vA@adelphia.com...
> I'm getting the following 2 errors randomly when doing a load test on a
> web
> application's search engine. As far as I know, there isn't writing to the
> DB involved when doing searches, so I'm at a loss of why this occurs under
> load. I'm not the programmer, but this doesn't seem right. Can someone
> help me figure out what is causing this, and what should be done to solve
> it?
>
> ERROR 1:
>
> Server Error in '/' Application.
> ----------------------------------------------------------------------------
> ----
>
> There is no row at position 8.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.IndexOutOfRangeException: There is no row at
> position 8.
>
> Source Error:
>
> An unhandled exception was generated during the execution of the current
> web
> request. Information regarding the origin and location of the exception
> can
> be identified using the exception stack trace below.
>
> Stack Trace:
>
> [IndexOutOfRangeException: There is no row at position 8.]
> System.Data.DataView.GetRecord(Int32 recordIndex) +60
> System.Data.DataView.IsOriginalVersion(Int32 index) +9
> System.Data.DataRowView.GetColumnValue(DataColumn column) +23
> System.Data.DataColumnPropertyDescriptor.GetValue(Object component) +25
> System.Web.UI.DataBinder.GetPropertyValue(Object container, String
> propName) +72
> System.Web.UI.DataBinder.GetPropertyValue(Object container, String
> propName, String format) +11
> System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +403
> System.Web.UI.Control.DataBind() +26
> FN.advancedsearch.populateListcontrols()
> FN.advancedsearch.Page_Load(Object sender, EventArgs e)
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +750
>
>
> ERROR 2:
>
> Server Error in '/' Application.
> ----------------------------------------------------------------------------
> ----
>
> Object reference not set to an instance of an object.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.NullReferenceException: Object reference not set
> to an instance of an object.
>
> Source Error:
>
> An unhandled exception was generated during the execution of the current
> web
> request. Information regarding the origin and location of the exception
> can
> be identified using the exception stack trace below.
>
> Stack Trace:
>
> [NullReferenceException: Object reference not set to an instance of an
> object.]
> FN.advancedsearch.populateListcontrols()
> FN.advancedsearch.Page_Load(Object sender, EventArgs e)
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +750
>
>



Relevant Pages

  • Re: Server Error in / Application
    ... > the current web request. ... > An unhandled exception was generated during the execution of the ... > the exception can be identified using the exception stack trace below. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Errors on Stress Test
    ... Just a stab in the dark, but any time you get random errors under load in a ... An unhandled exception occurred during the execution of the ... > current web request. ... > be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: ERROR:Crystal Reports - Logon failed.
    ... An unhandled exception occurred during the execution of the ... > current web request. ... > exception can be identified using the exception stack trace below. ... > CrystalDecisions.Shared.TableLogOnInfo myLogin; ...
    (microsoft.public.dotnet.general)
  • Re: Server Error in / Application.
    ... The error looks like it could be coming from the unsupported MS Treeview ... An unhandled exception occurred during the execution of the ... > current web request. ... > be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Error problem: asp.net app trying to reference local file?
    ... An unhandled exception occurred during the execution of the ... current web request. ... can be identified using the exception stack trace below. ... sourceControl, String eventArgument) +18 ...
    (microsoft.public.dotnet.framework.aspnet)