#132 Property ${translation.severity} has not been set

release_3.2
closed
Oliver Burn
5
2012-10-10
2003-07-18
rzo
No

Hi,

got the same error on windows console
i am running checkstyle 3.1 with jdk 1.4.2 on w2k.

could someone help.

rgds

ron.

trace:

C:\test\checkstyle-3.1>java -classpath
"C:\test\checkstyle-3.1\lib\checkstyle-al
l-3.1.jar;C:\test\checkstyle-3.1\lib\checkstyle-3.1.jar;"
-jar C:\test\checkstyl
e-3.1\lib\checkstyle-all-3.1.jar -c
C:\test\checkstyle-3.1\docs\checkstyle_check
s.xml -r test
Error loading configuration file
com.puppycrawl.tools.checkstyle.api.CheckstyleException:
unable to parse C:\test
\checkstyle-3.1\docs\checkstyle_checks.xml - Property
${translation.severity} ha
s not been set
at
com.puppycrawl.tools.checkstyle.ConfigurationLoader.loadConfiguration
(ConfigurationLoader.java:231)
at
com.puppycrawl.tools.checkstyle.Main.main(Main.java:94)
Caused by: org.xml.sax.SAXException: Property
${translation.severity} has not be
en set
at
com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader.st
artElement(ConfigurationLoader.java:123)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1637)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
at
org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)

    at

com.puppycrawl.tools.checkstyle.AbstractLoader.parseInputSource(Abstr
actLoader.java:83)
at
com.puppycrawl.tools.checkstyle.ConfigurationLoader.parseInputStream(
ConfigurationLoader.java:184)
at
com.puppycrawl.tools.checkstyle.ConfigurationLoader.loadConfiguration
(ConfigurationLoader.java:213)
... 1 more

Discussion

  • Logged In: YES
    user_id=746148

    This is a duplicate of 750169 (novice problem:
    ${translation.severity} in anttask.html).

    You should set translation.severity property e.g. -
    Dtranslation.severity=ignore (you can use error, warning or
    info instead ignore)

     
  • Lars Kühne
    Lars Kühne
    2003-07-19

    Logged In: YES
    user_id=401384

    Closing as a duplicate, see also my comment in the bug Oleg
    mentioned.