[
https://issues.apache.org/jira/browse/HADOOP-12231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14626018#comment-14626018
]
Krishnamoorthy Dharmalingam commented on HADOOP-12231:
--
the code in Hadoop, UnSupportedOperationException they do expect while calling
setXIncludeAware() method, get logged as error with full trace.
Hadoop code didn’t throw that to the caller(getConfiguration() call).
If we have application which calls Configuration.get() 100 times, this
exception trace get logged 100times,
Better it can be printed only once, that too warning message is enough, not
necessary to log complete trace.
try {
docBuilderFactory.setXIncludeAware(true);
} catch (UnsupportedOperationException e) {
LOG.error(Failed to set setXIncludeAware(true) for parser +
docBuilderFactory + : + e, e);
}
The above LOG.error() stmt suppose to be fixed.
setXIncludeAware errror keep logged while calling get from Configuration
Key: HADOOP-12231
URL: https://issues.apache.org/jira/browse/HADOOP-12231
Project: Hadoop Common
Issue Type: Bug
Components: fs
Environment: Oracle XDK parser
Reporter: Krishnamoorthy Dharmalingam
Priority: Trivial
[junit] [ERROR] Configuration - Failed to set setXIncludeAware(true) for
parser
oracle.xml.jaxp.JXDocumentBuilderFactory@14673fc2:java.lang.UnsupportedOperationException:
setXIncludeAware is not supported on this JAXP implementation or earlier:
class oracle.xml.jaxp.JXDocumentBuilderFactory
java.lang.UnsupportedOperationException: setXIncludeAware is not supported
on this JAXP implementation or earlier: class
oracle.xml.jaxp.JXDocumentBuilderFactoryjava.lang.UnsupportedOperationException:
setXIncludeAware is not supported on this JAXP implementation or earlier:
class oracle.xml.jaxp.JXDocumentBuilderFactory
[junit] at
javax.xml.parsers.DocumentBuilderFactory.setXIncludeAware(DocumentBuilderFactory.java:584)
[junit] at
org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2216)
[junit] at
org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2185)
[junit] at
org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2102)
[junit] at
org.apache.hadoop.conf.Configuration.get(Configuration.java:851)
[junit] at
oracle.odi.hdfs.client.api.impl.OdiHDFSClient.init(OdiHDFSClient.java:137)
[junit] at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[junit] at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[junit] at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[junit] at
java.lang.reflect.Constructor.newInstance(Constructor.java:422)
[junit] at
oracle.odi.hdfs.client.api.OdiHadoopClasspathHelper.getNewInstance(OdiHadoopClasspathHelper.java:243)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)