java org.jdom.input.JDOMParseException: 尾随部分中不允许有内容

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4933027/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 08:39:46  来源:igfitidea点击:

org.jdom.input.JDOMParseException: Content is not allowed in trailing section

java

提问by user608098

i work with jdom .this error was take place:

我与 jdom 一起工作。发生了这个错误:

org.jdom.input.JDOMParseException: Error on line 252 of document Articles.xml: Content is not allowed in trailing section.
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:530)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:905)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:884)

how can solve this error ?

如何解决这个错误?

thank you!

谢谢!

回答by dogbane

Check that your XML is valid and that there are no non-whitespace characters after the last closing tag of your XML document.

检查您的 XML 是否有效,并且在您的 XML 文档的最后一个结束标记之后没有非空白字符。

回答by Ravi Macha

It seems like you have missed any one of mentioned

似乎你错过了任何提到的

Not set grails proper Version
Missing application.properties file (with proper grails version)