I am calling below method by passing value to a.
public Sample get(String a) {
return jdbcTemplate.queryForObject(SQL, new Object[] { a }, rowMapper);
}
On execute of the below queryForObject method, it throws exception
"EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0" and object array value be null. public T queryForObject(String sql, Object[] args, RowMapper rowMapper) throws DataAccessException { List results = query(sql, args, new RowMapperResultSetExtractor(rowMapper, 1)); return DataAccessUtils.requiredSingleResult(results); }