what the !@# is sun.dc.pr.PRExceptio??

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Pawel Bogaczewicz

what the !@# is sun.dc.pr.PRExceptio??

Post by Pawel Bogaczewicz » Thu Jun 20, 2002 2:29 pm

sometimes i get the following.

sun.dc.pr.PRException: endPath: bad path
at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:537)
at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(DuctusRenderer.java:374)
at sun.java2d.pipe.DuctusShapeRenderer.renderPath(DuctusShapeRenderer.java:57)
at sun.java2d.pipe.DuctusShapeRenderer.draw(DuctusShapeRenderer.java:45)
at sun.java2d.SunGraphics2D.draw(SunGraphics2D.java:2162)
at com.jrefinery.chart.VerticalBarRenderer.drawCategoryItem(Unknown Source)
at com.jrefinery.chart.VerticalCategoryPlot.render(Unknown Source)
at com.jrefinery.chart.VerticalCategoryPlot.draw(Unknown Source)
at com.jrefinery.chart.JFreeChart.draw(Unknown Source)
at com.jrefinery.chart.JFreeChart.createBufferedImage(Unknown Source)


does anyone konw what may cause it?
it happens when i create VerticalBartChart.

David Gilbert

Re: what the !@# is sun.dc.pr.PRExceptio??

Post by David Gilbert » Thu Jun 20, 2002 2:42 pm

Hi Pawel,

There seems to be a couple of things that can cause this (lots of bugs are registered at the Java Developer Connection). First, if you attempt to draw a Shape that has large coordinates, Java2D will report these exceptions (but otherwise continue). Second, antialiased fonts can cause the same thing under some conditions. I'm looking into ways to minimise when this happens...any suggestions appreciated.

Regards,

DG.

Locked