Error while using the library

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
er.ektaagrawal
Posts: 4
Joined: Mon Aug 04, 2014 8:07 am
antibot: No, of course not.

Error while using the library

Post by er.ektaagrawal » Mon Aug 04, 2014 8:22 am

Hi,

I am using JFree library to show chart on a swing UI,I am also using hadoop,but the data I am using in chart is static,I even opened the DocumentBuilderFactory.java and locate the gnujaxp.jar.I have refrenced all the four jars,the jars are kept on desktop ,the bar chart is shown properly on swing ui.The only problem is ,It is writing this exeception in console.Can somebody help me, how can i solve it?

14/08/04 00:08:43 ERROR conf.Configuration: Failed to set setXIncludeAware(true) for parser gnu.xml.dom.JAXPFactory@1a13f3d: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:416)
at org.apache.hadoop.conf.Configuration.getInt(Configuration.java:485)
at org.apache.hadoop.hdfs.protocol.FSConstants.<clinit>(FSConstants.java:49)
at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.createBlockOutputStream(DFSClient.java:3435)
at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:3381)
at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2600(DFSClient.java:2589)
at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2829)

Thanks in Advance,
Ekta

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Error while using the library

Post by david.gilbert » Mon Aug 04, 2014 8:29 am

gnujaxp.jar was originally used to provide XML support when running on JRE 1.3.1. You don't need it anymore, so try removing it from your classpath.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

er.ektaagrawal
Posts: 4
Joined: Mon Aug 04, 2014 8:07 am
antibot: No, of course not.

Re: Error while using the library

Post by er.ektaagrawal » Mon Aug 04, 2014 8:41 am

It worked.Thanks a lot :)

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Error while using the library

Post by david.gilbert » Mon Aug 04, 2014 8:44 am

er.ektaagrawal wrote:
at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2829)

Thanks in Advance,
Ekta
Does this mean I can use "BIG DATA" in the JFreeChart blurbs? lol
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

er.ektaagrawal
Posts: 4
Joined: Mon Aug 04, 2014 8:07 am
antibot: No, of course not.

Re: Error while using the library

Post by er.ektaagrawal » Mon Aug 04, 2014 8:49 am

I think We can use it with BIG DATA and Hadoop.Right now I used it with static value but at later phase i need to use it with Hadoop.

Locked