Patent ID: 7150004

Claim:
A computer-implemented method of programmatically serializing complex objects, comprising steps of: invoking, at run time, a serialization process on an object to be serialized; encountering one or more errors that halt the run-time serialization process, due to missing type mappings that are needed to map from the object to a serialized form thereof; programmatically resolving each encountered error, upon encountering each of the missing type mapping errors during the run-time serialization process, further comprising steps of: programmatically analyzing an exception message resulting from each encountered error to locate therein a class name indicating a class of the object for which the type mapping is missing; performing at least one of introspection and reflection on the class having the located class name to determine type information for fields of the class; programmatically generating a type mapping for the class using the determined type information; and using the programmatically generated type mapping for serializing the class of the object to the serialized form thereof; and automatically restarting the serialization process after each encountered error is resolved.