SonarQube C#
  1. SonarQube C#
  2. SONARCS-80

Error while parsing result file from Gallio

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Here's the excerpt from the log:

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[17468,67]
      Message: Can not call 'getLocalName(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED)
      	at org.codehaus.staxmate.in.SMInputCursor.constructStreamException(SMInputCursor.java:1855)
      	at org.codehaus.staxmate.in.CursorBase._notAccessible(CursorBase.java:296)
      	at org.codehaus.staxmate.in.SMInputCursor.getLocalName(SMInputCursor.java:587)
      	at org.sonar.plugins.csharp.gallio.helper.StaxHelper.findElementName(StaxHelper.java:101)
      	... 61 more
      

        Activity

        Hide
        Fabrice Bellingard added a comment -

        This actually happens when the "<contents>" section of a failure has no "<text>" element (= has no message).

        <testLog>
          <streams>
            <stream name="Failures">
              <body>
                <contents>
                  <section name="Message">
                    <contents />
                  </section>
                </contents>
              </body>
            </stream>
          </streams>
          <attachments />
        </testLog>
        
        Show
        Fabrice Bellingard added a comment - This actually happens when the "<contents>" section of a failure has no "<text>" element (= has no message). <testLog> <streams> <stream name= "Failures" > <body> <contents> <section name= "Message" > <contents /> </section> </contents> </body> </stream> </streams> <attachments /> </testLog>

          People

          • Assignee:
            Fabrice Bellingard
            Reporter:
            Fabrice Bellingard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: