i am getting error while retrieving object through ObjectInputstream.
i have a jsp which contains an applet, in this jsp i set one araylist as object by session.setAttribute
and call the applet, this applet intern calls a servlet which takes the session object and then generates an graph object and puts in outputstream.
the applet captures the outputstream and dispalys the graph.
but i am having error while retrieving the graph object, is there any problem because of the session object
here is the code for applet which is throwing the error at marked by ---------->>
// receive result from servlet
InputStream instr = con.getInputStream();
--------------->>ObjectInput inputFromServlet = new ObjectInputStream(instr);
JFreeChart result = (JFreeChart) inputFromServlet.readObject();
ChartPanel chartPanel = new ChartPanel(result);
//add the chartPanel to the container (getContentPane is inherited from JApplet which AppletGraph extends).
Container content = getContentPane();