This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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();