title: no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: (String)
body: <p>I have an entity with the following three constrcuctors</p>
  
  <pre><code>public MyObject() {
     // Default constructor to avoid ambiguity
    }
  
  
      public MyObject(String arg1, String arg2, String arg3) {
  
          AnotherType anothertype = new AnotherType(arg1, arg2, arg3);
          this.anotherTpe = anotherTpe;
        }
  
        public MyObject(AnotherType anotherType) {
  
          this.anotherType = anotherType;
        }
  </code></pre>
  
  <p>I then write a test to check the desrialization as fllows</p>
  
  <p>@Test
    public void serializesToJSON() throws Exception {</p>
  
  <pre><code>final MyObject myObject =
      new MyObject(new AnotherType("arg1", "ar2", "arg3"));
  
  ObjectMapper mapper = new ObjectMapper();
  assertThat(MAPPER.readValue(fixture("fixtures/myObject.json"), MyObject.class))
      .isEqualTo(myobject);
  </code></pre>
  
  <p>}</p>
  
  <p>This fails with an error </p>
  
  <pre><code>cannot construct instance of `AnotherType` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
  at [Source: (String)
  </code></pre>
  
  <p>I do not have control over the '<code>AnotherType</code>' object if it expects a default no args constructor in that class, if that is the issue. How should I solve this?</p>
  
  <p>Some more things I tried</p>
  
  <p>Tried initializing the mapper as follows</p>
  
  <pre><code>ObjectMapper mapper = new ObjectMapper().enable(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES)
          .registerModule(new ParameterNamesModule(JsonCreator.Mode.PROPERTIES));
  </code></pre>
  
  <p>And adding the folloiwng to the POM</p>
  
  <pre><code>&lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;1.8&lt;/source&gt;
                          &lt;target&gt;1.8&lt;/target&gt;
                          &lt;fork&gt;true&lt;/fork&gt;
                          &lt;compilerArgs&gt;
                              &lt;arg&gt;-Xlint&lt;/arg&gt;
                              &lt;arg&gt;-parameters&lt;/arg&gt;
                          &lt;/compilerArgs&gt;
  
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
  </code></pre>