Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12516

java.io.IOException @ hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:80)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: dry-plugin
    • Labels:
      None

      Description

      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, "]]>", "]]>")).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)

        Activity

          People

          • Assignee:
            drulli Ulli Hafner
            Reporter:
            moncreaff Greg Moncreaff
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: