Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A646F11A6D for ; Mon, 4 Aug 2014 11:15:41 +0000 (UTC) Received: (qmail 41342 invoked by uid 500); 4 Aug 2014 11:15:34 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 41225 invoked by uid 500); 4 Aug 2014 11:15:34 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 41214 invoked by uid 99); 4 Aug 2014 11:15:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2014 11:15:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wellington.chevreuil@gmail.com designates 209.85.220.45 as permitted sender) Received: from [209.85.220.45] (HELO mail-pa0-f45.google.com) (209.85.220.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2014 11:15:26 +0000 Received: by mail-pa0-f45.google.com with SMTP id eu11so9808923pac.18 for ; Mon, 04 Aug 2014 04:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=zuOX6NiE26WzsT2q9+WVOhhvHZvqa1g8WdqE4/1JOT4=; b=g86GMllKmxaeCIhTBJQyA6Qs30g2n4mEV0RmJQIKvCKDCDWP38S6hV3bfZp2BXK+xs XrDEqLs0ydJ0v1jKi728VxUExm3K+Cw/USfQeFdZBV6KyRLElKbaX7pC40Bv4HsCtEhL 3MJC0deGOpy55PR4wGu5OHlUIY/rajdikTki3ZgADSguMPOOluqXO04+CRBELEjv5ZXi UmcwqetedRFOPAcKslrFEZwws0M0vCTmYIXvuQRBRUJIH0bBEn3XvpFOHNiMrXpPly6+ /f18tW0gp3HFxG4ZYq7QCmGOn6nJfU5powLNGGxF5y3rSJlIsxmXtfNY4bbpFSD95Q10 8hBA== X-Received: by 10.67.29.140 with SMTP id jw12mr1683856pad.129.1407150905632; Mon, 04 Aug 2014 04:15:05 -0700 (PDT) Received: from [192.168.1.65] (host109-145-133-157.range109-145.btcentralplus.com. [109.145.133.157]) by mx.google.com with ESMTPSA id od4sm17134578pbb.70.2014.08.04.04.15.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Aug 2014 04:15:04 -0700 (PDT) From: Wellington Chevreuil Content-Type: multipart/alternative; boundary="Apple-Mail=_0470FF18-01FE-4FFA-9391-A1A83577E9F8" Message-Id: <3B424356-3526-414B-BC2E-C1CA06A75932@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: Exception in hadoop and java Date: Mon, 4 Aug 2014 12:14:59 +0100 References: To: user@hadoop.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1878.2) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_0470FF18-01FE-4FFA-9391-A1A83577E9F8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii These indicates some lib versions conflicts -> = UnsupportedOperationException: setXIncludeAware is not supported on = this JAXP implementation or earlier: class gnu.xml.dom.JAXPFactory That classe is in gnujaxp jar. This chart api probably brought different = version for this lib, from the version expected by hadoop code to parse = configurations. You should remove all dependencies for this chart api. = Have you tried remove this version from your maven repository? On 3 Aug 2014, at 05:49, Ekta Agrawal wrote: > Hi, >=20 > I am writing a code in java that connects to hadoop. Earlier it was = running fine. I wanted to add some charts and I used jfree api,it = started giving this error.chart is not using hadoop. I removed the chart = ,but it keeps coming.If anybody can look into it and help me in = understanding that why this error came up and how can I handle it?=20 >=20 > 14/08/02 21:33:01 ERROR conf.Configuration: Failed to set = setXIncludeAware(true) for parser = gnu.xml.dom.JAXPFactory@8f2ca6:java.lang.UnsupportedOperationException: = setXIncludeAware is not supported on this JAXP implementation or = earlier: class gnu.xml.dom.JAXPFactory > java.lang.UnsupportedOperationException: setXIncludeAware is not = supported on this JAXP implementation or earlier: class = gnu.xml.dom.JAXPFactory > at = javax.xml.parsers.DocumentBuilderFactory.setXIncludeAware(DocumentBuilderF= actory.java:589) > at = org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1143)= > at = org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1119= ) > at = org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1063) > at = org.apache.hadoop.conf.Configuration.get(Configuration.java:470) > at = org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:131) > at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:123) > at myclass1.myfunction1(myclass1.java:39) > at myclass1.main(myclass1.java:25) >=20 > Thanks, > Ekta --Apple-Mail=_0470FF18-01FE-4FFA-9391-A1A83577E9F8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii These = indicates some lib versions conflicts -> UnsupportedOperationException:  setXIncludeAware is not supported on this JAXP = implementation or earlier: class = gnu.xml.dom.JAXPFactory

That classe is in = gnujaxp jar. This chart api probably brought different version for this = lib, from the version expected by hadoop code to parse configurations. = You should remove all dependencies for this chart api. Have you tried = remove this version from your maven repository?

On 3 Aug 2014, at 05:49, = Ekta Agrawal <ektacloudstack@gmail.com> = wrote:

Hi,

I am = writing a code in java that connects to hadoop. Earlier it was running = fine. I wanted to add some charts and I used jfree api,it started giving = this error.chart is not using hadoop. I removed the chart ,but it keeps = coming.If anybody can look into it and help me in understanding = that why this error came up and how can I handle it? 

14/08/02 21:33:01 ERROR = conf.Configuration: Failed to set setXIncludeAware(true) for parser = gnu.xml.dom.JAXPFactory@8f2ca6:java.lang.UnsupportedOperationException:  setXIncludeAware is not supported on this JAXP = implementation or earlier: class gnu.xml.dom.JAXPFactory
java.lang.
UnsupportedOperationException:  setXIncludeAware is not supported on this JAXP = implementation or earlier: class gnu.xml.dom.JAXPFactory
    at javax.xml.parsers.
DocumentBuilderFactory.setXIncludeAware(DocumentBuilderFactory.java:589)
    at org.apache.hadoop.conf.
Configuration.loadResource(Configuration.java:1143)
    at = org.apache.hadoop.conf.
Configuration.loadResources(Configuration.java:1119)
    at org.apache.hadoop.conf.
Configuration.getProps(Configuration.java:1063)
    at = org.apache.hadoop.conf.
Configuration.get(Configuration.java:470)
    at org.apache.hadoop.fs.
FileSystem.getDefaultUri(FileSystem.java:131)
    at = org.apache.hadoop.fs.
FileSystem.get(FileSystem.java:123)
    at = myclass1.myfunction1(
myclass1.
java:39)
    at = myclass1.main(
myclass1.java:25)

Thanks,
Ekta

= --Apple-Mail=_0470FF18-01FE-4FFA-9391-A1A83577E9F8--