hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Error
Date Mon, 20 Sep 2010 13:20:51 GMT
On 17/09/10 08:08, Adarsh Sharma wrote:
> Dear all,
> I am trying to connect Hive through my application but i am getting the
> following error :
>
> 12:03:10 ERROR conf.Configuration: Failed to set setXIncludeAware(true)
> for parser
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@8888e6c:java.lang.UnsupportedOperationException:
> This parser does not support specification "null" version "null"
> java.lang.UnsupportedOperationException: This parser does not support
> specification "null" version "null"
> at
> javax.xml.parsers.DocumentBuilderFactory.setXIncludeAware(DocumentBuilderFactory.java:590)

seen that.

> I googled a lot and find the root cause that my xerces-j2-2.7.1.jar is
> not supporting this advanced document parsing. But I'm not able to k now
> that how can I change the value of
> org.apache.xerces.jaxp.SAXParserImpl and which advanced jar file I
> needed to run this.

That's right.


> I find a solution but don't know how to set this parameter in Java in
> Eclipse or through command line.
>
> -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"
>
>
>
> Following command shows that xerce.jar is in use.
> $ ant -diagnostics
> XML Parser information
> -------------------------------------------
> XML Parser : org.apache.xerces.jaxp.SAXParserImpl
>
> XML Parser Location: /usr/share/java/xerces-j2-2.7.1.jar
>
> Thanks for any help.

The best action is get rid of that parser. Wherever it came from , there 
is a better one in Java6, so that JAR is unwanted.

Mime
View raw message