sun.dc.pr.PRException: endPath: bad path - any solution?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
juhi
Posts: 15
Joined: Wed Jul 14, 2004 7:19 pm

sun.dc.pr.PRException: endPath: bad path - any solution?

Post by juhi » Mon Jul 26, 2004 6:25 pm

Hi,

I checked the forum and did find a thread on thiss, but that was an old one. As I'm having this problem for the same reason - large amount of data having the same value to be shown - is there some solution to this apart from getting the JVM 5.0+? i don't or rather can't update the JVM at this point so will have to do with the existing 1.4.2 that I have. Is there some solution to prevent this exception from occurring?

thanks,
Juhi.

nicky
Posts: 44
Joined: Mon Apr 05, 2004 1:45 am
Location: Brisbane, Australia

Post by nicky » Mon Jul 26, 2004 11:11 pm

This is a well know bug. If you search suns java bug database you will find that this is an annoying bug. In most cases it is only a warning that you are usning big coordinates (some native methods only handle 16 bit integers).

This exception will not be thrown in java/1.5-beta2 and forward. Try to scale down your coordinates before painting them....


HTH. Nicky

Soilwork
Posts: 14
Joined: Thu Apr 15, 2004 7:41 am
Location: Dijon, France

Post by Soilwork » Tue Jul 27, 2004 7:24 am

http://www.jfree.org/phpBB2/viewtopic.p ... rexception
nikster wrote:the solution is to wait for JDK 1.5 which is supposed to fix the problem, OR to turn off anti-aliasing...
Hope this helps..
Saigo ni ee tomodachi ga dekite yokatta...
And then, I'm glad I found true friends...
Avant de mourir, je suis heureux d'avoir eu des amis...

BigWillyStyle42
Posts: 58
Joined: Wed Jun 02, 2004 1:37 pm

Post by BigWillyStyle42 » Tue Jul 27, 2004 2:12 pm

I found that this exception was thrown any time I tried to have a graph with an axis whose fixed endpoints were the same value. Obviously setting defaults so that wasn't possible fixed the problem for me.

Locked