Serialization problem.

Greg Jablonski <[email protected]> Mon, 16 Aug 2004 16:38:56 -0400
Newsgroups gmane.comp.krysalis.jcharts.user
Message-ID <[email protected]>
Hi,

I have a problem with serialization or maybe I have wrong understanding 
of where Chart object should be instantiated. I saw a post on 2004-05-31 
06:05 (Re: java.io.NotSerializableException: 
org.jCharts.properties.util.ChartFont) which solved some of my problems 
but I still can't make it to work. Here is what I am doing. I have a 
java client-server application which is using RMI for networking. So 
what I am doing is creating a PieChart2D object on a server side and 
then I am trying to send it over the network to a client. Then on a 
client side I am converting it to an image and displaying it. Issue is 
that when I make a request from client to server I get 
java.io.NotSerializableException: java.awt.BasicStroke error. I looked 
through the code and I see that PieChart2DProperties have been fixed to 
use ChartStroke which is now serializable instead of BasicStroke but for 
example LegendProperties still use BasicStroke. So my question, is that 
a bug or I should create my charts on a client side.

Thanks
Greg J



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285