From: Greg J. <gr...@dc...> - 2004-08-16 20:39:16
|
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 |