Jump to content
Changes to the Jaspersoft community edition download ×

Error in constructor JRBeanCollectionDataSource(String) is undefined


dzrmail

Recommended Posts

Guys, good morning

I'm having a problem compiling my report and I can't find a solution.
Sorry for using Google Translator...
I need to use subreport and when I try to create the datasource expression, the error appears. I'm using the following expression:

new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{areaETipoPlantio}.getMensagemCertificadoString())

However, the following error appears:

The constructor JRBeanCollectionDataSource(String) is undefined
                value = new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(((br.gov.mg.meioambiente.cplanentidades.model.vo.AreaETipoPlantioVO)parameter_areaETipoPlantio.getValue()).getMensagemCertificadoString()); //$JR_EXPR_ID=21$

However, if I put only the expression $P{areaETipoPlantio}.getMensagemCertificadoString() the report compiles normally.
I wanted to know if this is normal and if my subreport would work. I still don't have access to the Java source code to test.

Thanks.

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...