sun.dc.pr.PRException: endPath: bad path

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
manoharansunil
Posts: 1
Joined: Thu Feb 02, 2006 10:20 pm

sun.dc.pr.PRException: endPath: bad path

Post by manoharansunil » Mon Feb 06, 2006 4:31 pm

Hi Everyone,

I am getting this error "sun.dc.pr.PRException: endPath: bad path" and my chart is EMPTY when I have just ONE Result for a TIMESERIES chart.

I have searched through forums and tried to run on JDK5.0 , but still no luck. Same result always if I have just ONE Result. Its NOT a Null data.

Any help in this matter is greatly appreciated !!

Thanks,
Sunil

divya v

same problem

Post by divya v » Wed Feb 22, 2006 1:44 pm

hi,

even i am getting the same error.
does anyone have a solution to this ?
or is it a bug in jfree charts?

thanks,
divya v

divya.x.vidyadharan@verizon.com

javydreamercsw
Posts: 15
Joined: Fri Oct 07, 2005 2:32 pm

Post by javydreamercsw » Wed Feb 22, 2006 2:10 pm

Code that reflects the error might be helpful.

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

Post by david.gilbert » Thu Feb 23, 2006 10:49 am

javydreamercsw wrote:Code that reflects the error might be helpful.
Yes, please post a small self-contained demo that illustrates the problem, and state the JDK and JFreeChart versions you are using.
David Gilbert
JFreeChart Project Leader

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

jumper18
Posts: 3
Joined: Wed Mar 08, 2006 7:19 am

How to re-create sun.dc.pr.PRException: endPath: bad path

Post by jumper18 » Wed Mar 22, 2006 12:19 am

It is easy to re-create this.

1. Run TimeSeriesDemo1
2. Continue to zoom in on any segment of line (must be an actual line segment), you will eventually see the exception.

FWIW I have seem the same thing when zooming in deeply to picolo based applications as well.

I am using JFreeChart 1.0.1 & JRE 1.4.2_09 in Win 2K

rk25769
Posts: 2
Joined: Tue Apr 04, 2006 4:08 pm

bad path exception

Post by rk25769 » Tue Apr 04, 2006 4:11 pm

We are having the same issue with JFreeChart. If all the values in a chart are zeroes we are getting this exception. We have four series in the chart and if all are zeroes even though they are values for value axis we are facing this problem. Any help is greatly appreciated. We are using stacked area chart for primary data set and a bar chart for secondary data set

sun.dc.pr.PRException: endPath: bad path
at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:553)
at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(DuctusRenderer.java:310)
at sun.java2d.pipe.DuctusShapeRenderer.renderPath(DuctusShapeRenderer.java:73)
at sun.java2d.pipe.DuctusShapeRenderer.fill(DuctusShapeRenderer.java:66)
at sun.java2d.SunGraphics2D.fill(SunGraphics2D.java:1631)
at org.jfree.chart.renderer.LineAndShapeRenderer.drawItem(LineAndShapeRenderer.java:401)
at org.jfree.chart.plot.CategoryPlot.render(CategoryPlot.java:2066)
at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:1899)

rk25769
Posts: 2
Joined: Tue Apr 04, 2006 4:08 pm

Post by rk25769 » Tue Apr 04, 2006 10:24 pm

We were able to resolve the exception by setting the max value of primary and secondary data axis to a value > 1

sayan_maity
Posts: 15
Joined: Tue Feb 13, 2007 9:29 am

Post by sayan_maity » Tue Jul 24, 2007 8:20 am

How to set the primary data axis value > 1.
Please let me know as I need it urgently.

Locked