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 201221 - org.xml.sax.SAXException: Property ${cacheFile} has not been set
Summary: org.xml.sax.SAXException: Property ${cacheFile} has not been set
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-22 15:48 UTC by Alniks
Modified: 2016-02-09 12:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 69729


Attachments
stacktrace (3.65 KB, text/plain)
2011-08-22 15:48 UTC, Alniks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alniks 2011-08-22 15:48:36 UTC
Build: NetBeans IDE 7.0.1 (Build 201107282000)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows 7

User Comments:
GUEST: Running a checkstyle task from an ant script.

GUEST: Editing a file with checkstyle. I'm only using a custom checkstyle XML.

GUEST: I was doing nothing in particular. This error just appears out of the blue. I have ${checkstyle.suppressions.file} defined in my build.xml but the checkstyle target (if executed) runs fine.

GUEST: I can not use any xml checkstyle configuration file

org.xml.sax.SAXException: Property ${checkstyle.cache.file} has not been set
	at com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader.startElement(ConfigurationLoader.java:149)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:788)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocume

GUEST: this proble occured while configuring the checkstyle plugin. not able to setup the checkstyle in netbeans  please help




Stacktrace: 
org.xml.sax.SAXException: Property ${cacheFile} has not been set
   at com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader.startElement(ConfigurationLoader.java:161)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
   at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
   at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:788)
   at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
Comment 1 Alniks 2011-08-22 15:48:39 UTC
Created attachment 110137 [details]
stacktrace
Comment 2 Exceptions Reporter 2011-08-23 07:09:39 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=69729
Comment 3 Petr Hejl 2016-02-09 12:34:03 UTC
If the property is configured it should definitely work with the latest version of the plugin.