cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Mao <james....@iona.com>
Subject Re: PMD errors
Date Tue, 10 Oct 2006 03:23:35 GMT
Hi Dan,

Thanks,
I cleaned the pmd from the local repository, and tried again, the pmd 
downloaded now is 1.7 (previous 1.6)
Now i can pass the build, but still have a warning on the same point 
(previous it's an error)

My platform is windows2000, and someone tested on winxp, same problem. 
but i tested on RHEL, there are no problems.

I'll uncomment the rule, when it's fixed.

[WARNING] Failure executing PMD for: 
C:\PROJECT\celtix\apache\dev\rt\ws\addr\src\main\java\org\apache\cxf\ws\addressing\soap\MAPCo
dec.java
net.sourceforge.pmd.PMDException: Error while processing 
C:\PROJECT\celtix\apache\dev\rt\ws\addr\src\main\java\org\apache\cxf\ws\a
ddressing\soap\MAPCodec.java
        at net.sourceforge.pmd.PMD.processFile(PMD.java:109)
        at net.sourceforge.pmd.PMD.processFile(PMD.java:66)
        at net.sourceforge.pmd.PMD.processFile(PMD.java:152)
        at 
org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:204)
        at 
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
        at 
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:898)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:734)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:505)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.NullPointerException
        at 
net.sourceforge.pmd.rules.UselessOverridingMethod.visit(UselessOverridingMethod.java:47)
        at 
net.sourceforge.pmd.ast.ASTMethodDeclaration.jjtAccept(ASTMethodDeclaration.java:18)
        at 
net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:47)
        at 
net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration.jjtAccept(ASTClassOrInterfaceBodyDeclaration.java:34)
        at 
net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:43)
        at 
net.sourceforge.pmd.ast.ASTClassOrInterfaceBody.jjtAccept(ASTClassOrInterfaceBody.java:19)
        at 
net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:19)
        at 
net.sourceforge.pmd.rules.UselessOverridingMethod.visit(UselessOverridingMethod.java:34)
        at 
net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration.jjtAccept(ASTClassOrInterfaceDeclaration.java:18)
        at 
net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:159)
        at 
net.sourceforge.pmd.ast.ASTTypeDeclaration.jjtAccept(ASTTypeDeclaration.java:33)
        at 
net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:135)
        at net.sourceforge.pmd.AbstractRule.visitAll(AbstractRule.java:183)
        at net.sourceforge.pmd.AbstractRule.apply(AbstractRule.java:144)
        at net.sourceforge.pmd.RuleSet.apply(RuleSet.java:97)
        at net.sourceforge.pmd.RuleSets.apply(RuleSets.java:99)
        at net.sourceforge.pmd.PMD.processFile(PMD.java:104)
        at net.sourceforge.pmd.PMD.processFile(PMD.java:66)
        at net.sourceforge.pmd.PMD.processFile(PMD.java:152)
        at 
org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:204)
        at 
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
        at 
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:898)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:734)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:505)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[WARNING] Failure executing PMD for: 
C:\PROJECT\celtix\apache\dev\rt\ws\addr\src\main\java\org\apache\cxf\ws\addressing\soap\Versi
onTransformer.java
net.sourceforge.pmd.PMDException: Error while processing 
C:\PROJECT\celtix\apache\dev\rt\ws\addr\src\main\java\org\apache\cxf\ws\a
ddressing\soap\VersionTransformer.java
        at net.sourceforge.pmd.PMD.processFile(PMD.java:109)
        at net.sourceforge.pmd.PMD.processFile(PMD.java:66)
        at net.sourceforge.pmd.PMD.processFile(PMD.java:152)
        at 
org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:204)
        at 
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
        at 
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:898)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:734)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:505)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.NullPointerException
        at 
net.sourceforge.pmd.rules.UselessOverridingMethod.visit(UselessOverridingMethod.java:47)
        at 
net.sourceforge.pmd.ast.ASTMethodDeclaration.jjtAccept(ASTMethodDeclaration.java:18)
        at 
net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:47)
        at 
net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration.jjtAccept(ASTClassOrInterfaceBodyDeclaration.java:34)
        at 
net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:43)
        at 
net.sourceforge.pmd.ast.ASTClassOrInterfaceBody.jjtAccept(ASTClassOrInterfaceBody.java:19)
        at 
net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:19)
        at 
net.sourceforge.pmd.rules.UselessOverridingMethod.visit(UselessOverridingMethod.java:34)
        at 
net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration.jjtAccept(ASTClassOrInterfaceDeclaration.java:18)
        at 
net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:159)
        at 
net.sourceforge.pmd.ast.ASTTypeDeclaration.jjtAccept(ASTTypeDeclaration.java:33)
        at 
net.sourceforge.pmd.ast.SimpleJavaNode.childrenAccept(SimpleJavaNode.java:44)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:6)
        at 
net.sourceforge.pmd.ast.JavaParserVisitorAdapter.visit(JavaParserVisitorAdapter.java:135)
        at net.sourceforge.pmd.AbstractRule.visitAll(AbstractRule.java:183)
        at net.sourceforge.pmd.AbstractRule.apply(AbstractRule.java:144)
        at net.sourceforge.pmd.RuleSet.apply(RuleSet.java:97)
        at net.sourceforge.pmd.RuleSets.apply(RuleSets.java:99)
        at net.sourceforge.pmd.PMD.processFile(PMD.java:104)
        at net.sourceforge.pmd.PMD.processFile(PMD.java:66)
        at net.sourceforge.pmd.PMD.processFile(PMD.java:152)
        at 
org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:204)
        at 
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
        at 
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:898)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:734)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:505)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] [pmd:check {execution: process-sources}]


Daniel Kulp 写道:
> james,
>
> This is most likely due to using an old version of the PMD plugin since 
> the error is not seen on other peoples computers.    For some reason, 
> maven doesn't always update the plugins.    You can try running 
> a "mvn -U" to force the upgrade, but even that doesn't always work.  :-(
>
> My suggestion is to delete the maven-pmd-plugin directory from your local 
> repository and retry.
>
> Dan
>
>
> On Monday October 09 2006 3:20 am, James Mao wrote:
>   
>> There is a pmd error on windows platform
>> [INFO] Preparing pmd:check
>> [INFO] [pmd:pmd]
>> [INFO]
>> -----------------------------------------------------------------------
>> - [ERROR] BUILD ERROR
>> [INFO]
>> -----------------------------------------------------------------------
>> - [INFO] An error has occurred in PMD Report report generation.
>>
>> Embedded error: Failure executing PMD for:
>> C:\PROJECT\celtix\apache\dev\rt\ws\addr\src\main\java\org\apache\cxf\ws
>> \addressing\soap \MAPCodec.java
>>
>> I commented   <!--rule
>> ref="rulesets/basic.xml/UselessOverridingMethod"/--> in the .ruleset
>> under ws/addr, and it passed.
>> Seems a pmd bug, anyone knows which version of pmd are we using? do we
>> need to upgrade?
>>
>>
>> Thanks,
>> James.
>>     
>
>   


Mime
View raw message