[Mono-bugs] [Bug 720049] New: SqlDataReader throws exception on read/close
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Sep 23 07:41:42 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=720049
https://bugzilla.novell.com/show_bug.cgi?id=720049#c0
Summary: SqlDataReader throws exception on read/close
Classification: Mono
Product: Mono: Class Libraries
Version: 2.10.x
Platform: x86-64
OS/Version: openSUSE 11.4
Status: NEW
Severity: Major
Priority: P5 - None
Component: Sys.Data.SqlClient
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: ch3cooli at yahoo.com.hk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20100101
Firefox/7.0
NullReferenceException throws
because encoder is null
at Mono.Data.Tds.Protocol.TdsComm.GetString (Int32 len, Boolean wide,
System.Text.Encoding enc) [0x00070] in
/home/cnauser/mono/mono/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs:568
at Mono.Data.Tds.Protocol.Tds.GetStringValue (Boolean wideChars, Int32 len,
System.Text.Encoding enc) [0x0003b] in
/home/cnauser/mono/mono/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:1289
at Mono.Data.Tds.Protocol.Tds.GetStringValue (Nullable`1 colType, Boolean
wideChars, Boolean outputParam, System.Text.Encoding encoder) [0x00108] in
/home/cnauser/mono/mono/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:1276
at Mono.Data.Tds.Protocol.Tds.GetColumnValue (Nullable`1 colType, Boolean
outParam, Int32 ordinal) [0x00258] in
/home/cnauser/mono/mono/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:807
at Mono.Data.Tds.Protocol.Tds.LoadRow () [0x00055] in
/home/cnauser/mono/mono/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:1396
at Mono.Data.Tds.Protocol.Tds.ProcessSubPacket () [0x001fd] in
/home/cnauser/mono/mono/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:1835
at Mono.Data.Tds.Protocol.Tds.NextResult () [0x0004a] in
/home/cnauser/mono/mono/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:619
at System.Data.SqlClient.SqlDataReader.NextResult () [0x0003b] in
/home/cnauser/mono/mono/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs:1503
at System.Data.SqlClient.SqlDataReader.Close () [0x00011] in
/home/cnauser/mono/mono/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs:215
at System.Data.Common.DbDataReader.Dispose (Boolean disposing) [0x00006] in
/home/cnauser/mono/mono/mcs/class/System.Data/System.Data.Common/DbDataReader.cs:85
at System.Data.Common.DbDataReader.Dispose () [0x00000] in
/home/cnauser/mono/mono/mcs/class/System.Data/System.Data.Common/DbDataReader.cs:79
at /home/cnauser/project1/project1.cs
Reproducible: Always
Steps to Reproduce:
1. create SqlCommand with sql text "select f1, f2, f3, f4 from t1" (not stored
procedure) and call ExecuteReader()
2. call reader.Read()
3. exception thrown, but Dispose() is found on the stack trace
Actual Results:
NullReferenceException thrown
Expected Results:
no exception
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list