Hello,

 

We are using iText-2.0.8.jar for merging input streams (pdf format) into
a single PDF file. Same program works in local m/c, system testing, UAT
and other environments but not working in DEV and Prod machines.

 

Here is the configuration:

Local : Windows, jdk 1.4.2

DEV: Z/Linux, jdk 1.4.2

SYST: Z/Linux, jdk 1.4.2

UAT: Z/Linux, jdk 1.4.2

Prod: Z/Linux, jdk 1.4.2

 

 

I am getting following error 

java.lang.VerifyError: (class: com/lowagie/text/pdf/PageResources,
method: translateName signature:
(Lcom/lowagie/text/pdf/PdfName;)Lcom/lowagie/text/pdf/PdfName;)
Expecting to find array of ints on stack

      at com.lowagie.text.pdf.PdfDocument.initPage(Unknown Source)

      at com.lowagie.text.pdf.PdfDocument.open(Unknown Source)

      at com.lowagie.text.Document.open(Unknown Source)

      at com.lowagie.text.pdf.PdfCopyFieldsImp.openDoc(Unknown Source)

      at com.lowagie.text.pdf.PdfCopyFieldsImp.addDocument(Unknown
Source)

      at com.lowagie.text.pdf.PdfCopyFields.addDocument(Unknown Source)

      at
us.pa.state.dot.centric.presentation.inventory.action.PickSlipPrtQWHActi
on.printPickSlip(Unknown Source)

when I execute following code in DEV and Prod environments.

 

              HashMap map = new HashMap();

              CERASReportGenerator reportGen = new
CERASReportGenerator();

              ByteArrayOutputStream byteout = new
ByteArrayOutputStream();

              PdfCopyFields copy = new PdfCopyFields(byteout);

              ReportInstancesDelegate reportDelegate = new
ReportInstancesDelegate();

              InputStream in = null;

              

              String[] orderIds = orderID.split("@");

              

              for(int i=0;i< orderIds.length;i++){

                    map.put("Order_ID", orderIds[i]);

                    reportGen.setReportParameters(map);

                    in =
reportGen.getReportAsStream(FWCentricReportHelper.getProperty("PRD_04_01
_Inventory_Pick_Slip"));

                    PdfReader reader = new PdfReader(in);

                    copy.addDocument(reader);

 

                  }

               in.close(); 

               copy.close();

               byteout.close();

 

 

 

I tried with latest iText-2.0.8.jar jar but no luck, please let me know
how to solve this issue.

 

 

Regards,

Srini Gamini

717-214-8412

 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to