Hello everyone,
I'm having trouble serializing a object containing object of classes
both of which are declared IsSerializable.
Any help or suggestion will be highly appreciated.
Say for instance I've following two classes:
>>>Class 1
public class tyre implements IsSerializable {
public tyre() {
}
public tyre(String TubeSize, String TubeWidth){
set("TubeSize",TubeSize);
set("TubeWidth",TubeWidth);
}
public Strimng getSize() {
return get("TubeSize");
}
// ....... other get and set methods.
}
>>>>Class 2
public class car implements Serializable {
public car(){
}
public car(tyer newTyer, String ExteriorColor, String InteriorColor)
{
set("newTyer",newTyer);
set("ExteriorColor",ExteriorColor);
set("InteriorColor",InteriorColor);
}
public tyer getnewTyer(){
return (tyer) get("newTyer");
}
public String getExteriorColor(){
return (String) get("ExteriorColor");
}
// ....... other get and set methods.
}
Now when I try to serialize the List<car> object it gives me the
error: "was not included in the set of types which can be
deserialized by this SerializationPolicy or its Class object could not
be loaded. For security purposes, this type will not be deserialized"
I'm pretty sure there would be a way to do this but dont know how. Any
help will be highly appreciated.
Regards
V
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---