[Mono-bugs] [Bug 622007] New: Gendarme - XmlException when clicking "View Report..."

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 13 15:02:05 EDT 2010


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

http://bugzilla.novell.com/show_bug.cgi?id=622007#c0


           Summary: Gendarme - XmlException when clicking "View Report..."
    Classification: Mono
           Product: Mono: Tools
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: eric.zeitler at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=375687)
 --> (http://bugzilla.novell.com/attachment.cgi?id=375687)
debug files for repro case

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.458.1 Safari/534.3

System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character.
Line 132332, position 193.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Int32 pos, Char invChar)
   at System.Xml.XmlTextReaderImpl.ParseNumericCharRefInline(Int32 startPos,
Boolean expand, BufferBuilder internalSubsetBuilder, Int32& charCount,
EntityType& entityType)
   at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos,
Int32& outOrChars)
   at System.Xml.XmlTextReaderImpl.ParseText()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace
space)
   at System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space)
   at System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object
dataSource, String uriRelative, Uri uriResolved)
   at System.Xml.Xsl.Runtime.XmlQueryContext..ctor(XmlQueryRuntime runtime,
Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList,
WhitespaceRuleLookup wsRules)
   at System.Xml.Xsl.Runtime.XmlQueryRuntime..ctor(XmlQueryStaticData data,
Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList,
XmlSequenceWriter seqWrt)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver
dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver
dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean
closeWriter)
   at System.Xml.Xsl.XmlILCommand.Execute(XmlReader contextDocument,
XmlResolver dataSources, XsltArgumentList argumentList, Stream results)
   at System.Xml.Xsl.XslCompiledTransform.Transform(String inputUri, String
resultsFile)
   at Gendarme.HtmlResultWriter.Finish()
   at Gendarme.ResultWriter.Report()
   at Gendarme.Wizard.ViewReportButtonClick(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button,
Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)

If I save the report as xml or text, the data is present, but if I save as
html, then it dumps an empty file.  Here is the relevant snippet from the xml
where it gets the parse error:

<target Name="System.Void
Lucene.Net.Analysis.Standard.StandardTokenizerImpl::.cctor()"
Assembly="Lucene.Net, Version=2.9.1.2, Culture=neutral,
PublicKeyToken=b749b2e09cf65b7f">
        <defect Severity="Low" Confidence="High" Location="System.Void
Lucene.Net.Analysis.Standard.StandardTokenizerImpl::.cctor()" Source="debugging
symbols unavailable, IL offset 0x0000">Found string: "   
&#x0;&#x1;&#x0;&#x1;\r&#x1;&#x0;&#x1;&#x0;&#x1;&#xC;&#x12;&#x0;&#x1;&#x0;&#x5;&#x0;&#x1;&#x5;&#x1;&#x3;&#x4;&#x0;&#x1;
   &#x1;&#x7;&#x1;&#x4;&#x1;   
\n&#x2;&#x6;&#x0;&#x1;&#x6;&#x1A;\n&#x4;&#x0;&#x1;&#x8;&#x1;&#x0;&#x1A;\n/&#x0;&#x1;\n\n&#x0;&#x1;\n&#x4;&#x0;&#x1;\n&#x5;&#x0;&#x17;\n&#x1;&#x0;&#x1F;\n&#x1;&#x0;Ĩ\n&#x2;&#x0;&#x12;\n&#x1C;&#x0;^\n&#x2;&#x0;
   \n&#x2;&#x0;&#x7;\n&#xE;&#x0;&#x2;\n&#xE;&#x0;&#x5;\n   
&#x0;&#x1;\n‹&#x0;&#x1;\n&#xB;&#x0;&#x1;\n&#x1;&#x0;&#x3;\n&#x1;&#x0;&#x1;\n&#x1;&#x0;&#x14;\n&#x1;&#x0;,\n&#x1;&#x0;&#x8;\n&#x2;&#x0;&#x1A;\n&#xC;&#x0;‚\n\n&#x0;9\n&#x2;&#x0;&#x2;\n&#x2;&#x0;&#x2;\n&#x3;&#x0;&amp;\n&#x2;&#x0;&#x2;\n7&#x0;&amp;\n&#x2;&#x0;&#x1;\n&#x7;&#x0;'\nH&#x0;&#x1B;\n&#x5;&#x0;&#x3;\n.&#x0;&#x1A;\n&#x5;&#x0;&#xB;\n&#x15;&#x0;\n&#x2;&#x7;&#x0;c\n&#x1;&#x0;&#x1;\n&#xF;&#x0;&#x2;\n
  
&#x0;\n&#x2;&#x3;\n&#x13;&#x0;&#x1;\n&#x1;&#x0;&#x1B;\nS&#x0;&amp;\nÅŸ&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&#x0;&#x2;\n*&#x0;&#x5;\n\n&#x0;&#x1;&#xB;T&#xB;&#x8;&#xB;&#x2;&#xB;&#x2;&#xB;Z&#xB;&#x1;&#xB;&#x3;&#xB;&#x6;&#xB;(&#xB;&#x3;&#xB;&#x1;&#x0;^\n&#x11;&#x0;&#x18;\n8&#x0;&#x10;&#xB;Ā&#x0;€&#xB;€&#x0;ᦶ&#xB;\n&#xB;@&#x0;冦&#xB;Z&#xB;ҍ\nݳ&#x0;⮤\n⅜&#x0;Į&#xB;Ò&#xB;&#x7;\n&#xC;&#x0;&#x5;\n&#x5;&#x0;&#x1;\n&#x1;&#x0;\n\n&#x1;&#x0;\r\n&#x1;&#x0;&#x5;\n&#x1;&#x0;&#x1;\n&#x1;&#x0;&#x2;\n&#x1;&#x0;&#x2;\n&#x1;&#x0;l\n!&#x0;ū\n&#x12;&#x0;@\n&#x2;&#x0;6\n(&#x0;&#xC;\nt&#x0;&#x3;\n&#x1;&#x0;&#x1;\n&#x1;&#x0;‡\n&#x13;&#x0;\n&#x2;&#x7;&#x0;&#x1A;\n&#x6;&#x0;&#x1A;\n\n&#x0;&#x1;&#xB;:&#xB;&#x1F;\n&#x3;&#x0;&#x6;\n&#x2;&#x0;&#x6;\n&#x2;&#x0;&#x6;\n&#x2;&#x0;&#x3;\n#&#x0;"</defect>
      </target>


Reproducible: Always

Steps to Reproduce:
1. Run an analysis with No Limit/All/All/All.
2. Click "View Report..."
Actual Results:  
NET unhandled Exception Dialog appears with detail in summary.

Expected Results:  
Browser should launch with the report.

-- 
Configure bugmail: http://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