exception « Development « JFreeChart Q&A





1. JFreechart SeriesException    stackoverflow.com

I am trying to plot a bar chart using timeseries by introducing the beginning and the end date , but i got a problem with the end date it indicate : Exception ...

2. Openfaces jfreechart exception    seamframework.org

3. NoSuchMethodError Exception in jfreechart    java-forums.org

import java.util.*; import java.awt.*; import org.jfree.chart.*; import org.jfree.chart.title.*; import org.jfree.data.general.DefaultPieDataset; import org.jfree.ui.*; import org.jfree.chart.plot.*; import org.jfree.util.*; public class pie{ public static void main(String arg[]){ DefaultPieDataset pieDataset = new DefaultPieDataset(); pieDataset.setValue("One", new Integer(10)); pieDataset.setValue("Two", new Integer(20)); pieDataset.setValue("Three", new Integer(30)); pieDataset.setValue("Four", new Integer(10)); pieDataset.setValue("Five", new Integer(20)); pieDataset.setValue("Six", new Integer(10)); JFreeChart chart = ChartFactory.createPieChart3D("3D Pie Chart", pieDataset, true,true,true); PiePlot3D p=(PiePlot3D)chart.getPlot(); p.setForegroundAlpha(0.5f); ChartFrame frame1=new ChartFrame("3D ...

5. PR Exception. Any help appreciated please.    jfree.org

Hi folks, I am getting this error when I display my graph. But the funny this is that the graph appears minus the bar (there is only one datapoint of value 12.) The Bar does not appear but the y axis has the value of 12 on it. (exception is below) Any help would be greatly appreciated to fix problem. regards, ...

6. Exception : Range(double, double): require lower<=upper.    jfree.org

Hi, I used JFree chart's TimeSeriesCollection for developing a graph. while adding a plot to the graph and after running for more than 2 hrs, i get a horizontal plots between vertical plots. In the Java console, i am getting the following exception : java.lang.IllegalArgumentException: Range(double, double): require lower<=upper. at org.jfree.data.Range.(Range.java:79) at org.jfree.data.time.TimeSeriesCollection.getDomainRange(TimeSeriesCollection.java:550) at org.jfree.data.general.DatasetUtilities.findDomainExtent(DatasetUtilities.java:628) at org.jfree.chart.plot.XYPlot.getDataRange(XYPlot.java:2732) at org.jfree.chart.axis.DateAxis.autoAdjustRange(DateAxis.java:1011) at org.jfree.chart.axis.DateAxis.configure(DateAxis.java:556) ...

7. Server caught unhandled exception    jfree.org

public static void createImage() { DefaultPieDataset pieDataset = new DefaultPieDataset(); // this is causing the exception pieDataset.setValue("Web Requests", 50); pieDataset.setValue("Firewall Requests", 25); pieDataset.setValue("System Requests", 25); JFreeChart chart = ChartFactory.createPieChart("Types of Change Requests", pieDataset, true, true, true); ...

8. Exception: Range(double, double): require lower <= upper    jfree.org

I have a chart that generates legends that can become quite large in size, and at a certain point when I add one more item to the legend, I get this error: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Range(double, double): require lower (0.0) <= upper (-7.609375). at org.jfree.data.Range.(Range.java:86) at org.jfree.chart.JFreeChart.drawTitle(JFreeChart.java:1135) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1038) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1271) As I add even more items to the ...

9. Index out of bounds exception    jfree.org

Hi all I am creating a JfreeChart using CombinedDataset and I'm adding 3 different Timeseriescollections to it. CombinedDataset dataset = new CombinedDataset(); TimeSeriesCollection vuserdata = new TimeSeriesCollection(); TimeSeriesCollection reqdata = new TimeSeriesCollection(); TimeSeriesCollection throughputdata = new TimeSeriesCollection(); This is working fine for me.Now I want to set diffeent colors for diferent timeseriescollections.For tht i'm using XYLineAndShapeRenderer rr1 = new XYLineAndShapeRenderer(); rr1.setSeriesLinesVisible(2, ...





10. getting run time exception    jfree.org

Hi, I am using JFree chart for drawing piechart and I want to display the chart in web, but I am getting 500 Servlet Exception.how can i fix it, thx: Resin 2.1.2 (built Tue Jun 11 08:26:56 PDT 2002) -------------------------------------------------------------------------- java.lang.NoClassDefFoundError: org/jfree/data/general/PieDataset at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576) at java.lang.Class.getConstructor0(Class.java:1748) at java.lang.Class.newInstance0(Class.java:266) at java.lang.Class.newInstance(Class.java:249) at java.beans.Beans.instantiate(Beans.java:204) at java.beans.Beans.instantiate(Beans.java:48) at com.caucho.server.http.Application.instantiateServlet(Application.java:3036) at com.caucho.server.http.Application.createServlet(Application.java:2980) ...

11. About the exception "Can't create output stream!"    jfree.org

javax.imageio.IIOException: Can't create output stream! javax.imageio.ImageIO.write(ImageIO.java:1505) org.jfree.chart.encoders.SunJPEGEncoderAdapter.encode(SunJPEGEncoderAdapter.java:140) org.jfree.chart.encoders.EncoderUtil.writeBufferedImage(EncoderUtil.java:154) org.jfree.chart.ChartUtilities.writeChartAsJPEG(ChartUtilities.java:474) org.jfree.chart.ChartUtilities.writeChartAsJPEG(ChartUtilities.java:412) org.apache.jsp.pie_jsp._jspService(pie_jsp.java:65) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

12. Exception in execution time (i am newbie)    jfree.org

Hi. I have a problem with my code. I would like to create a line chart by the way of this code shows... Can any help me with the Exception that occurs when I execute this? Code: Select all DefaultCategoryDataset datasetLineas; LineAndShapeRenderer ...

13. XYBarDataset exception with first few datapoints    jfree.org

XYBarDataset exception with first few datapoints by ccrotty Thu Feb 09, 2006 9:56 pm Hello, I am using an XYBarDataset in a "realtime" TimeSeries chart and have the following exception show up when the first 5 or so datapoints are entered: Code: Select all sun.dc.pr.PRException: endPath: bad path at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:537) ...

14. How to deal with the Exception occurred during eventdispatch    jfree.org

Exception occurred during event dispatching: java.lang.IndexOutOfBoundsException: Index: 57, Size: 23 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.jfree.data.time.TimeSeries.getDataItem(TimeSeries.java:317) at org.jfree.data.time.TimeSeriesCollection.getXValue(TimeSeriesCollection.java:393) at org.jfree.chart.labels.AbstractXYItemLabelGenerator.createItemArray(AbstractXYItemLabelGenerator.java:250) at org.jfree.chart.labels.AbstractXYItemLabelGenerator.generateLabelString(AbstractXYItemLabelGenerator.java:229) at org.jfree.chart.labels.StandardXYToolTipGenerator.generateToolTip(StandardXYToolTipGenerator.java:155) at org.jfree.chart.renderer.xy.AbstractXYItemRenderer.addEntity(AbstractXYItemRenderer.java:1430) at org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.drawSecondaryPass(XYLineAndShapeRenderer.java:1085) at org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.drawItem(XYLineAndShapeRenderer.java:801) at org.jfree.chart.plot.XYPlot.render(XYPlot.java:2640) at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:2218) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1039) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1274) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source) at javax.swing.JComponent.paintDoubleBuffered(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) at javax.swing.JComponent.paintImmediately(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source) ...

16. Illegal argument exception while building Javadocs    jfree.org

Hi, looks like a JDK error. (In a sane programm it should never be possible for input data to crash the application. If it does, blame the application, not the data.) As JDK 1.5.0_07 is already out there, upgrade your JDK. Regards, Thomas P.S: A quick google search showed, that this JDK bug affects more than just our code. It happily ...





17. resizing JFreeChart - Exception    jfree.org

Hi, When I resize a ChartPanel continuously for sometime, it throws following exception. Any idea why it happens? Or JFreeChart has a bug can it cannot withstand lot of resizing? I'm drawing JFreeChart in a ChartPanel, which I then place in JPanel and finally show it on JInternalPane. I'm doing anything wrong? Please advice. Thanks, Leena ~~~~~~~~~~~~~~ at javax.swing.JComponent.paint(JComponent.java:1014) at javax.swing.JLayeredPane.paint(JLayeredPane.java:559) ...

18. Concurrent modification exception    jfree.org

Here i am having one graph application. when concurrent users accessing the graph i am getting the following exception Exception in thread "AWT-EventQueue-4" java.lang.IndexOutOfBoundsException: Index: 10, Size: 10 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.jfree.data.DefaultKeyedValues2D.getValue(DefaultKeyedValues2D.java:134) at org.jfree.data.category.DefaultCategoryDataset.getValue(DefaultCategoryDataset.java:101) at org.jfree.chart.renderer.category.BarRenderer3D.drawItem(BarRenderer3D.java:595) at org.jfree.chart.plot.CategoryPlot.render(CategoryPlot.java:2437) at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:2260) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1058) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1271) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source) at javax.swing.JComponent.paintDoubleBuffered(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) at ...

19. Exception    jfree.org

20. exception with JFree Chart 1.0.3    jfree.org

Hi all, I use JFree Chart 1.0.3 with NetBeans IDE 5.5. The program starts properly, gets some real time data, and shows the data with charts. But it always gives an exception some time later. The exception is not related to the programs I write. The exception information is below. Could someone give any advice? Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: ...

21. Unusual Exception    jfree.org

Code: Select all Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Index 'index' out of bounds. at org.jfree.chart.plot.XYPlot.getDomainAxisForDataset(XYPlot.java:2666) at org.jfree.chart.plot.XYPlot.drawDomainMarkers(XYPlot.java:2826) at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:2143) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1058) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1274) at javax.swing.JComponent.paint(JComponent.java:1005) at javax.swing.JComponent.paintChildren(JComponent.java:842) at javax.swing.JComponent.paint(JComponent.java:1014) at javax.swing.JViewport.paint(JViewport.java:728) ...

22. Problems running HideSeriesDemo (demo throws exceptions)    jfree.org

I'm trying to run the HideSeriesDemo, but unfortunately the demo throws exceptions: Code: Select all Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at demo.HideSeriesDemo1$DemoPanel.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) ...

24. exception    jfree.org

25. EXception    jfree.org

26. Exception after pressing "save as" in the right cl    jfree.org

Hi, I have written a webpage which embed an object to load a "DrawChart.jar" file. This jar file is for drawing chart and output back to the browser screen. I have no problems with displaying the chart, but when i right click the chart and pick "save as" in the menu, nothing happen. Then i check the Sun Java console, the ...

27. Exception while adding LegendTitle    jfree.org

Exception while adding LegendTitle by Hemanth Mon Oct 01, 2007 3:54 pm Hello, I have stackedBar chart with custom colors and a line chart overlaid on top of it. I would like to remove legends for the stacked bar graph and display only legends for lline chart. I am using StackedBarRenderer and LineAndShapeRenderer. Below is how I create my chart: ...

29. java.lang.InternalError Exception    jfree.org

30. RunTime Exception: Unsupported chart type - Please help    jfree.org

Hi, I started using JSF chart creator and it worked great. All of a sudden, today I started receiving the following error message: Can you please help me resolve this? Thanks Aish ERROR MESSAGE : =========== java.lang.RuntimeException: Unsupported chart type at net.sf.jsfcomp.chartcreator.utils.ChartUtils.createChartWithType(Lnet.sf.jsfcomp.chartcreator.model.ChartData;)Lorg.jfree.chart.JFreeChart;(Unknown Source) at net.sf.jsfcomp.chartcreator.ChartListener.handleChartRequest(Ljavax.faces.event.PhaseEvent;Ljava.lang.String;)V(Unknown Source) at net.sf.jsfcomp.chartcreator.ChartListener.afterPhase(Ljavax.faces.event.PhaseEvent;)V(Unknown Source) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90) Truncated. see log file for complete stacktrace

31. DisplayChart threw exception    jfree.org

DisplayChart threw exception by ivankok Mon Sep 29, 2008 9:49 am I can run the code on chrome successfully, but IE and FF sometimes display a "cross" image, anyone can tell me what's going on in this exception? Thanks a lot! org.apache.catalina.core.StandardWrapperValve invoke Servlet.service() for servlet DisplayChart threw exception javax.servlet.ServletException: File 'C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp\jfreechart-onetime-29806.png' does not exist at ...

32. exception in AbstractXYItemRenderer    jfree.org

java.lang.NullPointerException at org.jfree.chart.renderer.xy.AbstractXYItemRenderer.drawDomainLine(AbstractXYItemRenderer.java:954) at org.jfree.chart.plot.XYPlot.drawDomainGridlines(XYPlot.java:3848) at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:3220) at org.jfree.chart.plot.CombinedDomainXYPlot.draw(CombinedDomainXYPlot.java:466) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1230) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1365) ...

33. Exception java.lang.OutOfMemory: Java heap space    jfree.org

Exception java.lang.OutOfMemory: Java heap space by gunjannigam Mon Aug 17, 2009 7:55 am I am actually trying to draw a Sine graph using TimeSeriesCollection dataset. I am getting an exception Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space. Following is my code Code: Select all public class DynamicDataDemo extends ApplicationFrame { double t=0; ...

34. Exception: Requires xLow < xHigh - 1.0.13    jfree.org

Exception: Requires xLow < xHigh - 1.0.13 by Dadi Tue Oct 06, 2009 3:53 pm Hello, I am developing a customizable charting layout where users are able to insert new charts into a composite using drag and drop methods. Because of this, every time a new chart is dropped, I have to recalculate and redraw all the layout. All the ...

35. getting exception randomly...    jfree.org

I am getting the following exception randomly . Code: Select all Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Range(double, double): require lower (1.263437112E12) <= upper (1.263434411E12). at org.jfree.data.Range.(Range.java:90) at org.jfree.data.time.TimeSeriesCollection.getDomainBounds(TimeSeriesCollection.java:614) at org.jfree.data.general.DatasetUtilities.findDomainBounds(DatasetUtilities.java:666) at org.jfree.data.general.DatasetUtilities.findDomainBounds(DatasetUtilities.java:642) at org.jfree.chart.plot.XYPlot.getDataRange(XYPlot.java:4459) at org.jfree.chart.axis.DateAxis.autoAdjustRange(DateAxis.java:1284) at org.jfree.chart.axis.DateAxis.configure(DateAxis.java:716) ...

37. Class cast exception in JFreeChart.getXYPlot()    jfree.org

DefaultCategoryDataset dataset = new DefaultCategoryDataset(); JFreeChart chart = ChartFactory.createBarChart3D(title, "Process", axisLabel, dataset, PlotOrientation.VERTICAL, true, true, false); ...

38. writeImageAs... fails on etomcat, exception WinNTFileSystem    jfree.org

I need to run my applets on Apache Tomcat eTomcat. I did most of my development using Apache Tomcat. ChartUtilities.writeImageAsPNG/JPEG works ok under Apache Tomcat. With Apache Tomcat eTomcat (a pure Java implementation) I have tried using both OutputStream and ServletOutputStream as returned from HttpServletRequest.getOutputStream(). writeImageAsJPEG fails with the exception > FAILED with IOException: Can't create cache file! writeImageAsJPEG fails with ...

39. Exception: Requires xLow < xHigh    jfree.org

Hi, I got this illegal argument exception when trying to zoom in several times. Had a quick browse at debug which turns out to be xLow = xHigh when exception raised. I think this was because that the zoom method did not check if the zoom in function will cause the xLow >= xHigh after changing the range. is there a ...

40. Exception thrown while creating Dynamic Charts    jfree.org

Hi, I am reading a file for the generated calculated rates and displaying it on an XY graph dynamically. i delete the items from the series and add the new values. Bit I seem to keep getting this exception out of nowhere. Any ideas I am using version JFreeChart 9.8 with java version 1.4.1 java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 at java.util.ArrayList.RangeCheck(ArrayList.java:508) ...