Still, this should not happen as it could screw up multiproject builds.
However I just ran pmd on a project with no java source files, got the
same warning but no NPE.
Which version of the pmd plugin are you using? Please provide more
details about your setup.
-Lukas
Wayne Fay wrote:
I think your problem is:
[echo] No java source files to process.
So then there's no PMD report to convert, resulting in the NPE.
[echo] Converting the PMD report to xdoc ...
java.lang.NullPointerException
Not positive but this is my guess about what's going on.
Wayne
On 12/12/06, t rajesh <[EMAIL PROTECTED]> wrote:
Hi,
build:start:
pmd:
pmd:report:
[echo] Running the PMD task with
rulesets/basic.xml,rulesets/unusedcode.xml,rulesets/imports.xml ...
[echo] No java source files to process.
[echo] Converting the PMD report to xdoc ...
Caught exception evaluating:
[EMAIL PROTECTED] Reason:
java.lang.NullPointerException
java.lang.NullPointerException
at java.io.File.<init>(File.java:194)
at org.apache.velocity.texen.util.FileUtil.file(FileUtil.java:59)
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.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:268)
at
org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:61)
at
org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:68)
at
org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:50)
at
org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86)
at
org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69)
at org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
at
org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
//Rajesh
---------------------------------
Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version
8. Get it NOW
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]