Sonarcloud cppunit reports parse fail

sonarcloud
sonarcfamily

(Freeeyes) #1

yesterday I used sonarcloud commit cppunit reports is pass.
but now I commit is error.

java error is may be parse report.xml like this

report.xml is at here(convert xml to txt)
report.txt (13.0 KB)

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
    sonar cloud
  • error observed
java.lang.IllegalStateException: Unable to parse file: /home/travis/build/freeeyes/PSS/purenessscopeserver/purenessscopeserver/PurenessScopeServer/./Linux_Bin/reports/cppunit/report.xml

at com.sonar.cpp.plugin.A.A.A(na:2185)

at com.sonar.cpp.plugin.A.C.A(na:2609)

at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)

at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)

at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)

at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)

at java.util.Iterator.forEachRemaining(Iterator.java:116)

at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)

at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)

at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)

at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)

at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)

at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)

at com.sonar.cpp.plugin.A.C.A(na:1760)

at com.sonar.cpp.plugin.A.C.execute(na:2382)

at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:45)

at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:88)

at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:62)

at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:74)

at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:164)

at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)

at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)

at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:319)

at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:314)

at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:288)

at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)

at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)

at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48)

at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:82)

at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)

at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)

at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:131)

at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116)

at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:111)

at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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:123)

at org.sonarsource.scanner.cli.Main.execute(Main.java:77)

at org.sonarsource.scanner.cli.Main.main(Main.java:61)

Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog

at [row,col {unknown-source}]: [1,0]

at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:685)

at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2141)

at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)

at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1131)

at org.codehaus.staxmate.in.SMHierarchicCursor.getNext(SMHierarchicCursor.java:71)

at org.codehaus.staxmate.in.SMInputCursor.advance(SMInputCursor.java:1631)

at com.sonar.cpp.plugin.A.A$1.A(na:2355)

at com.sonar.cpp.plugin.A.B.A(na:1215)

at com.sonar.cpp.plugin.A.B.A(na:2530)

at com.sonar.cpp.plugin.A.B.A(na:800)

at com.sonar.cpp.plugin.A.A.A(na:1259)

... 46 more

09:39:38.138 DEBUG: Execution getVersion

09:39:38.139 DEBUG: Execution stop
  • steps to reproduce
    travis CI sonarcloud commit
  • potential workaround
    None

(Massimo Paladin) #4

Hi @freeeyes,

sorry for the delay, I do not encounter any issue with your xml report on my side, are you by mistake passing a bad file to the analyzer? I can reproduce the exception you are facing when an empty file is supplied.


(Freeeyes) #5

sorry,Ionly see now. It’s run OK. no error.