floppy13 Posted September 17, 2009 Share Posted September 17, 2009 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.3Compiling 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.Regardsmic Link to comment Share on other sites More sharing options...
shibinthomas Posted September 18, 2009 Share Posted September 18, 2009 This may be do to the difference versions of ireport and jasper report ur using. please use same version of both and try again Shibn Link to comment Share on other sites More sharing options...
floppy13 Posted September 18, 2009 Author Share Posted September 18, 2009 Hi Shibn,thanks for the hint. I synchronized the versions but got the same errormessages.mic Link to comment Share on other sites More sharing options...
shibinthomas Posted September 18, 2009 Share Posted September 18, 2009 This may help u. http://knol.google.com/k/nasir-qureshi/jasper-reports-working-with-beans-and/3az55pmbwf6s/3# Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now