Use a PdfPTable. Your problem may or may be not fixed in the latest
release but Table is not supported anymore by the main iText developers
although we accept fixes.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Steve Weston
> Sent: Thursday, September 21, 2006 1:56 PM
> To: [email protected]
> Subject: [iText-questions] Array index out of bounds
> 
> 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.buil
> dPartDetails(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
> 
> 
> 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


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