[Mono-bugs] [Bug 491508] New: SessionSQLServerHandler : InitializeConnection -> NullReferenceException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 2 10:02:06 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=491508


           Summary: SessionSQLServerHandler : InitializeConnection ->
                    NullReferenceException
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: informatique.internet at fiducial.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=283694)
 --> (http://bugzilla.novell.com/attachment.cgi?id=283694)
this patch should fix this problem... it has been applied on our mono 2.0
production server

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.9.0.8)
Gecko/2009032608 Firefox/3.0.8

A NullReferenceException can happens in the SessionSQLServerHandler if :

The database is crashed or unavailable : a SessionSQLServerHandler object is
created, Init is called -> InitializeConnection throw exception and cnc is
nullified.
Just after the database is available but the SessionSQLServerHandler object is
still alive. and it can't recreate the connection (cnc object) because it is
null



Reproducible: Always

Steps to Reproduce:
1. Shut off you session sql database
2. Launch xsp -> Get index.aspx -> You get an exception -> Normal
3. Switch on your session sql database
4. Get index.aspx
Actual Results:  
you'll get this kind of exception
System.NullReferenceException: Object reference not set to an instance of an
object
  at System.Web.SessionState.SessionSQLServerHandler.InitializeConnection ()
[0x00000] 
  at System.Web.SessionState.SessionSQLServerHandler.GetReaderWithRetry
(System.String id) [0x00000] 
  at System.Web.SessionState.SessionSQLServerHandler.SelectSession
(System.String id, Boolean read_only) [0x00000] 
  at System.Web.SessionState.SessionSQLServerHandler.UpdateContext
(System.Web.HttpContext context, System.Web.SessionState.SessionStateModule
module, Boolean required, Boolean read_only, System.Boolean& isNew) [0x00000] 
  at System.Web.SessionState.SessionStateModule.OnAcquireState (System.Object
o, System.EventArgs args) [0x00000] 
  at System.Web.HttpApplication+<RunHooks>c__Iterator0.MoveNext () [0x00000] 
  at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x00000] 
  at System.Web.HttpApplication.Tick () [0x00000] 

Expected Results:  
It should work

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list