title: Java List of custom objects inside response object not populated with GSON unmarshaller
body: <p>Basically, I marshall on one server into JSON, then send it to another server, where it should be unmarshalled. I use a response object called list wrapper, so that if there are any errors I can pass them along. With the JSON marshalled below by badgerfish(jettison), in a resteasy class, then returned to the other server,  GSON will unmarshall to a listwrapper object, but the list inside is null. Any ideas?
  Note: The list must remain generic because different objects may go into the list, though the list will always only have one type in it at a time.</p>
  
  <p>Json</p>
  
  <p>unmarshalling</p>
  
  <pre><code>        GsonBuilder builder = new GsonBuilder();    
          Gson gson = builder.create(); 
          Object List;
          if (!JSON.equals("")) {
              List = gson.fromJson(new BufferedReader(new StringReader(JSON)), ListWrapper.class);
          }
  </code></pre>
  
  <p>Listwrapper type  </p>
  
  <pre><code>@XmlRootElement(name = "ListWrapper")
  
  public class ListWrapper {
  
      private Vector&lt;Object&gt; objects;
      private String status;
      private int batch;
  
      private ValidationException e;
  
      public ListWrapper() {
          this.setStatus("Success");
      }
  
      public ListWrapper(Vector&lt;Object&gt; list) {
          this.setStatus("Success");
          this.objects = list;
      }
  
      public ListWrapper(int x) {
          this.setStatus("batch");
          this.batch = x;
      }
  
      public Vector&lt;Object&gt; getList() {
          return objects;
      }
  
      public void setList(Vector&lt;Object&gt; object) {
          this.objects = object;
      }
  
      public String getStatus() {
          return status;
      }
  
      public void setStatus(String status) {
          this.status = status;
      }
  
      @XmlJavaTypeAdapter(ThrowableAdapter.class)
      public ValidationException getE() {
          if (e != null) {
              return e;
          } else {
              return null;
          }
      }
  
      public void setE(ValidationException x) {
          this.e = x;
      }
  
      public int getBatch() {
          return batch;
      }
  
      public void setBatch(int batch) {
          this.batch = batch;
      }
  }
  </code></pre>