title: unable to catch exception?
body: <p>why not able to catch EmptyResultDataAccessException?</p>
  
  <p>method:</p>
  
  <pre><code>public List&lt;User&gt; findUserById(Object id) {
      MapSqlParameterSource paramSource = new MapSqlParameterSource("userid", String.valueOf(id);
  
      try {
               List&lt;User&gt; userList = myDatasource.query("select * from User where userid=:userid", paramSource, new UserMapper());
               Logger.info("number or records: " + userList.size();
      catch (EmptyResultDataAccessException e) {
               e.printStackTrace();
      }
  
    return userList;
  }
  </code></pre>
  
  <p>userList.size(); returns 0 but im still not able to catch the EmptyResultDataAccessException. what am I doing wrong ? </p>