report error - unknown property in class

Asked

Viewed 49 times

0

I am using Jaspersoft to create a report and get the following error message:

Unknown Property 'Relpadraoacesso' on class 'sda.perfilacesso.model.report.Relpadraoaccess'

Error retrieving field value from bean: Relpadraoaccess.

My Relpadraoaccess class contains the fields that return from the search, which is working.

public class RelPadraoAcesso implements Serializable {
private static final long serialVersionUID = -692759282661829181L;

private Integer uorg;
private String nomeSetor;
private Integer numero;;
private String nomeFunc;
private String siglaPadrao;
private String descPadrao;
private String Editavel;
private String silgaSistema;
private String siglaProjeto;
private String situacao;

public RelPadraoAcesso() {
    super();
}

public Integer getUorg() {
    return uorg;
}

public void setUorg(Integer uorg) {
    this.uorg = uorg;
}

public String getNomeSetor() {
    return nomeSetor;
}

public void setNomeSetor(String nomeSetor) {
    this.nomeSetor = nomeSetor;
}

public Integer getNumero() {
    return numero;
}

public void setNumero(Integer numero) {
    this.numero = numero;
}

public String getNomeFunc() {
    return nomeFunc;
}

public void setNomeFunc(String nomeFunc) {
    this.nomeFunc = nomeFunc;
}

public String getSiglaPadrao() {
    return siglaPadrao;
}

public void setSiglaPadrao(String siglaPadrao) {
    this.siglaPadrao = siglaPadrao;
}

public String getDescPadrao() {
    return descPadrao;
}

public void setDescPadrao(String descPadrao) {
    this.descPadrao = descPadrao;
}

public String getEditavel() {
    return Editavel;
}

public void setEditavel(String editavel) {
    Editavel = editavel;
}

public String getSilgaSistema() {
    return silgaSistema;
}

public void setSilgaSistema(String silgaSistema) {
    this.silgaSistema = silgaSistema;
}

public String getSiglaProjeto() {
    return siglaProjeto;
}

public void setSiglaProjeto(String siglaProjeto) {
    this.siglaProjeto = siglaProjeto;
}

public String getSituacao() {
    return situacao;
}

public void setSituacao(String situacao) {
    this.situacao = situacao;
}

1 answer

1

java.lang.NoSuchMethodException do Ireport

There is a property in Jrbeancollectiondatasource that shows the boolean option for empty spaces in JRXML to be read, and that is the secret just put a false so that you do not read the whitespace then it would look like this:

JRBeanCollectionDataSource jrbcds = new JRBeanCollectionDataSource(dados, false);

Source:http://miguellimapj.blogspot.com.br/2013/01/javalangnosuchmethodexception-do-ireport.html

  • what blank spaces are these. I could remove them and solve the problem?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.