[
https://issues.apache.org/jira/browse/HADOOP-5254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673291#action_12673291
]
Steve Loughran commented on HADOOP-5254:
----------------------------------------
Putting xerces-2.9.1 and xml-apis-1.3.04 on the classpath appears to eliminate
this problem.
Which implies two actions
# Require XInclude in the Parser
* have some explicit restrictions on which XML parsers to use, knowing that
some setups won't have it
* consider bundling Xerces/xml-apis with Hadoop to reduce support calls
* doc that all programs that need to load a Configuration() instance had
better have it
* catch and rethrow the exception, this time with a helpful error message
pointing to the relevant web page
# Ignore XInclude when not enabled
* catch and log the exception
* backwards compatible
* will cause problems if people want XInclude, and don't get it.
* may cause some tests to fail (not seen that myself yet)
* consider recognising XInclude errors and having more meaningful error
messages "upgrade your parser"
> Xinclude setup results in a stack trace
> ---------------------------------------
>
> Key: HADOOP-5254
> URL: https://issues.apache.org/jira/browse/HADOOP-5254
> Project: Hadoop Core
> Issue Type: Bug
> Components: conf
> Affects Versions: 0.21.0
> Environment: java version "1.6.0_02"
> Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
> BEA JRockit(R) (build R27.4.0-90-89592-1.6.0_02-20070928-1715-linux-x86_64,
> compiled mode)
> Reporter: Steve Loughran
> Attachments: hadoop-5254.patch
>
>
> seen this in SVN_HEAD, and it was mentioned on the user list in the week. It
> explains why my health tests are failing on class.ForName(FSConstants)
> gistration(127.0.0.1:8024,
> storageID=DS-1466307248-127.0.1.1-8024-1234537374021, infoPort=8022,
> ipcPort=50020):DataXceiver
> [sf-startdaemon-debug] java.lang.ExceptionInInitializerError
> [sf-startdaemon-debug] at
> org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:76)
> [sf-startdaemon-debug] at java.lang.Thread.run(Thread.java:619)
> [sf-startdaemon-debug] Caused by: java.lang.UnsupportedOperationException:
> This parser does not support specification "null" version "null"
> [sf-startdaemon-debug] at
> javax.xml.parsers.DocumentBuilderFactory.setXIncludeAware(DocumentBuilderFactory.java:590)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.