NullPointerException « Development « JFreeChart Q&A





1. java.lang.NullPointerException    jfree.org

java.lang.NullPointerException by hreinsi@t.is Wed Aug 09, 2006 2:20 pm Hi, Im using JFree with portlets and Im always getting this error: javax.portlet.PortletException at org.apache.pluto.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:62) at org.springframework.web.portlet.DispatcherPortlet.render(DispatcherPortlet.java:1083) at org.springframework.web.portlet.DispatcherPortlet.doRenderDispatch(DispatcherPortlet.java:894) at org.springframework.web.portlet.DispatcherPortlet.doRenderService(DispatcherPortlet.java:724) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:433) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:400) at javax.portlet.GenericPortlet.render(GenericPortlet.java:175) at vyre.publishing.portal.Servlet.doPortlet(Servlet.java:147) at vyre.publishing.portal.Servlet.doPost(Servlet.java:90) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120) at org.apache.pluto.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:73) at org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:103) ...

3. NullPointerException    jfree.org

Hi I am getting java.lang.NullPointerException while converting the JFreeChart into BufferedImage. I am getting this error on CombinedCatagoryPlotDemo1 Code is like public JFreeChart createChart() throws IOException { final DefaultCategoryDataset dataset1 = createDataset1(); final NumberAxis rangeAxis1 = new NumberAxis("Temp"); 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 DefaultCategoryDataset dataset2 ...

4. NullPointerException in clearRangeAxes    jfree.org

Was there any resolution to this - I have been battling the same problem all afternoon. When I set up the XYPlot for the first time, I call clearRangeAxes() anyway which works fine. If the user should change what they want on the graph I need to refresh it and calling clearRangeAxes() a subsequent time causes the NPE noted above ( ...

5. NullPointerException in removeAgedItems    jfree.org

java.lang.NullPointerException at org.jfree.data.time.TimeSeries.removeAgedItems(TimeSeries.java:770) at sg.Sensor$2.doInBackground(Sensor.java:1467) at javax.swing.SwingWorker$1.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at javax.swing.SwingWorker.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

6. Null pointer exception in the report    jfree.org

Null pointer exception in the report by jaya Fri Oct 17, 2008 5:31 am hai, I am using jfreeReport-0.9.0.1. And we have the XML export file designed in Pentaho report designer 1.7.00527. JDK 1.5 //// JAVA CODE ResourceManager manager = new ResourceManager(); manager.registerDefaults(); Resource res = manager.createDirectly(in, JFreeReport.class); final JFreeReport report = (JFreeReport) res.getResource(); ReportJob job = new DefaultReportJob(report); final ...

7. NullPointerException in ChartPanel.mousePressed    jfree.org

In ChartPanel: public void mousePressed(MouseEvent e) { Plot plot = this.chart.getPlot(); .... This throws NPE if chart == null, which happens to me occasionally. My code conses up a ChartPanel without a chart, then sets the chart after the user has entered a bunch of parameters into a sort of control panel and hit "DRAW". Sometimes I happen accidentally to click ...