I am trying to generate a simple JR report from a list.
I am keep getting Error retrieving field value from bean : name
This error
The solution is very simple - you should change the access modifier of JavaBean class to public.
Like this:
public class EventBean {
private String name;
private String count;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCount() {
return count;
}
public void setCount(String count) {
this.count = count;
}
}
Don't forget that you are using your own package.
You can find more information about JavaBean Data Sources here
the Bean attribute should be started with Small letter
example :
public class DataBean {
private String name;
private String dateStart;
private String DateEnd; // ->dateEnd
private String prixTotale;
private String prixPayer;