Hi,

I've looked through the mailing list archives and the other entries that I see related to this all seem to center around masking an image which I'm not doing. I have am building a PDF document from data extracted from a database. This document has two columns or sides, each side consisting of smaller tables. To put them together each of the smaller tables are built, then inserted into a larger container table, which is in turn added to the document. The code below is an example of three smaller tables being added to the container table, then the container table being inserted or added to the document.

           containerTable.insertTable(headerTable);
           containerTable.insertTable(gapTable);
           containerTable.insertTable(supplierDefTable);

           document.add(containerTable);


From time to time (and there seems to be no pattern to it) I will get the
following error...

SEVERE: Document exception:
DocumentException: java.lang.ArrayIndexOutOfBoundsException: 8
       at com.lowagie.text.Row.addElement(Unknown Source)
       at com.lowagie.text.Table.mergeInsertedTables(Unknown Source)
       at com.lowagie.text.Table.complete(Unknown Source)
       at com.lowagie.text.pdf.PdfTable.<init>(Unknown Source)
       at com.lowagie.text.pdf.PdfDocument.getPdfTable(Unknown Source)
       at com.lowagie.text.pdf.PdfDocument.add(Unknown Source)
       at com.lowagie.text.Document.add(Unknown Source)
at com.covisint.suppcon2.templates.lear.Lear830TampaDocument.buildPartDetails(Lear830TampaDocument.java:656)

There is more to the stack trace, but you can see the Array Index error at the top. The error number associated with this is sometimes an 8 (as shown here), sometimes a six, sometimes a nine, again no consistency, but they always point back to the first insert statement when building my larger container table (in this case containerTable.insertTable(headerTable). I've been trying to figure this one out from time to time over the last several months and I'm really not getting anywhere fast. Can anyone provide any insight as to what is happening and how it can be resolved.

thanks
steve

_________________________________________________________________
Find a local pizza place, music store, museum and moreĀ…then map the best route! http://local.live.com


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to