error 1 « Development « JFreeChart Q&A





1. Java Ugly Rounding Error?    stackoverflow.com

Using series.add(180, 1); produces a perfectly valid chart like this (little red dot at the bottom with some PolarItemRenderer Mods!) alt text but using series.add(3000/(6000/360), 1); produces this beast: alt ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>2. <a href='http://stackoverflow.com/questions/3333318/after-updating-a-dependency-to-a-new-version-jfreechart-from-to-i-get-the-type-cannot-be-resolved-errors'>After updating a dependency to a new version (jfreechart from 1.0.12 to 1.0.13) I get     stackoverflow.com

I changed the version from jFreeChart in the pom.xml of my maven project from 1.0.12 to 1.0.13. Now I get the error "The type org.jfree.ui.layer cannot be resolved to a type. It is ...

3. Error with a class customiser for charts    stackoverflow.com

I want to customise my charts so I want to use a class customiser, I have used the following code to change the categorie label to vertical , but I don't ...

4. JfreeChart Error in Linux/Unix environment    stackoverflow.com

I am getting this error in the Linux environment while displaying 3D pie charts on the web browser. It works perfectly fine in the windows environment.

java.lang.NoClassDefFoundError:
Could not initialize class org.jfree.chart.JFreeChart
at org.jfree.chart.ChartFactory.createPieChart3D(ChartFactory.java:763)

I ...

6. Error parsing xml file    jfree.org

-> Null 'key' argument. java.lang.IllegalArgumentException: Null 'key' argument. at org.jfree.data.DefaultKeyedValues2D.getRowIndex(DefaultKeyedValues2D.java:165) at org.jfree.data.DefaultKeyedValues2D.setValue(DefaultKeyedValues2D.java:269) at org.jfree.data.DefaultKeyedValues2D.addValue(DefaultKeyedValues2D.java:255) at org.jfree.data.category.DefaultCategoryDataset.addValue(DefaultCategoryDataset.java:188) at org.jfree.data.xml.CategoryDatasetHandler.addItem(CategoryDatasetHandler.java:82) at org.jfree.data.xml.CategorySeriesHandler.endElement(CategorySeriesHandler.java:146) at org.jfree.data.xml.CategoryDatasetHandler.endElement(CategoryDatasetHandler.java:133) at gnu.xml.aelfred2.SAXDriver.endElement(SAXDriver.java:856) at gnu.xml.aelfred2.XmlParser.parseETag(XmlParser.java:1134) at gnu.xml.aelfred2.XmlParser.parseContent(XmlParser.java:1202) ...

7. bad path error    jfree.org

Hi JFreeChart users ! I get that exception sometimes that doesn't appears to involve our code. Do you have any idea ? I was using 0.95 version before and the error started when I move to the RC1. I was looking for "bad path" in the forum but this error doesn't appears to had been reported previously. The graph show correctly ...

8. java.lang.Error: Method registerValidation not supported    jfree.org

java.lang.Error: Method registerValidation not supported by Upendra Wed Jul 13, 2005 10:24 am Hi, I am getting this error at client end, when ever i try to access a DefaultCategoryDataset object from an EJB deployed under Sun JAVA System Application server 8.1. David, Initially, I thought this is problem with JVM versions, but even after making both JVMs same, I ...

9. ZERO_INSETS error in jchart    jfree.org

Dear all, my application which was working fine , but when I reformat my server & install application, it is not able to generate any graph & it shows the error Exception in thread "main" java.lang.NosuchfiledError: ZERO_INSETS at org.jfree.chart.plot.Categoryplot.(CategoryPlot.java:392) at org.jfree.chart.ChartFactory.createBarChart(chartFactory.java:568) at INDEXIBU.createChart(INDEXIBU.java:123) at INDEXIBU.(INDEXIBU.java:47) at INDEXIBU.main(INDEXIBU.java:55) where INDEXIBU is the name of JAVA application program..... OS is Linux All classes ...





10. General Error on Jfreechart demo    jfree.org

Hi I keep getting this error on all the program's that i try to compile that are using jfree. C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\GanttDemo2\demo>java GanttDemo1 Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.ui.RectangleInsets.(DDDD)V at org.jfree.chart.axis.Axis.(Axis.java:134) at org.jfree.chart.ChartFactory.createGanttChart(ChartFactory.java:1105) at GanttDemo1.createChart(GanttDemo1.java:77) at GanttDemo1.(GanttDemo1.java:27) at GanttDemo1.main(GanttDemo1.java:91) the java files compile ok put this error wont let me run it. plz help[code][/code]

12. error in StackedAreaRenderer2    jfree.org

These charts are created from servlets, in a single shot (create dataset, create the chart based on the dataset, save the chart as png on the disk). Could it be that multiple charts are created in parallel from separate threads? I really wouldn't want to synchonize the chart creation but if you think this is the source of the problems i ...

13. Error on mac os x    jfree.org

Hi, I try to use JFreeChart. When I use it in my eclipse project it's fine but when I run it on command line by adding JFreeChart and JCommon in my class path I have an error when I create a PiePlot: PiePlot plot = new PiePlot(dataset); Here is the error : apple.awt.EventQueueExceptionHandler Caught Throwable : java.lang.ExceptionInInitializerError java.lang.ExceptionInInitializerError Any ideas? Thanks ...

14. NoSuchMethod Error    jfree.org

15. Error Displaying Chart    jfree.org

Hi all, Can anyone help me with displaying a chart created in ireports using jfreechart in my web application. The chart displays fine in Ireports but then when I try to use the jasper reports jar in my application I get the error classnotFound Exception {FileName}Scriptlet.class I however have both the scriptlet class and my jasper file in the same folder. ...

16. Error Displaying Chart    jfree.org





17. Not enough columns error    jfree.org

Hi All, Just started to use JFreeChart and in general it is proving to be very good, although I have one annoying problem with Oracle Queries using JDBC. If I have a query of the form select to_char(pm1.OPEN_TIME,'MON-RRRR') \"Period Open Since\" count(*) from blah blah where blah blah I occasionally get the SQLException below SQLException : Not enough valid columns where ...

18. Getting "cannot resolve symbol" errors.    jfree.org

Hello, Forgive me if this is a stupid question, but I am having trouble compiling the First.java on the Developer Guide documentation. I am getting the error "cannot resolve symbol" on all the imports. I have followed everything on the guide and was successfull in doing everything up to this point. What did I miss?

19. Error using ChartFactory.createBarChart3D    jfree.org

I have reinstalled the XFree86 completly including the Xvfb and I can start it (XVfb), to test if it is running I execute a xclock and I dont get any error, so I think it is running ok However, now, when I try to get the jsp wich must show a graphic I get another different error: java.lang.NoClassDefFoundError org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:764) com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:196) org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:167) ...

20. error in setInsest()    jfree.org

It seems the source bundle is either missing the definition of setInsets or is probably retired. However, strangely, the .jar (class bundle) has reference to the same methid (setInsets). Can someone throw some insight here for what's going on with setInsets? As long as I use the JAR I am fine, compiling reference to setInsets. The moment I unjar source for ...

21. ChartPanel restoreAutoBounds error    jfree.org

I have a CombinedDomainXYPlot (8 subplots). The ChartPanel displays them fine(dynamic data) until I trigger a reset by using a call to restoreAutoBounds(). This is meant to restore all charts to autorange, so that zooming on all the charts can be cleared at once (autoscaling is turned off when zoomed) and dynamic data can again be seen growing the charts in ...

22. error when setting the history count from '0' to another val    jfree.org

error when setting the history count from '0' to another val by oboly Mon Oct 31, 2005 3:54 pm I get an error when i set the historyCount of timeSeries from 'unlimited' to another value. The error apears aproximately 2 times a minute. Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 199, Size: 199 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at org.jfree.data.time.TimeSeries.getDataItem(TimeSeries.java:299) at org.jfree.data.time.TimeSeriesCollection.getXValue(TimeSeriesCollection.java:383) ...

23. Weird error    jfree.org

Hi I am getting a really weird error with my graphs. Sometimes (no known reason) they just stop working. The error is of class java.lang.NoClassDefFoundError and the error message is a null. It appears that it cannot access one of the required jars. (Unfortunately I can't access the stack trace). However, all the jars are present in the lib directory and ...

24. No Class Def Found error    jfree.org

HI Guys, I am new to JFreechart. I created 4 charts on a single JSP and sending the charts to JSP through a servlet. I deployed the WAR file on Tomcat 5.0 on Windows XP machine. The graphs are displayed fine. I have kept the Jfreechart JAR files inside the WEB-INF/lib directory. I redeployed the same WAR file on JBoss on ...

25. noclassdef found error    jfree.org

I am using eclipse 3.1(mac os 10.3.9 and java 1.4.2) and have added the jfreechart jar files under the classpath and users entries. When I run the firts.java it gives me an Exception in thread "main" java.lang.NoClassDefFoundError: Can somebody help, the ant build worked, I dont know what I am doing wrong!

26. No class def found error    jfree.org

Hi , nedd your help... I have downloaded the jfreecahrt package, and i installed ok. I have made a new project ,in my paths i have included all librarys from jfreechar /lib ...and in source path i put jfreechar/source.. I made a vesy simple example : import org.jfree.*; class a { public static void main(String[] args) { DefaultPieDataset d=new DefaultPieDataset(); d.setValue("a",100); ...

27. Error initializing Title    jfree.org

28. Error 500: Named Object: 'chartCreator' no found    jfree.org

Here is myfaces-config.xml, it is for your reference. chartCreator chartcreator.UICharter Input Value Holder nameBean demo.NameBean session userName java.lang.String reportView neoview.report.ReportView session kPIChartView neoview.report.KPIChartView session variantChartView neoview.report.VariantChartView session /pages/inputname.jsp greeting /pages/greeting.jsp ...

34. Error while running First.java    jfree.org

hi .. the following is the code of first.java : import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartFrame; import org.jfree.chart.JFreeChart; import org.jfree.data.general.DefaultPieDataset; public class First { /** * The starting point for the demo. * * @param args ignored. */ public static void main(String[] args) { // create a dataset... DefaultPieDataset dataset = new DefaultPieDataset(); dataset.setValue("Category 1", 43.2); dataset.setValue("Category 2", 27.9); dataset.setValue("Category 3", 79.5); // ...

35. Error while running the program    jfree.org

36. Error while running jar file    jfree.org

39. Error exporting to JPG or PNG    jfree.org

I still have this problem. I have the following code: ChartUtilities.saveChartAsPNG( file, chart, witdh, height ); If I use version 0.9.20 of JFreeChart and 0.9.5 of JCommon, the saveChartAsPNG works fine. If I change to version 1.0.0 of both JFreeChart and JCommon, I get the following stacktrace. I try to plot 2 images in a row. The stacktrace is different between ...

40. Swap Space Error for Large Datapoint Charts    jfree.org

Swap Space Error for Large Datapoint Charts by truthsense Tue Feb 07, 2006 4:57 pm Using JFreechart 1.0 I load a file that creates 7 charts with 60,000 data points each. The loading of the charts with data points completes or nearly completes when I get the following error: "Exception java.lang.OutOfMemoryError:" YADA YADA YADA... "Out of swap space?" When it ...

41. Urgent, what is the error for my code    jfree.org

PrintWriter out = response.getWriter(); DefaultPieDataset pieDataset = getDateInfo(); PiePlot3D plot = new PiePlot3D(pieDataset); plot.setInsets(new Insets(0, 5, 5, 5)); plot.setURLGenerator(new StandardPieURLGenerator("####","section")); plot.setToolTipGenerator(new StandardPieItemLabelGenerator()); plot.setForegroundAlpha(0.5f); plot.setCircular(false); plot.setDepthFactor(0.13); JFreeChart jFreeChart.setBackgroundPaint(java.awt.Color.white); response.setContentType("image/png"); int width = RequestUtils.getIntegerParameter(request, "width", mChartForm.getWidth()); int height = RequestUtils.getIntegerParameter(request, "height", mChartForm.getHeight()); ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection()); filename = ServletUtilities.saveChartAsPNG(jFreeChart, width, height, info, session); String graphURL = request.getContextPath() + "/servlet/DisplayChart?filename=" + filename; ...

42. ChartFactory Error java.lang.NoClassDefFoundError    jfree.org

I successfully downloaded and installed free chart. I tried to do the servlet demos. I successfully compiled, created a web.xml file, and uploaded to my website. However, when I run my servlet I get this error: Error 500-Internal Server Error. java.lang.NoClassDefError at org.jfree.chart.ChartFactory. createPieChart(ChartFactory.java:205) I'm running BEA Weblogic on a Unix machine.

43. Help!!! No class def found error!!!    jfree.org

Hi im new to using JFreeChart I successfuly compiled a chart application & tried running it but I got the following error at run time: Exception in thread "main" java.lang.NoClassDefFoundError: org/jfree/util/PublicCloneable Then I tried to run the demo pie chart application that is included with the source but I get the same error at run time I searched through the source ...

44. Error in API    jfree.org

45. JFREE CHART BUILD ERROR    jfree.org

Hi, I get the following warnings when i try to build jfreechart.Due to this the build directory is not creating. plz, guide me in this issue. D:\jfreechart-1.0.1\ant>ant compile Buildfile: build.xml initialise: compile: [mkdir] Created dir: D:\jfreechart-1.0.1\build [javac] Compiling 464 source files to D:\jfreechart-1.0.1\build [javac] D:\jfreechart-1.0.1\source\org\jfree\chart\urls\StandardCategoryURLG enerator.java:151: warning: encode(java.lang.String) in java.net.URLEncoder has been deprecated [javac] url += this.seriesParameterName + "=" + URLEncoder.encod ...

46. Error in XYAreaRender    jfree.org

Hi everyone, my chart works fine, but when i change this changes: plot.setRenderer(new XYAreaRenderer()); plot.setRangeAxis(0,new LogarithmicAxis("")); plot.getRangeAxis().setRange(0.1,100); the chart stil works, but show me a stacktrace like this: sun.dc.pr.PRException: endPath: bad path at sun.dc.pr.Rasterizer.endPath(Unknown Source) at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(Unknown Source) at sun.java2d.pipe.DuctusShapeRenderer.renderPath(Unknown Source) at sun.java2d.pipe.DuctusShapeRenderer.fill(Unknown Source) at sun.java2d.SunGraphics2D.fill(Unknown Source) at org.jfree.chart.renderer.xy.XYAreaRenderer.drawItem(XYAreaRenderer.java:526) 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 ...

47. Demo Application error - Solaris 890    jfree.org

Hi, I just installed jfreechart on a solaris 890. After I install jfreechart, I get an error when I run the demo app (3.4 Running the Demonstration Application) java -jar jfreechart-1.0.1-rcl-demo.jar Error occurred during initialization of VM Could not reserve enough space for object heap Any ideas on how to fix this error?

48. error with saveChartAsPNG in Java1.5    jfree.org

Hi, We use JFreeChart (v1.0.1) for a web app, and am trying to port the app to Java1.5. When I try to invoke the following: [...] JFreeChart chart; string imageFileName; int width, height; [...] ChartUtilities.saveChartAsJPEG(imageFile, chart, width, height); I get the following error: org.apache.jasper.JasperException: sun.java2d.SunGraphicsEnvironment.createFontConfiguration The initialization of the chart is dispersed over a few functions, so decided not to paste ...

50. Error executing the Demo charts    jfree.org

51. Error in Demo Charts?    jfree.org

I'm new at JFreeChart so I may be looking in the wrong place, but when I tried to compile the "PieChartDemo1" in source\org\jfree\chart\demo folder I get various compile errors. Mostly due to packages it could not find. One in particular that looked strange was the org.jfree.ui.ApplicationFrame import. When I looked for that one in the source I couldn't find the ui ...

52. cfscript jfreechart error    jfree.org

Hi. I've implemented a version of the Andrew S's code from http:// weblogs. macromedia. com/ cantrell/archives/2003/06/using_coldfusio.cfm The problem I'm facing is that while the chart image will load, pressing f5 to refresh will produce the following error: "Server Error. The server encountered an internal error and was unable to complete your request. Application server is busy. Either there are too many ...

53. Diagnose this Error Stack    jfree.org

My application will start receiving this error (see below) after a while of running. Does this mean anything to anyone. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at sun.misc.Unsafe.getByte(Native Method) at sun.font.GlyphList.getGrayBits(GlyphList.java:316) at sun.java2d.pipe.TextRenderer.drawGlyphList(TextRenderer.java:67) at sun.java2d.pipe.GlyphListPipe.drawString(GlyphListPipe.java:53) at sun.java2d.pipe.ValidatePipe.drawString(ValidatePipe.java:147) at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2661) at org.jfree.text.TextUtilities.drawRotatedString(TextUtilities.java:540) at org.jfree.text.TextUtilities.drawRotatedString(TextUtilities.java:596) at org.jfree.chart.axis.Axis.drawLabel(Axis.java:1081) at org.jfree.chart.axis.CategoryAxis3D.draw(CategoryAxis3D.java:151) at org.jfree.chart.plot.CategoryPlot.drawAxes(CategoryPlot.java:2446) at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:2293) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1039) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1275) at javax.swing.JComponent.paint(JComponent.java:1005) at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963) at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916) at ...

55. JFree Error On Solaris    jfree.org

java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) at java.awt.Font.initializeFont(Font.java:308) at java.awt.Font.(Font.java:344) at org.jfree.chart.plot.MeterPlot.(MeterPlot.java:141) at com.xpedion.agentsettlement.bll.bo.AS_DashboardBO.createMeterChartPaymentMade(AS_DashboardBO.java:1332) at com.xpedion.agentsettlement.dashboard.ASDashboardServlet.doGet(ASDashboardServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6722) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Any Help will be appreciated . I am getting this error on solaris from war file deployed on WEBLOGIC ...

57. coompile error with JfreeChart    jfree.org

Hello everyone, I am new to Jfreechart. I try to use jfreechart instead of JClass. Somehow I got compile error as, Compiling 193 source files to classes controller\LoadGraphAvailableEbillsAction.java:353: cannot resolve symbol symbol : method setSeriesItemLabelGenerator (int,org.jfree.chart.labels.CategoryItemLabelGenerator) location: class controller.CustomRenderer barrenderer.setSeriesItemLabelGenerator(0, sv); ^ controller\LoadGraphAvailableEbillsAction.java:370: cannot resolve symbol symbol : method setItemLabelGenerator (org.jfree.chart.labels.CategoryItemLabelGenerator) location: class controller.CustomRenderer barrenderer.setItemLabelGenerator(sv); it seems that the methods of ...

58. Chart not showing and "Object expected" errors    jfree.org

Hi all, I found JFreeChart last week and have been using the demo code to create basic drillable charts with image maps. The code will be developed and deployed on Windows machines. We will be ordering the Developer's Guide tomorrow I tried the forum search feature with no luck, I'm sorry if these are common problems and already answered. 1) When ...

59. Errors during execution    jfree.org

60. Linkage Error    jfree.org

java.lang.LinkageError: loader constraints violated when linking org/jfree/chart/labels/XYSeriesLabelGenerator class at com.abb.gis.root.servlet.ChartServlet.getGisChart(ChartServlet.java:232) at com.abb.gis.root.servlet.ChartServlet.handleRequest(ChartServlet.java:73) at com.abb.gis.root.servlet.ChartServlet.doGet(ChartServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595)

61. Creating an Error Chart    jfree.org

by david.gilbert Wed Mar 14, 2007 12:54 pm Here is an example that I'll add to the JFreeChart demo collection (more than 200 small illustrative chart applications that ship with the JFreeChart Developer Guide): Code: Select all /* ------------------------- * XYErrorRendererDemo2.java * ------------------------- * (C) Copyright 2007, by Object Refinery Limited. * */ package demo; import java.awt.Color; import javax.swing.JPanel; import ...

62. HELP: SWTException: an Invalid Access Error: how to solve?    jfree.org

HI everyone, I'm facing a tough problem. I am using JFreechart in Eclipse RCP to write a system resource monitor. I implemented a class DatGenerator as follow: Code: Select all public class DataGenerator extends Timer implements ActionListener{ private static final long serialVersionUID = 3977867288743720505L; public DataGenerator(int interval){ ...

63. Newbie: getting strange error with sample code.    jfree.org

Hi, I copied the code from the PieChart sample in the Developer Guide into a NetBeans project. The code builds and runs but in the output console I see the following: run: 2007-04-05 08:16:55.116 java[6139] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x10203, name = 'java.ServiceProvider' See /usr/include/servers/bootstrap_defs.h for the error codes. 2007-04-05 08:16:55.117 java[6139] CFLog (99): CFMessagePortCreateLocal(): failed ...

65. The common exeption error    jfree.org

I've scanned through topics with simillar problems, the exception in thread "main" java.lang.NoClassDefFoundError BarChartDemo1 (wrong name: org/jfree/chart/demo/BarChartDemo1) I've tried so many combinations of putting the class and jar files in different locations, adding them in the classpath etc, and all give me a simillar exeption (sometimes without the wrong name part...) My question is where is the best place to put ...

66. error in combinedcatagoryplotdemo1 while creating bufferimg.    jfree.org

Hi I am getting java.lang.NullPointerException while creating bufferedimage from jfreechart. private JFreeChart createChart() { final CategoryDataset dataset1 = createDataset1(); final NumberAxis rangeAxis1 = new NumberAxis("Value"); rangeAxis1.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); final LineAndShapeRenderer renderer1 = new LineAndShapeRenderer(); renderer1.setBaseToolTipGenerator(new StandardCategoryToolTipGenerator()); final CategoryPlot subplot1 = new CategoryPlot(dataset1, null, rangeAxis1, renderer1); subplot1.setDomainGridlinesVisible(true); final CategoryDataset dataset2 = createDataset2(); final NumberAxis rangeAxis2 = new NumberAxis("Value"); rangeAxis2.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); final BarRenderer renderer2 = new ...

67. Just purchased developer guide and got error in netbeans    jfree.org

I just tried to copy and paste DynamicDataDemo1.java, i created an empty java file in the source packages, able to compile it however when i tried to run it i got this error: init: deps-jar: Compiling 1 source file to C:\Program Files\Java\testnetbean\JfreeChart\build\classes compile-single: run-single: java.lang.NoClassDefFoundError: DynamicDataDemo1 Exception in thread "main" Java Result: 1 BUILD SUCCESSFUL (total time: 6 seconds) Can anyone ...

68. Error with 1.0.6 when write png file    jfree.org

I recently update to jfreechart 1.0.6 and got runtime exception when running below code. They are working on jfreechart 1.0.5: ........ XYSeriesCollection datacollection = new XYSeriesCollection(series); NumberAxis rangeAxis = new NumberAxis("y axis"); NumberAxis domainAxis = new NumberAxis("x axis"); XYPlot plot = new YPlot(datacollection,domainAxis,rangeAxis,null); plot.setRenderer(new StandardXYItemRenderer(StandardXYItemRenderer.SHAPES,new StandardXYToolTipGenerator())); JFreeChart chart = new JFreeChart("test",JFreeChart.DEFAULT_TITLE_FONT,plot,false); try { fileName = "test.png"; File file = new File(fileName); ...

69. PermGen error!    jfree.org

PermGen error! by arwelbath Fri Aug 10, 2007 3:24 pm Hi Posters, I've been trying to make a chart that wil plot an unknown number of XYSeries. The solution I have come up with is below. However, when I run this a few times, I eventually get a java.lang.OutOfMemoryError: PermGen space error. I am calling this routine from within Matlab, ...

70. Buffer error...or is it!    jfree.org

In your chart-servlet, make sure that you set the buffer-size before you write any content to the output stream. Once you've written to the output stream, you cannot modify the response-headers or important properties of the response object (like the buffer-size) anymore. * Depending on the implementation, it may be even illegal to set the buffer-size after ServletResponse.getOutputStream() has been called ...

71. Errors in Repainting    jfree.org

Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 266, Size: 266 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at org.jfree.data.time.TimeSeries.getDataItem(TimeSeries.java:336) at org.jfree.data.time.TimeSeriesCollection.getXValue(TimeSeriesCollection.java:424) at org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.drawPrimaryLine(XYLineAndShapeRenderer.java:937) at org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.drawItem(XYLineAndShapeRenderer.java:863) at org.jfree.chart.plot.XYPlot.render(XYPlot.java:3104) at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:2680) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1214) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1247) at javax.swing.JComponent.paint(JComponent.java:1027) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5122) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1382) at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1313) at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:301) at javax.swing.RepaintManager.paint(RepaintManager.java:1128) at javax.swing.JComponent._paintImmediately(JComponent.java:5070) at javax.swing.JComponent.paintImmediately(JComponent.java:4880) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:723) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:679) at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:659) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) ...

72. error for 50000 values    jfree.org

error for 50000 values by shweta Mon Sep 17, 2007 7:49 am Hi! When i use jchart for more less nuber of values(below 100 or so) I have no problem what so ever.But when I use this for 50000 values the following error (JVM ) is created: # # An unexpected error has been detected by Java Runtime Environment: # ...

73. FATAL ERROR in native method: Wrong method ID used to invoke    jfree.org

I haven't seen that before, but it looks like a JVM bug, so you should report it to the JVM provider. If you can, try to find out if there is anything special about the Stroke or Shape involved in the createStrokedShape() method...then you might be able to work around the problem.

74. Error when trying to run the demo jar    jfree.org

I am getting the following error when trying to run the demo jar. I am entering the command stated in the readme file: java -jar jfreechart-1.0.6-demo.jar and I am using jdk1.3.1_20 Here is the error: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/lowagie/t ext/DocumentException (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) ...

75. I don't get any errors or exceptions, but ...    jfree.org

I don't get any errors or exceptions, but ... by tedbyers Wed Oct 31, 2007 9:41 pm I can step through my code to produce a combined domain chart, and no errors crop up, the data seems reasonable (I set up watches for the values: between 150 and 250 for the first series and between 50 and 150 for the ...

76. HTTP ERROR: 500 Internal Server Error    jfree.org

HTTP ERROR: 500 Internal Server Error by nayna Thu Nov 29, 2007 11:03 am Hi All, I am trying to display a pie chart with a JPEG format. there is no compilation error. but at runtime in browser it shows HTTP ERROR: 500 Internal Server Error RequestURI=/scorm/servlet/delivery.SimpleChartServlet1 and in jetty server I get 12:52:55.624 WARN!! Exception for /scorm/servlet/delivery.SimpleChartServlet1?se lect1=0&select2=1 java.lang.NullPointerException ...

77. JFreeChart Error    jfree.org

I do a simple java program use JFreeChart. I've download the JCommon and the JFreeChart archivies and i have add it at my project (i use Jbuilder). When i run my program i have this error: Exception in thread "main" java.lang.ExceptionInInitializerError at org.jfree.chart.JFreeChartInfo.(JFreeChart.java:1834) at org.jfree.chart.JFreeChart.(JFreeChart.java:241) at org.jfree.chart.ChartFactory.createTimeSeriesChart(ChartFactory.java:1850) at jfreechtest.test.TimeSeriesExample.createChart(TimeSeriesExample.java:106) at jfreechtest.test.TimeSeriesExample.createDemoPanel(TimeSeriesExample.java:150) at jfreechtest.test.TimeSeriesExample.(TimeSeriesExample.java:35) at jfreechtest.test.TimeSeriesExample.main(TimeSeriesExample.java:155) Caused by: java.util.MissingResourceException: Can't find bundle ...

78. I get error after upgrading from jfreechart 1.0.8 to 1.0.9 ?    jfree.org

I'm using netbeans and have followed the installation guide to install jfreechart. My applet have no problem when running in the netbeans appletviewer, but when I run the applet from my browser I get this error: java.lang.NoClassDefFoundError: org/jfree/data/xy/XYDataset at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown ...

79. LogAxis setRange() function sends me into memory error    jfree.org

LogAxis setRange() function sends me into memory error by paololim Wed Feb 06, 2008 4:48 pm Below is code that sends me into a memory error. I tried calling a simple setRange() function for the LogAxis class. It is important to note that I have never gotten a memory error like this before when working with any sort of axis, ...

80. JFreeChart error    jfree.org

public class grafo extends JFrame{ public grafo() { try { jbInit(); } catch (Exception ex) { ex.printStackTrace(); } getGrafo(); } private void jbInit() throws Exception { this.setResizable(false); this.setTitle("Grafo"); this.getContentPane().setLayout(xYLayout1); this.setSize(600,400); jLabelGrafo.setBorder(BorderFactory.createLineBorder(Color.black)); jLabelGrafo.setText(""); xYLayout1.setWidth(500); xYLayout1.setHeight(350); this.getContentPane().add(jLabelGrafo, new XYConstraints(5, 5, 490, 340)); } XYLayout xYLayout1 = new XYLayout(); JLabel jLabelGrafo = new JLabel(); int[] contorno; public void getGrafo(){ try { XYSeries series = ...

81. error !! in the application demo    jfree.org

hi, Please can you help me, i'm trying an exemple with Jfreechart using netbeans, my first time, and i've the exceptions init: deps-jar: compile-single: run-single: Exception in thread "main" java.lang.NoClassDefFoundError: org/jfree/util/PublicCloneable at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at testjfreechart.Main.main(Main.java:24) Java Result: ...

82. Error in the demo collection    jfree.org

83. chartfactory.create**,no response,no errors    jfree.org

first ,i am sorry for my poor english question description is below: i am using jfreechart1.0.6,when I deployed my app in windows+tomcat or solaris+weblogic 8.1 ,everything is ok. but when i deployed my app in solaris+tomcat,jfreechart can't execute in this clause: ChartFactory.createStackedBarChart3D("", null, "", categorydataset, PlotOrientation.VERTICAL, false, true, true); no response,no errors,can't go next step. I try tomcat5.5.17-tomcat5.5.26,jdk1.5.04,jdk1.5.12,jdk1.6, all are the ...

84. JFreeChart demo runtime errors    jfree.org

Exception in thread "main" java.lang.ExceptionInInitializerError at org.jfree.chart.ChartFactory.createTimeSeriesChart(ChartFactory.java:1850) at org.jfree.chart.demo.TimeSeriesChartDemo1.createChart(TimeSeriesChartDemo1.java:94) at org.jfree.chart.demo.TimeSeriesChartDemo1.createDemoPanel(TimeSeriesChartDemo1.java:197) at org.jfree.chart.demo.TimeSeriesChartDemo1.(TimeSeriesChartDemo1.java:79) at org.jfree.chart.demo.TimeSeriesChartDemo1.main(TimeSeriesChartDemo1.java:208) Caused by: java.util.MissingResourceException: Can't find bundle for base name org.jfree.chart.resources.JFreeChartResources, locale sv_SE at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1508) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1262) at java.util.ResourceBundle.getBundle(ResourceBundle.java:717) at ...

85. Unsupported Chart Type error - Please help    jfree.org

Hello everybody, Please I am facing problem with chartcreator, I am developing JSF 1.2 RI (Mojarra) application over JBoss 4.2.2GA and I am not be able to pass the first example, when the ChartUtils class try to make the instaceof the type of chart... it doesn't know that the type of chart DefaultPieDataset is an instanceof PieDataset... and returns an exception ...

86. Our server reports a lot of 404 errors for resource files    jfree.org

190.78.157.231 - - [09/May/2008:11:36:33 -0500] "GET /reports/sample/org/jfree/chart/plot/LocalizationBundle.class HTTP/1.1" 404 261 "-" "Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_05" 190.78.157.231 - - [09/May/2008:11:36:33 -0500] "GET /reports/sample/org/jfree/chart/plot/LocalizationBundle_es.class HTTP/1.1" 404 264 "-" "Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_05" 190.78.157.231 - - [09/May/2008:11:36:34 -0500] "GET /reports/sample/org/jfree/chart/plot/LocalizationBundle_es_VE.class HTTP/1.1" 404 267 "-" "Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_05" 190.78.157.231 - - [09/May/2008:11:36:34 -0500] "GET /reports/sample/org/jfree/chart/plot/LocalizationBundle_es_VE.properties HTTP/1.1" 404 272 "-" "Mozilla/4.0 (Windows ...

87. in jfreechart-1.0.11,run SWTBarChartDemo1 error,why?    jfree.org

in jfreechart-1.0.11,when run the example of SWTBarChartDemo1,error: Exception in thread "main" java.lang.RuntimeException: Can only handle 'Color' at present. at org.jfree.experimental.swt.SWTGraphics2D.setPaint(SWTGraphics2D.java:257) at org.jfree.chart.renderer.category.GradientBarPainter.paintBar(GradientBarPainter.java:135) at org.jfree.chart.renderer.category.BarRenderer.drawItem(BarRenderer.java:1028) at org.jfree.chart.plot.CategoryPlot.render(CategoryPlot.java:3470) at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:3251) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1227) at org.jfree.experimental.chart.swt.ChartComposite.paintControl(ChartComposite.java:1846) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:83) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937) at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1285) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3299) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025) at org.eclipse.swt.internal.win32.OS.UpdateWindow(Native Method) at org.eclipse.swt.widgets.Decorations.setVisible(Decorations.java:1348) at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1481) at org.eclipse.swt.widgets.Shell.open(Shell.java:1008) at SWTBarChartDemo1.main(SWTBarChartDemo1.java:176) help!!!

88. JFreeChart incompatible types error    jfree.org

Hi, I need some help. I tried to test the following code in Netbeans: XYSeries series = new XYSeries("Average Size"); series.add(20.0, 10.0); series.add(40.0, 20.0); series.add(70.0, 50.0); XYDataset xyDataset = new XYSeriesCollection(series); String s1 = new String("Sample Chart"); String s2 = new String("Height"); String s3 = new String("Widht"); JFreeChart chart = ChartFactory.createAreaXYChart(s1,s2,s3,xyDataset,true); And I receive as error in the last line: incompatible ...

89. Get NoSuchMethod Error PiePlot3D.setSectionPaint (1.0.12)    jfree.org

Usually when you get errors like these (that make no sense) it is because you've confused the classloader by putting more than one version of the JFreeChart jar file on your classpath. Or confused yourself and compiled with a recent version of JFreeChart, but deployed using an older version (the method you mention was introduced in JFreeChart 1.0.3 according to the ...

90. No X11 DISPLAY was set ERROR!    jfree.org

java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159) at java.awt.Window.(Window.java:406) at java.awt.Frame.(Frame.java:402) at javax.swing.JFrame.(JFrame.java:207) at org.jfree.ui.ApplicationFrame.(ApplicationFrame.java:65) at de.tudarmstadt.ukp.dkpro.community_mining.reader.TimeSeriesChart.(TimeSeriesChart.java:82) at de.tudarmstadt.ukp.dkpro.community_mining.reader.TrendReader.createTagCoocChart(TrendReader.java:835) ...

91. SamplingXYLineRenderer seriesPaint error    jfree.org

This is your brain playing tricks on you. Both series are the colors you specified them to be: blue and red. You can see for yourself where the two series separate. When the series are approximately the same, the combination of anti-aliasing and the nature of our eyes cause the two series to 'merge' and create a purple-ish looking line. If ...

92. java.io.FileNotFoundException:error in showing my chart    jfree.org

java.io.FileNotFoundException:error in showing my chart by riadhhwajdii Sat Aug 29, 2009 1:39 pm hi i would like to preveiw a chart with jfreechart my java code is : Code: Select all public String generateChartMethod(){ JFreeChart chart = ChartFactory.createTimeSeriesChart( ...

93. JFreeChart error on WinCE 5.0 + J9 JVM    jfree.org

Hi, I'm trying to develop an basic line chart on a device with WinCE and J9 + SWT and I'm getting this error .. Exception in thread "main" java.lang.NoClassDefFoundError: java.awt.Paint at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(Unknown Source) at java.lang.J9VMInternals.initialize(Unknown Source) at gui.JGraficoTendencia.createChart(Unknown Source) at gui.JGraficoTendencia.createContents(Unknown Source) at gui.JGraficoTendencia.(Unknown Source) someone has any idea about this Exception or got success making chart with ...

94. Xml error in Web Application    jfree.org

Hi All, I am using JFreeChart in my web application. The code I have written is working in normal environment. It is giving the following error when I hosted it on my web application(GWT-EXT web environment): (I think I have to an inherits line in the XML document(not sure). Please reply me ASAP.) [ERROR] Failure while parsing XML org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/nonvalid ... ...

95. TextTitle Error    jfree.org

97. Error in Thermometer when all values is 0    jfree.org

private JFreeChart getChart(final Indicator indicator, final IndicatorRenderingConfiguration configuration) { double value = indicator.getValue(); double realMinValue = indicator.getMinValue(); double maxValue = indicator.getMaxValue(); double goal = indicator.getGoal(); if (!(value == 0 && realMinValue == 0 && maxValue == 0 && goal == 0)) { int multiplier = configuration.getMultiplier(); value = IndicatorUtil.getNormalizedValue(indicator, multiplier); realMinValue = IndicatorUtil.getNormalizedMinValue(indicator, multiplier); maxValue = IndicatorUtil.getNormalizedMaxValue(indicator, multiplier); goal = IndicatorUtil.getNormalizedGoal(indicator, ...

99. Q:Display Chinese error in JFreeChart ,ok in JasperReport!    jfree.org

I have searching the posters before, but I am still puzzling. It is strange that under Windows they both ok. I import and implement the JFreeChart in JasperReport, and then both display Simplfied Chinese Ok. When under linux, after importing the iTextAsian.jar , setting the X11 enviroment, setting the encoding when connecting DB and revsing the encoding format in xml file ...

100. Out of memory error - JFreeChart limitation?    jfree.org

Is there a maximum number of points on a plot that JFreeChart can handle drawing? I am asking this because I am getting an out of memory error from the JVM when I try to plot a large number of points. I have a CombinedDomainXYPlot with 12 individual XYPlots. In each plot there are 2200 data points, so total that is ...