Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Incomplete
    • Component/s: dry-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      java.io.IOException: No parser found for duplicated code results file
      /hudson/workspaces/Myproject/cpd.xml
      at
      hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:42)
      at hudson.plugins.dry.util.FilesParser.parseFile(FilesParser.java:146)
      at hudson.plugins.dry.util.FilesParser.parseFiles(FilesParser.java:125)
      at hudson.plugins.dry.util.FilesParser.invoke(FilesParser.java:81)
      at hudson.plugins.dry.util.FilesParser.invoke(FilesParser.java:22)
      at hudson.FilePath.act(FilePath.java:649)
      at hudson.FilePath.act(FilePath.java:633)
      at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:99)
      at
      hudson.plugins.dry.util.HealthAwarePublisher.perform(HealthAwarePublisher.java:136)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:379)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:367)
      at hudson.model.Build$RunnerImpl.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:352)
      at hudson.model.Run.run(Run.java:958)
      at hudson.model.Build.run(Build.java:112)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:118)

      I´ve created cpd.xml equals to this example: http://pmd.sourceforge.net/cpd.html
      The file cpd.xml existis. And path is ok.

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          Did you check if the XML file is valid? There is a bug in the CPD tool if the
          source code files contain non ASCII characters.

          Show
          drulli Ulli Hafner added a comment - Did you check if the XML file is valid? There is a bug in the CPD tool if the source code files contain non ASCII characters.
          Hide
          sberlotto sberlotto added a comment -

          Sorry, need to inform 'format="xml"' in cpd ant task....
          The default format is text.

          Show
          sberlotto sberlotto added a comment - Sorry, need to inform 'format="xml"' in cpd ant task.... The default format is text.

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              sberlotto sberlotto
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: