An application throws this exception because it does not see the attributes you want to return. The getField () method returns non-private attributes, so if your attributes are private, the method does not see them. You can check out http://docs.oracle.com/javase/tutorial/reflect/member/fieldTrouble.html
, , , . ( , ) .
public List<Car> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String,String> filters) {
List<Car> data = new ArrayList<Car>();
for(Car car : datasource) {
boolean match = true;
for(Iterator<String> it = filters.keySet().iterator(); it.hasNext();) {
try {
String filterProperty = it.next();
String filterValue = filters.get(filterProperty);
String fieldValue = String.valueOf(car.getClass().getField(filterProperty).get(car));
...
, , . . bean , . , .
//EDIT: Man , getDeclaredField(), , , IlegalAccessException. , . , .