This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Issue when to trying check code with pmd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Issue when to trying check code with pmd" Watch "Issue when to trying check code with pmd" New topic
Author

Issue when to trying check code with pmd

srini arumugam
Greenhorn

Joined: Nov 02, 2009
Posts: 14
Hi ,

Am using Eclipse Platform

Version: 3.4.2
Build id: M20090211-1700

And I downloaded pmd plugin from the site http://pmd.sourceforge.net/eclipse/ from which I installed version 3.2.6,

Restarted eclipse, But when I try to check java file for pmd violations , am getting the error message like below.

"An Internal error occured during code review"

When I checked the pmd log file, it showed some thing like,


2010/07/30 11:14:41,672 ERROR PMDPlugin Error executing command ReviewCode
name.herlin.command.CommandException: net.sourceforge.pmd.eclipse.runtime.properties.PropertiesException: The project ruleset file cannot be found for project
at net.sourceforge.pmd.eclipse.runtime.cmd.ReviewCodeCmd.processResourceDelta(Unknown Source)
at net.sourceforge.pmd.eclipse.runtime.cmd.ReviewCodeCmd.execute(Unknown Source)
at net.sourceforge.pmd.eclipse.runtime.cmd.JobCommandProcessor$1.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: net.sourceforge.pmd.eclipse.runtime.properties.PropertiesException: The project ruleset file cannot be found for project
at net.sourceforge.pmd.eclipse.runtime.properties.impl.ProjectPropertiesImpl.setRuleSetStoredInProject(Unknown Source)
at net.sourceforge.pmd.eclipse.runtime.properties.impl.ProjectPropertiesManagerImpl.fillProjectProperties(Unknown Source)
at net.sourceforge.pmd.eclipse.runtime.properties.impl.ProjectPropertiesManagerImpl.loadProjectProperties(Unknown Source)
at net.sourceforge.pmd.eclipse.plugin.PMDPlugin.loadProjectProperties(Unknown Source)
... 4 more





I tried reinstalling the plugin, code clean up, etc. But still the problem is not resolved,

Can any one please help.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Issue when to trying check code with pmd
 
Similar Threads
Applet in JSP
Building Archetypes
eclipse: trouble creating new j2ee/ejb project
class not found error
Moving from JBuilder2005 Foundation to Eclipse 3.2