This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 249083 - RuntimeException: Couldn't find that class Can't find resource rulesets/java/strings.xml. Make sure the resource is a valid file or URL or is on the CLASSPATH
Summary: RuntimeException: Couldn't find that class Can't find resource rulesets/java/...
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: ent38
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-03 12:19 UTC by vsriram92
Modified: 2014-12-12 13:43 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 154701


Attachments
stacktrace (1.81 KB, text/plain)
2014-12-03 12:19 UTC, vsriram92
Details
stacktrace (1.84 KB, text/plain)
2014-12-11 14:49 UTC, zdenek.rod
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vsriram92 2014-12-03 12:19:33 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 8

User Comments:
GUEST: PMD Plugin doesn't seem to work properly with NetBeans 6.7 and getting the following error. Is there any fix available for it?

SEVERE
java.lang.RuntimeException: Couldn't find that class Content is not allowed in prolog.
	at net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(RuleSetFactory.java:235)
	at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:157)
Caused: java.lang.reflect.InvocationTargetException
	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:597)
[catch] at pmd.config.ConfigUtils.getAllAvailableRules(ConfigUtils.java:154)
	at pmd.config.ConfigUtils.createRuleList(ConfigUtils.java:77)
	at pmd.config.PMDOptionsSettings.getRuleList(PMDOptionsSettings.java:163)
	at pmd.RunPMDAction.constructRuleSets(RunPMDAction.java:302)

GUEST: SEVERE
java.lang.RuntimeException: Couldn't find that class Content is not allowed in prolog.
	at net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(RuleSetFactory.java:235)
	at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:157)
Caused: java.lang.reflect.InvocationTargetException
	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:597)
[catch] at pmd.config.ConfigUtils.getAllAvailableRules(ConfigUtils.java:154)
	at pmd.config.ConfigUtils.createRuleList(ConfigUtils.java:77)
	at pmd.config.PMDOptionsSettings.getRuleList(PMDOptionsSettings.java:163)
	at pmd.RunPMDAction.constructRuleSets(RunPMDAction.java:302)
	at pmd.RunPMDAction.performScan(RunPMDAction.java:156)
	at pmd.scan.Scanner.run(Scanner.java:113)
	at pmd.scan.Scanner.run(Scann

mihai: sorry - was a miss-configured pmd.

GUEST: Iniciando NetBeans

vsriram92: Unable to add or remove a PMD file

karlboenisch: I do not have any info here.
There is just the notification from time to time coming up with this error




Stacktrace: 
java.lang.RuntimeException: Couldn't find that class Can't find resource rulesets/java/strings.xml. Make sure the resource is a valid file or URL or is on the CLASSPATH
   at net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(RuleSetFactory.java:229)
   at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:157)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:483)
Comment 1 vsriram92 2014-12-03 12:19:37 UTC
Created attachment 150856 [details]
stacktrace
Comment 2 zdenek.rod 2014-12-11 14:49:33 UTC
Created attachment 151047 [details]
stacktrace

I install checkstyle and pmd plugins
Comment 3 Antonin Nebuzelsky 2014-12-12 13:43:13 UTC
-> PMD plugin