Jump to content
We've recently updated our Privacy Statement, available here ×

JRBeanCollectionDataSource for subreport


floppy13

Recommended Posts

Hi,

 I am a newbie in iReport and try to test the contacts (Report with subreport) tutorial.

Platform: linux fc9, OpenJDK 64-Bit Server VM (build 1.6.0-b09), iReport 3.6.0, Jasper 3.5.3

Compiling the main-Report in iReport I get the following error:

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:  org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed, calculator_contacts2_1253173989542_417534: 169:
 unable to resolve class JRBeanCollectionDataSource

Executing the TestJasperReport.class I get this errror:

Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[
Phone type: home    Phone number: 913-906-6000,
Phone type: work    Phone number: 913-906-6001,
Phone type: mobile    Phone number: (913-906-6002]' with class 'java.util.ArrayList' to class 'net.sf.jasperreports.engine.JRDataSource'

This message shows: the array does contain data but the constructor

new JRBeanCollectionDataSource($F{phones})

does not work properly.

Regards

mic

 

 

 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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...