I am trying to send a object of the following class using java sockets:
public class CommunicationObj implements Serializable{
private String ID;
public AuthenticationParams s = new AuthenticationParams();
public CommunicationObj(String s){
ID = s;
}
public String getID(){
return ID;
}
}
But sending an object of the following class raises exception (unable to send the object), but the following code works
public class CommunicationObj implements Serializable{
private String ID;
public CommunicationObj(String s){
ID = s;
}
public String getID(){
return ID;
}
}
Why AuthenticationParams object is creating such a problem here? Any help will be appreciated.
Note: All the classes and packages used are identical to both server and client.
<code>tags.