exception - I'm getting Java.io.notserializableException error -


i'm getting java.io.notserializableexception error after trying write object server in class extending jpanel , implementing serializable worked if extending jframe.

here code:

//to send server  objectoutputstream out = new objectoutputstream(socket.getoutputstream());  out.writeobject(myobject);   //to receive in server  objectinputstream in = new objectinputstream(socket.getinputstream());  in.readobject(); 

thanks help.

from jpanel (java 2 platform se v1.4.2), says:

warning: serialized objects of class not compatible future swing releases. current serialization support appropriate short term storage or rmi between applications running same version of swing. of 1.4, support long term storage of javabeanstm has been added java.beans package. please see xmlencoder.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -