[Mono-bugs] [Bug 81851][Nor] New - Serialize and Deserialize methods of LosFormatter class throws NullReferenceException.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Jun 10 15:53:45 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by rod at sgh.waw.pl.
http://bugzilla.ximian.com/show_bug.cgi?id=81851
--- shadow/81851 2007-06-10 15:53:45.000000000 -0400
+++ shadow/81851.tmp.26881 2007-06-10 15:53:45.000000000 -0400
@@ -0,0 +1,76 @@
+Bug#: 81851
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com
+ReportedBy: rod at sgh.waw.pl
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Serialize and Deserialize methods of LosFormatter class throws NullReferenceException.
+
+Description of Problem:
+
+Serialize and Deserialize methods of LosFormatter class throws
+NullReferenceException for mono 1.2.4 for xsp2.
+
+Steps to reproduce the problem:
+1. Create empty Default.aspx page
+2. Add such code...
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ string s = "Hello world";
+ LosFormatter lf = new LosFormatter();
+ MemoryStream ms = new MemoryStream();
+ lf.Serialize(ms, s);
+ Response.Write(Encoding.UTF8.GetString(ms.GetBuffer(), 0,
+(int)ms.Length));
+ }
+
+3. Browse this page.
+
+Actual Results:
+
+
+Object reference not set to an instance of an object
+
+Description: Error processing request.
+
+Error Message: HTTP 500. System.NullReferenceException: Object reference
+not set to an instance of an object
+
+Stack Trace:
+
+System.NullReferenceException: Object reference not set to an instance of
+an object
+ at System.Web.UI.ObjectStateFormatter.Serialize (System.Object
+stateGraph) [0x00000]
+ at System.Web.UI.LosFormatter.SerializeToBase64 (System.Object value)
+[0x00000]
+ at System.Web.UI.LosFormatter.Serialize (System.IO.Stream stream,
+System.Object value) [0x00000]
+ at _Default.Page_Load (System.Object sender, System.EventArgs e) [0x00000]
+ at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
+ at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000]
+ at System.Web.UI.Control.LoadRecursive () [0x00000]
+ at System.Web.UI.Page.InternalProcessRequest () [0x00000]
+ at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
+[0x00000]
+
+
+Expected Results:
+
+/wEFC0hlbGxvIHdvcmxk
+
+How often does this happen?
+
+Every time.
More information about the mono-bugs
mailing list