Strange exception when running checkstyle

Michael Koch <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.xml
Message-ID <[email protected]>
Hi list,


I tried to run checkstyle with jamvm-1.2.3/classpath-cvs. I get the 
following exception:

Error loading configuration file
com.puppycrawl.tools.checkstyle.api.CheckstyleException: unable to 
parse scripts/checkstyle-config.xml - No base URI; hope URI is 
absolute: 
http://members.iinet.net.au/~oburn/dtds/configuration_1_2.dtd:4:64
   at 
com.puppycrawl.tools.checkstyle.ConfigurationLoader.loadConfiguration 
(ConfigurationLoader.java:261)
   at com.puppycrawl.tools.checkstyle.Main.loadConfig (Main.java:248)
   at com.puppycrawl.tools.checkstyle.Main.main (Main.java:93)
Caused by: org.xml.sax.SAXParseException: No base URI; hope URI is 
absolute: 
http://members.iinet.net.au/~oburn/dtds/configuration_1_2.dtd
   at gnu.xml.aelfred2.SAXDriver.warn (SAXDriver.java:1031)
   at gnu.xml.aelfred2.XmlParser.readExternalIds (XmlParser.java:2811)
   at gnu.xml.aelfred2.XmlParser.parseDoctypedecl (XmlParser.java:856)
   at gnu.xml.aelfred2.XmlParser.parseProlog (XmlParser.java:534)
   at gnu.xml.aelfred2.XmlParser.parseDocument (XmlParser.java:421)
   at gnu.xml.aelfred2.XmlParser.doParse (XmlParser.java:171)
   at gnu.xml.aelfred2.SAXDriver.parse (SAXDriver.java:352)
   at gnu.xml.aelfred2.XmlReader.parse (XmlReader.java:310)
   at 
com.puppycrawl.tools.checkstyle.api.AbstractLoader.parseInputSource 
(AbstractLoader.java:95)
   at 
com.puppycrawl.tools.checkstyle.ConfigurationLoader.parseInputStream 
(ConfigurationLoader.java:219)
   at 
com.puppycrawl.tools.checkstyle.ConfigurationLoader.loadConfiguration 
(ConfigurationLoader.java:248)
   ...2 more

When I used Xalan instead of GNU JAXP it worked nicely.


Michael
-- 
Homepage: http://www.worldforge.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.