Cannot perform nested evaluations.

Cannot perform nested evaluations.

Forum member · Jul 17, 2006
I'm trying to concatenate two pdfs using the following code and I'm getting an error Cannot perform nested evaluations. Iterator iterator = pdfGenerationContext.getPdfPages().iterator(); boolean firstTime = true; IPDFPage pdfPage = null; MergeDocument document = null; while (iterator.hasNext()){ pdfPage = (IPDFPage) iterator.next(); if (firstTime) { firstTime = false; document = new MergeDocument(new PdfDocument(pdfPage.getPDFBytes())); } else { document.append(new PdfDocument(pdfPage.getPDFBytes())); } } pdfGenerationContext.setPDFBytes(document.draw());

Re: Cannot perform nested evaluations.

Forum member · Jul 17, 2006
Here is the stack trace: java.lang.ArrayStoreException at java.lang.System.arraycopy(Native Method) at com.cete.dynamicpdf.DocumentJavaScriptList.b(Unknown Source) at com.cete.dynamicpdf.DocumentJavaScriptList.draw(Unknown Source) at com.cete.dynamicpdf.io.DocumentResourceList.a(Unknown Source) at com.cete.dynamicpdf.io.SinglePassDocumentWriter.draw(Unknown Source) at com.cete.dynamicpdf.Document.draw(Unknown Source) at com.cete.dynamicpdf.Document.draw(Unknown Source) at com.uhc.edist.proposal.pdf.PDFGenerator.mergePDFs(PDFGenerator.java:227) at com.uhc.edist.proposal.pdf.PDFGenerator.generatePDF(PDFGenerator.java:95) at com.uhc.edist.proposal.pdf.PDFGenerator.main(PDFGenerator.java:572)

Re: Cannot perform nested evaluations.

Support · Jul 17, 2006
Hello, Can you please send us over the two PDF documents you are trying to merge to our [^a|mailto:support@cete.com|Support Team^], so that we can do some testing on our end and try to recreate the same exception? Thanks, ceTe Software Support Team