This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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.

 
Consider Paul's rocket mass heater.
 
subject: Issue when to trying check code with pmd