title: GWT: The response could not be deserialized
body: <p>I'm using GWT (2.4) with Spring integrated as in this <a href="http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/" rel="noreferrer">article</a>. I have problem with getting list of User from database (Hibernate) and populate DataGrid with it. When i call <code>greetingService.allUsers()</code> method, I'm getting error (<em>onFailure()</em>): </p>
  
  <blockquote>
    <p>com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
    The response could not be deserialized</p>
  </blockquote>
  
  <p>Anybody helps with that? Below some pieces of code. Full working project is <a href="https://github.com/marioosh-net/GWT/tree/master/gwt-spring" rel="noreferrer">here</a>.</p>
  
  <pre><code>  public void onModuleLoad() {
      // ...
      greetingService.allUsers(
          new AsyncCallback&lt;List&lt;User&gt;&gt;(){
              @Override
              public void onFailure(Throwable caught) {
                  caught.printStackTrace();
              }
              @Override
              public void onSuccess(List&lt;User&gt; result) {
                  GWT.log("SIZE: "+result.size());
                  dataGrid.setRowData(result);
              }
          }
      );
      // ...
   }
  </code></pre>
  
  <p>GreetingServiceImpl</p>
  
  <pre><code>@Override
  public List&lt;User&gt; allUsers() {
      return userDAO.findAll();
  }
  </code></pre>
  
  <p>User</p>
  
  <pre><code>@Entity
  @Table(name = "users")
  public class User implements Serializable, IsSerializable {
  
      @Id
      private Long id;
  
      // only Strings and one Date
      private String login;
      private String password;
      private String firstname;
      private String lastname;
      private Date date;
  }
  </code></pre>