title: Unmarshalling Error Jaxb - "Class does not have a default no arg constructor" while having a default no args constructor
body: <p>I'm trying to unmarshal the following XML but getting an exception: "1 counts of IllegalAnnotationExceptions EntityVersionInfo does not have a no-arg default constructor." despite actually having a no args constructor. What am I missing? </p>
  
  <p>XML:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;topLevelObject&gt;
    &lt;entityVersionInfo&gt;
          &lt;id&gt;111111&lt;/id&gt;
          &lt;version&gt;1&lt;/version&gt;
    &lt;/entityVersionInfo&gt;
  &lt;/topLevelObject&gt;
  </code></pre>
  
  <p>Entities in Java with Annotations:</p>
  
  <p>TopLevelObject:</p>
  
  <pre><code>@XmlAccessorType(XmlAccessType.FIELD)
  @XmlRootElement(name = "topLevelObject")
  
  public class TopLevelObject {
  
      @XmlElement(name = "entityVersionInfo")
      private EntityVersionInfo versionInfo;
  
      public TopLevelObject() {
          //no args constructor
      }
  
      //GETTERS AND SETTERS HERE...
  }
  </code></pre>
  
  <p>EntityVersionInfo:</p>
  
  <pre><code>@XmlAccessorType(XmlAccessType.FIELD)
  @XmlRootElement(name = "entityVersionInfo")
  
  public class EntityVersionInfo {
      @XmlElement(name = "id")
      private String id;
  
      @XmlElement(name = "version")
      private String version;
  
      public EntityVersionInfo() {
          //no arg constructor
      }
  
      //GETTERS AND SETTERS
  }
  </code></pre>