Hi,
   Can any one please tell me whether castor supports
  Inner Classes. If yes how can they be used? I am
  provinding the following information for inner classes in
  my mapping file
        <class name="CastorProxy$HashtableEntriesWrapper">
                <field name="Key">
                        <bind-xml name="Key" node="element"/>
                </field>
 
               <field name="Value">
                        <bind-xml name="Value" node="element"/>
                </field>
        </class>
 
  While loading the mapping information following information is
  thrown,
 
    org.exolab.castor.mapping.MappingException: The Java class CastorProxy$HashtableEntriesWrapper is not constructable -- it does not contain a default public constructor
 
 at org.exolab.castor.mapping.loader.ClassDescriptorImpl.<init>(ClassDescriptorImpl.java:127)
 
 at org.exolab.castor.mapping.loader.MappingLoader.createDescriptor(MappingLoader.java:461)
 
 at org.exolab.castor.xml.XMLMappingLoader.createDescriptor(XMLMappingLoader.java:157)
 
 at org.exolab.castor.mapping.loader.MappingLoader.loadMapping(MappingLoader.java:212)
 
 at org.exolab.castor.mapping.Mapping.getResolver(Mapping.java:278)
 
 at org.exolab.castor.mapping.Mapping.getResolver(Mapping.java:234)
 
 at org.exolab.castor.xml.Unmarshaller.setMapping(Unmarshaller.java:224)
 
 at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:158)
 
   Any help will be greatly appreciated.
 
Thanks,
Uddhav

Reply via email to