When I try to send this class through a socket, all I get back is NullPointException. How would I make it so that I do not get NullPoint Exceptions?
public class Hick implements Serializable{
public JTextArea jta;
public Hick(){
jta = new JTextArea();
}
}
I tested it with the following code it seems to work fine…
I would make sure that you can serialize the object locally first to rule out any potential problems. If you still can’t get it to load across the socket, then your socket code is at fault, not the serialization
Also make sure you are running compatible versions of Java and (if my memory serves me properly) you have compatible versions of the serialized object on both ends.