title: java serialization with different JVM version
body: <p>I'm using a 3rd party tool of objectPlanet called easyChart to produce graphical chart. They provide a jar lib called Chart.jar and ChartServer.jar</p>
  
  <p>I write an easyChart object on server side:</p>
  
  <pre><code>Chart chart = new BarChart();
  ... &lt;create chart data here&gt; ...
  ByteArrayOutputStream bStream = new ByteArrayOutputStream();
  ObjectOutputStream oStream = new ObjectOutputStream( bStream );
  oStream.writeObject (chart);
  byte[] byteVal = bStream.toByteArray();
  String chartInString = Base64.encode(byteVal);
  </code></pre>
  
  <p>and read it back on client side:</p>
  
  <pre><code>byte[] readByte = Base64.decode(chartInString);
  ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(readByte));
  Chart chart = (Chart) ois.readObject();
  </code></pre>
  
  <p>It works fine when server and client has same JVM version. I realize that GenericChart implements Serialization (this class is inside the jar provided).</p>
  
  <p>How I can overcome this matter since I can't modify their provided jar classes?</p>
  
  <p>Much appreciate any reply.
  Thank you!</p>