title: Castor - MappingException Java class not constructable
body: <p>Using Castor 1.3, received the following exception while testing:</p>
  
  <pre><code>org.exolab.castor.mapping.MappingException: The Java class com.company.sales.app.valueobjects.eai.ContactInformationValueObject$CommunicationPreference is not constructable -- it does not contain a default public constructor
  </code></pre>
  
  <p>Attempting to use a collection of a public inner class in my Java code.</p>
  
  <p><strong>Class examples</strong>:</p>
  
  <pre><code>public class Car {
     public String color;
     public String make;
     public String model;
     public List&lt;RoadTrip&gt; roadTrips;
  
     public class RoadTrip {
        public String pointA;
        public String pointB;
     }
  }
  </code></pre>
  
  <p><strong>XML Mapping</strong>:</p>
  
  <pre><code>&lt;class name="com.auto.Car" &gt;
      &lt;field name="color" type="java.lang.String"&gt;&lt;bind-xml name="COLOR" /&gt;&lt;/field&gt;
      &lt;field name="make" type="java.lang.String"&gt;&lt;bind-xml name="MAKE" /&gt;&lt;/field&gt;
      &lt;field name="model" type="java.lang.String"&gt;&lt;bind-xml name="MODEL" /&gt;&lt;/field&gt;
      &lt;field name="roadTrips" type="com.auto.Car$RoadTrip"&gt;&lt;bind-xml name="TRIP" /&gt;&lt;/field&gt;
  &lt;/class&gt;
  &lt;class name="com.auto.Car$RoadTrip"&gt;
      &lt;field name="pointA" type="java.lang.String"&gt;&lt;bind-xml name="STARTING_POINT" /&gt;&lt;/field&gt;
      &lt;field name="pointB" type="java.lang.String"&gt;&lt;bind-xml name="DESTINATION" /&gt;&lt;/field&gt;
  &lt;/class&gt;
  </code></pre>
  
  <p><strong>XML Example</strong></p>
  
  <pre><code>&lt;AUTOMOBILE&gt;
      &lt;COLOR&gt;LITTLE RED&lt;/COLOR&gt;
      &lt;MAKE&gt;CHEVROLET&lt;/MAKE&gt;
      &lt;MODEL&gt;CORVETTE&lt;/MODEL&gt;
      &lt;TRIP&gt;
          &lt;STARTING_POINT&gt;DALLAS&lt;/STARTING_POINT&gt;
          &lt;DESTINATION&gt;VEGAS&lt;/DESTINATION&gt;
      &lt;/TRIP&gt;
      &lt;TRIP&gt;
          &lt;STARTING_POINT&gt;SEATTLE&lt;/STARTING_POINT&gt;
          &lt;DESTINATION&gt;PORTLAND&lt;/DESTINATION&gt;
      &lt;/TRIP&gt;
  &lt;/AUTOMOBILE&gt;
  </code></pre>