Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CxxXunitSensor exception handling a boost report #1050

Closed
guwirth opened this issue Feb 8, 2017 · 0 comments · Fixed by #1051
Closed

CxxXunitSensor exception handling a boost report #1050

guwirth opened this issue Feb 8, 2017 · 0 comments · Fixed by #1051
Assignees
Labels
Milestone

Comments

@guwirth
Copy link
Collaborator

guwirth commented Feb 8, 2017

Hi, get below error reading a boost unit test report file: col=9907 is EOF.

13:33:56.791 INFO: Processing report 'C:\Demo\xxx.xml'
13:33:56.791 DEBUG: Transformation skipped: no xslt given
13:33:56.806 ERROR: Cannot feed the data into SonarQube, details: 'javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,9907]
Message: Can not call 'getAttributeValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED)'
13:33:56.806 INFO: ------------------------------------------------------------------------
13:33:56.806 INFO: EXECUTION FAILURE
13:33:56.806 INFO: ------------------------------------------------------------------------
13:33:56.806 INFO: Total time: 5.584s
13:33:56.853 INFO: Final Memory: 54M/904M
13:33:56.853 INFO: ------------------------------------------------------------------------
13:33:56.853 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Cannot feed the data into SonarQube, details: 'javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,9907]
Message: Can not call 'getAttributeValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED)'
        at org.sonar.plugins.cxx.tests.xunit.CxxXunitSensor.execute(CxxXunitSensor.java:129)
        at org.sonar.batch.sensor.SensorWrapper.analyse(SensorWrapper.java:57)
        at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
        at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
        at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
        at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
        at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
        at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
        at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
        at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
        at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
        at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
        at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
        at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
        at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:74)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,9907]
Message: Can not call 'getAttributeValue(): 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:305)
        at org.codehaus.staxmate.in.SMInputCursor.getAttrValue(SMInputCursor.java:970)
        at org.sonar.plugins.cxx.tests.xunit.XunitReportParser.parseTestSuiteTag(XunitReportParser.java:69)
        at org.sonar.plugins.cxx.tests.xunit.XunitReportParser.stream(XunitReportParser.java:63)
        at org.sonar.plugins.cxx.utils.StaxParser.parse(StaxParser.java:110)
        at org.sonar.plugins.cxx.utils.StaxParser.parse(StaxParser.java:90)
        at org.sonar.plugins.cxx.utils.StaxParser.parse(StaxParser.java:80)
        at org.sonar.plugins.cxx.tests.xunit.CxxXunitSensor.execute(CxxXunitSensor.java:110)
        ... 30 more
@guwirth guwirth added the bug label Feb 8, 2017
@guwirth guwirth added this to the 0.9.7 milestone Feb 8, 2017
@guwirth guwirth self-assigned this Apr 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

1 participant