Jump to content

Preview error 4.1.2 and 4.1.3 ArrayIndexOutOfBounds


heikiel

Recommended Posts

After clicking "Preview", preview window does not open and I get this message (I am using an empty data source):

 Setting net.sf.jasperreports.engine.query.JRJdbcQueryExecuterFactory as Query Executer Factory for language: sql
  Filling report...
  Locale: Deutsch (Deutschland)
  Time zone: Default
Error filling print... 0
java.lang.ArrayIndexOutOfBoundsException: 0      at net.sf.jasperreports.engine.util.ParagraphUtil.getFirstTabStop(ParagraphUtil.java:208)      at net.sf.jasperreports.engine.fill.TextMeasurer.renderNextLine(TextMeasurer.java:723)      at net.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:418)      at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:362)      at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:511)      at net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:183)      at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:328)      at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:388)      at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:347)      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:441)      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnHeader(JRVerticalFiller.java:485)      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:267)      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:129)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:903)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:832)      at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:84)      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:540)      at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:915)      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) 
Print not filled. Try to use an EmptyDataSource...

Any help is welcome!

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I figured it out myself: I deleted one element of my report after the other and clicked on preview button every time. After deleting one column header which was not correctly displayed (seemed empty, but wasn't), my report worked!

This might help anybody confronted with the same error.

Link to comment
Share on other sites

  • 5 months later...

This exception was thrown when a cell in the data had a tab(0x09) character.   My solution replace all tab characters using the sql statement.   Not a great long term solution.

Has anyone submitted this as a bug?  Is this fixed in the current version?  

Thanks,

Fish



Post Edited by fishjd at 05/29/2012 19:46
Link to comment
Share on other sites

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