You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2013/04/01 17:35:15 UTC
[jira] [Commented] (HADOOP-9447) Configuration to include name of
failing file/resource when wrapping an XML parser exception
[ https://issues.apache.org/jira/browse/HADOOP-9447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13618832#comment-13618832 ]
Steve Loughran commented on HADOOP-9447:
----------------------------------------
today
{code}
Caused by: java.lang.RuntimeException: org.xml.sax.SAXParseException: Premature end of file.
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2050)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1899)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1816)
at org.apache.hadoop.conf.Configuration.get(Configuration.java:719)
at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:738)
at org.apache.hadoop.conf.Configuration.getLong(Configuration.java:948)
at org.apache.hadoop.security.Groups.<init>(Groups.java:62)
at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:182)
at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:244)
at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:213)
at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:674)
at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:582)
at org.apache.hadoop.fs.FileContext.getFileContext(FileContext.java:458)
at org.apache.hadoop.fs.FileContext.getFileContext(FileContext.java:439)
at org.apache.hadoop.fs.FileContext.getLocalFSFileContext(FileContext.java:425)
at org.apache.hadoop.yarn.server.MiniYARNCluster.<init>(MiniYARNCluster.java:91)
... 23 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:153)
at org.apache.hadoop.conf.Configuration.parse(Configuration.java:1887)
at org.apache.hadoop.conf.Configuration.parse(Configuration.java:1875)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1946)
... 38 more
{code}
> Configuration to include name of failing file/resource when wrapping an XML parser exception
> --------------------------------------------------------------------------------------------
>
> Key: HADOOP-9447
> URL: https://issues.apache.org/jira/browse/HADOOP-9447
> Project: Hadoop Common
> Issue Type: Improvement
> Components: conf
> Affects Versions: 3.0.0
> Reporter: Steve Loughran
> Priority: Trivial
>
> Currently, when there is an error parsing an XML file, the name of the file at fault is logged, but not included in the (wrapped) XML exception. If that same file/resource name were included in the text of the wrapped exception, people would be able to find out which file was causing problems
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira