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.
what the !@# is sun.dc.pr.PRExceptio??
Re: what the !@# is sun.dc.pr.PRExceptio??
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.
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.