> Hi,
> I extend a abstract class and want to export objects from the concrete
> class. The following stack trace is the result:
> 
> org.exolab.castor.mapping.MappingException: The Java class
> DE.data_experts.profi.prodexim.TestObject2 is not constructable -- it does
> not contain a default public constructor
>      at
> 
>org.exolab.castor.mapping.loader.ClassDescriptorImpl.<init>(ClassDescriptorImpl.java:127)
>      at

You just need to make sure the class you are mapping has a default public
constructor.  That means it needs to have a constructor that takes
no arguments.  Castor uses reflection to create a new instance of the
class, then uses the get/set methods to set it up.

-- 
[EMAIL PROTECTED]     Do not meddle in the affairs of dragons, because you are
                crunchy and taste good with ketchup.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to