[Issue 3960] New - Error on parse cpd.xml

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 3960] New - Error on parse cpd.xml

sberlotto
https://hudson.dev.java.net/issues/show_bug.cgi?id=3960
                 Issue #|3960
                 Summary|Error on parse cpd.xml
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|dry
             Assigned to|drulli
             Reported by|sberlotto






------- Additional comments from [hidden email] Mon Jun 29 17:47:46 +0000 2009 -------
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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3960] Error on parse cpd.xml

drulli
https://hudson.dev.java.net/issues/show_bug.cgi?id=3960






------- Additional comments from [hidden email] Mon Jun 29 20:46:15 +0000 2009 -------
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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3960] Error on parse cpd.xml

sberlotto
In reply to this post by sberlotto
https://hudson.dev.java.net/issues/show_bug.cgi?id=3960



User sberlotto changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |INVALID
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Mon Jun 29 20:55:48 +0000 2009 -------
Sorry, need to inform 'format="xml"' in cpd ant task....
The default format is text.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]