java.io.IOException: No parser found for duplicated code results file /var/lib/hudson/jobs/Kidscalcula/workspace/KidsCalcula/pmd_report.xml

Jenkins JIRA | bramjam | 7 years ago
  1. 0

    when PMD plugin try's to read the pmd outputfile, it throws an io exception: [DRY] Collecting duplicate code analysis files... [DRY] Parsing of file /var/lib/hudson/jobs/Kidscalcula/workspace/KidsCalcula/pmd_report.xml failed due to an exception: java.io.IOException: No parser found for duplicated code results file /var/lib/hudson/jobs/Kidscalcula/workspace/KidsCalcula/pmd_report.xml at hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:44) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:152) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:131) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:87) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:28) at hudson.FilePath.act(FilePath.java:747) at hudson.FilePath.act(FilePath.java:729) at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:100) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:155) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1266) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122)

    Jenkins JIRA | 7 years ago | bramjam
    java.io.IOException: No parser found for duplicated code results file /var/lib/hudson/jobs/Kidscalcula/workspace/KidsCalcula/pmd_report.xml
  2. 0

    when PMD plugin try's to read the pmd outputfile, it throws an io exception: [DRY] Collecting duplicate code analysis files... [DRY] Parsing of file /var/lib/hudson/jobs/Kidscalcula/workspace/KidsCalcula/pmd_report.xml failed due to an exception: java.io.IOException: No parser found for duplicated code results file /var/lib/hudson/jobs/Kidscalcula/workspace/KidsCalcula/pmd_report.xml at hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:44) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:152) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:131) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:87) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:28) at hudson.FilePath.act(FilePath.java:747) at hudson.FilePath.act(FilePath.java:729) at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:100) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:155) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1266) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122)

    Jenkins JIRA | 7 years ago | bramjam
    java.io.IOException: No parser found for duplicated code results file /var/lib/hudson/jobs/Kidscalcula/workspace/KidsCalcula/pmd_report.xml
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    CPD is looking at .sh files and DRY's processing of the CPD results blew up. Looking at CPDs XML Renderer, it attempts to escape anything that would prematurely end the CDATA buffer.append(StringUtil.replaceString(codeFragment, "]]>", "]]&gt;")).append(PMD.EOL + "]]>" + PMD.EOL + "</codefragment>" + PMD. EOL); Is it possible that DRY is choking in its attempt to process the contents of the CDATA block. the codefragments have hundreds of \ >> > # && >& that could confuse XML if not all escaped! 21:57:45 java.io.IOException: No parser found for duplicated code results file cpd-sh.xml 21:57:45 at hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:80) 21:57:45 at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:358) 21:57:45 at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:317) 21:57:45 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:266) 21:57:45 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) 21:57:45 at hudson.FilePath.act(FilePath.java:783) 21:57:45 at hudson.FilePath.act(FilePath.java:765) 21:57:45 at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:171) 21:57:45 at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338) 21:57:45 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 21:57:45 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:695) 21:57:45 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:670) 21:57:45 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:648) 21:57:45 at hudson.model.Build$RunnerImpl.post2(Build.java:162) 21:57:45 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:617) 21:57:45 at hudson.model.Run.run(Run.java:1429) 21:57:45 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 21:57:45 at hudson.model.ResourceController.execute(ResourceController.java:88) 21:57:45 at hudson.model.Executor.run(Executor.java:238)

    Jenkins JIRA | 5 years ago | Greg Moncreaff
    java.io.IOException: No parser found for duplicated code results file cpd-sh.xml
  5. 0

    CPD is looking at .sh files and DRY's processing of the CPD results blew up. Looking at CPDs XML Renderer, it attempts to escape anything that would prematurely end the CDATA buffer.append(StringUtil.replaceString(codeFragment, "]]>", "]]&gt;")).append(PMD.EOL + "]]>" + PMD.EOL + "</codefragment>" + PMD. EOL); Is it possible that DRY is choking in its attempt to process the contents of the CDATA block. the codefragments have hundreds of \ >> > # && >& that could confuse XML if not all escaped! 21:57:45 java.io.IOException: No parser found for duplicated code results file cpd-sh.xml 21:57:45 at hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:80) 21:57:45 at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:358) 21:57:45 at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:317) 21:57:45 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:266) 21:57:45 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) 21:57:45 at hudson.FilePath.act(FilePath.java:783) 21:57:45 at hudson.FilePath.act(FilePath.java:765) 21:57:45 at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:171) 21:57:45 at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338) 21:57:45 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 21:57:45 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:695) 21:57:45 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:670) 21:57:45 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:648) 21:57:45 at hudson.model.Build$RunnerImpl.post2(Build.java:162) 21:57:45 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:617) 21:57:45 at hudson.model.Run.run(Run.java:1429) 21:57:45 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 21:57:45 at hudson.model.ResourceController.execute(ResourceController.java:88) 21:57:45 at hudson.model.Executor.run(Executor.java:238)

    Jenkins JIRA | 5 years ago | Greg Moncreaff
    java.io.IOException: No parser found for duplicated code results file cpd-sh.xml

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      No parser found for duplicated code results file /var/lib/hudson/jobs/Kidscalcula/workspace/KidsCalcula/pmd_report.xml

      at hudson.plugins.dry.parser.DuplicationParserRegistry.parse()
    2. hudson.plugins.dry
      DuplicationParserRegistry.parse
      1. hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:44)
      1 frame
    3. Static Analysis Utilities
      FilesParser.invoke
      1. hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:152)
      2. hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:131)
      3. hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:87)
      4. hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:28)
      4 frames
    4. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:747)
      2. hudson.FilePath.act(FilePath.java:729)
      2 frames
    5. hudson.plugins.dry
      DryPublisher.perform
      1. hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:100)
      1 frame
    6. Static Analysis Utilities
      HealthAwarePublisher.perform
      1. hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:155)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:152)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      7. hudson.model.Run.run(Run.java:1266)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:122)
      10 frames