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

Summary: 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
Product: third-party Reporter: vsriram92
Component: -- Other --Assignee: ent38 <ent38>
Status: NEW ---    
Severity: normal CC: karlboenisch, mihai, zdenek.rod
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 154701
Attachments: stacktrace
stacktrace

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