http://bugzilla.novell.com/show_bug.cgi?id=564833
http://bugzilla.novell.com/show_bug.cgi?id=564833#c0 Summary: DataAdapter's fill method throws exception in connection with DbProviderFactories Classification: Mono Product: Mono: Class Libraries Version: 2.6.x Platform: i586 OS/Version: openSUSE 11.1 Status: NEW Severity: Major Priority: P5 - None Component: Sys.Data AssignedTo: bnc-blr-team-m...@forge.provo.novell.com ReportedBy: dr_doom1...@yahoo.de QAContact: mono-bugs@lists.ximian.com Found By: --- Blocker: --- Created an attachment (id=332700) --> (http://bugzilla.novell.com/attachment.cgi?id=332700) Small test project to reproduce User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102100 SUSE/3.0.15-0.1.2 Firefox/3.0.15 If you use the DbProviderFactory to connect to your database and have a parameterized command filling a DataSet throws the following exception: Object reference not set to an instance of an object Description: HTTP 500. Error processing request. Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object at System.Data.Common.DbDataAdapter.Fill (System.Data.DataSet dataSet, Int32 startRecord, Int32 maxRecords, System.String srcTable, IDbCommand command, CommandBehavior behavior) [0x00000] in /usr/src/packages/BUILD/mono-2.6/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs:294 at System.Data.Common.DbDataAdapter.Fill (System.Data.DataSet dataSet) [0x00000] in /usr/src/packages/BUILD/mono-2.6/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs:233 at DataAdaperFillTest.Default.button1Clicked (System.Object sender, System.EventArgs args) [0x0007b] in /home/rupert/Projects/DataAdaperFillTest/DataAdaperFillTest/Default.aspx.cs:38 at System.Web.UI.WebControls.Button.OnClick (System.EventArgs e) [0x00027] in /usr/src/packages/BUILD/mono-2.6/mcs/class/System.Web/System.Web.UI.WebControls/Button.cs:248 at System.Web.UI.WebControls.Button.RaisePostBackEvent (System.String eventArgument) [0x00029] in /usr/src/packages/BUILD/mono-2.6/mcs/class/System.Web/System.Web.UI.WebControls/Button.cs:278 at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (System.String eventArgument) [0x00000] in /usr/src/packages/BUILD/mono-2.6/mcs/class/System.Web/System.Web.UI.WebControls/Button.cs:240 at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler sourceControl, System.String eventArgument) [0x00000] in /usr/src/packages/BUILD/mono-2.6/mcs/class/System.Web/System.Web.UI/Page.cs:1767 at System.Web.UI.Page.RaisePostBackEvents () [0x00024] in /usr/src/packages/BUILD/mono-2.6/mcs/class/System.Web/System.Web.UI/Page.cs:1722 at System.Web.UI.Page.ProcessRaiseEvents () [0x0005b] in /usr/src/packages/BUILD/mono-2.6/mcs/class/System.Web/System.Web.UI/Page.cs:1614 at System.Web.UI.Page.InternalProcessRequest () [0x001c5] in /usr/src/packages/BUILD/mono-2.6/mcs/class/System.Web/System.Web.UI/Page.cs:1535 at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0005b] in /usr/src/packages/BUILD/mono-2.6/mcs/class/System.Web/System.Web.UI/Page.cs:1353 Some hacking in the mono source code made it clear that the command object in line 294 of DbDataAdapter.cs is null but I was not able to find the concrete error. In version 2.4.2.3 this scenerio still worked. In 2.4.3 and 2.6 preview I ran into the above error. Reproducible: Always Steps to Reproduce: 1.Use DbProviderFactory 2.Use DbDataAdapter 3.Fill a DataSet Actual Results: Reproduction in attached project. Expected Results: Above exception I used Oracle 10g Enterprise database for the test. So cannot say if other databases can be used to reproduce the error. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs