Jump to content
Changes to the Jaspersoft community edition download ×

Error with IndexOutofBand

Recommended Posts

By: louis_gely - louis_gely

Error with IndexOutofBand

2006-05-30 01:07

Hi every one. I'm trying to generate a report in XLS, but I'm Having an error :


- DefaultJRInstance.exportToFile :: Erreur [class java.lang.IndexOutOfBoundsException] - [index: 0, Size: 0]

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

at java.util.ArrayList.RangeCheck(Unknown Source)

at java.util.ArrayList.get(Unknown Source)

at jxl.write.biff.WritableWorkbookImpl.getSheet(WritableWorkbookImpl.java:362)

at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:791)

at net.sf.jasperreports.engine.export.JExcelApiExporter.closeWorkbook(JExcelApiExporter.java:167)

at net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportReportToStream(JRXlsAbstractExporter.java:298)

at net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportReport(JRXlsAbstractExporter.java:137)

at clam.epe.jasper.reports.jasperReports.DefaultJRInstance.exportToFile(DefaultJRInstance.java:196)

at clam.epe.jasper.reports.jasperReports.DefaultJRInstance.exportTo(DefaultJRInstance.java:150)

at clam.epe.reportingEnt.reportAVGlobal.reportingAVO.ReportAVOCreator.create(ReportAVOCreator.java:149)

at clam.epe.reportingEnt.reportAVGlobal.reportingAVO.ReportAVO.executeReport(ReportAVO.java:79)

at clam.epe.reportingEnt.reportAVGlobal.reportingAVO.Report_AVO_Lancement.main(Report_AVO_Lancement.java:47)



I have one master Report (ReportingAVO) and 2 sub reports (OpeOrdreAVO and OpeStatAMFAVO) each using a java Bean for the fields.


I get this error when i generate my report with JExcelApiExporter. With JRXlsExporter i have no error, but a blank report. And the same when I generate my report in pdf.

Could someone help me?


Thanks a lot









By: louis_gely - louis_gely

RE: Error with IndexOutofBand

2006-05-30 02:41

Thanks, It's working partialy :)


I can now corrects the bugs :)





By: Teodor Danciu - teodord

RE: Error with IndexOutofBand

2006-05-30 02:09




It looks like the generated document does not

contain any pages probably due to missing records

in the data source.

You could set whenNoDataType="AllSectionsNoDetail"

for your report template so that the engine

generates something even if there are no records

in the data source.


I hope this helps.







By: louis_gely - louis_gely

RE: Error with IndexOutofBand

2006-05-30 05:01

Hi it's me again. I have another problem. I have in one of my subreport a table which I would like to fill with the print order horizontaly. But I only got the first column working...


field 1

field 2


field n


Each field is known with a JavaBean. I have n JavaBean in an arrayList.


I'm using JasperReports 1.2.1. Is there a solution? Am I forgetting something?


Thanks again.





Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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