hi,
I have exising none default constructor java objects need to marshall
to xml, I defind the mapping file and try to set to mashaller.
for example,
Address address = new Address(..., ..., ...);
Mapping mapping = new Mapping();
mapping.loadMapping("Address_map.xml");
FileWriter writer = ew FileWriter( "address-result.xml");
Marshaller marshaller = new Marshaller(writer);
marshaller.setMapping(mapping);
marshaller.marsha( address );
but I get the following exception
org.exolab.castor.mapping.MappingException: The Java class
melb.enterpriseLayer2.ed.location.EDAddressImplementation is not
constructable -- it does not contain a default public
I only need to marshall the objects and never need to unmarshall. Is it
possible not try construct Obj or Is there anything I missed?
thanks in advance
pike
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev