Hello All,
When generating PDF report concurrently through the servlet using iText.jar, 
sometimes we get incomplete PDF and the app server stack trace shows the 
following iText error message. Does any one have seen this before. A solution 
would be greatly appreciated

 

ExceptionConverter: java.io.IOException: Bad file number
 at java.io.RandomAccessFile.seek(Native Method)
 at com.lowagie.text.pdf.RandomAccessFileOrArray.seek(Unknown Source)
 at com.lowagie.text.pdf.TrueTypeFontSubSet.checkGlyphComposite(Unknown Source)
 at com.lowagie.text.pdf.TrueTypeFontSubSet.flatGlyphs(Unknown Source)
 at com.lowagie.text.pdf.TrueTypeFontSubSet.process(Unknown Source)
 at com.lowagie.text.pdf.TrueTypeFontUnicode.writeFont(Unknown Source)
 at com.lowagie.text.pdf.FontDetails.writeFont(Unknown Source)
 at com.lowagie.text.pdf.PdfWriter.addSharedObjectsToBody(Unknown Source)
 at com.lowagie.text.pdf.PdfWriter.close(Unknown Source)
 at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)
 at com.lowagie.text.Document.close(Unknown Source)
 at com.actuate.ereport.output.OD_PDF.Generate(Unknown Source)
 at com.actuate.ereport.output.OD_PDF.generate(Unknown Source)
 at com.actuate.ereport.output.ACJ790.generatePDF(Unknown Source)
 at com.actuate.ereport.output.ACJOutputProcessor.generatePDF(Unknown Source)
 at com.actuate.ereport.eapi.output.PdfOutput.generate(Unknown Source)
 at 
com.hermanmiller.les.command.AbstractNewReportCommand.generatePDFReportFileWithR
etry(AbstractNewReportCommand.java:412)
 at com.hermanmiller.les.command.AbstractNewReportCommand.directPrintUnix
(AbstractNewReportCommand.java:254)
 at com.hermanmiller.les.command.AbstractNewReportCommand.createReport
(AbstractNewReportCommand.java:217)
 at com.hermanmiller.les.command.AbstractNewReportCommand.printReport
(AbstractNewReportCommand.java:135)
 at com.hermanmiller.les.command.AbstractPackListReportCommand.execute
(AbstractPackListReportCommand.java:51)
 at com.hermanmiller.les.command.PrintPackListCommand.execute
(PrintPackListCommand.java:113)
 at 
com.hermanmiller.les.servlet.AbstractPrintPickAndPackListsServlet.printPackList
(AbstractPrintPickAndPackListsServlet.java:70)
 at 
com.hermanmiller.les.servlet.AbstractPrintPickAndPackListsServlet.printPackList
(AbstractPrintPickAndPackListsServlet.java:29)
 at com.hermanmiller.les.servlet.TruckloadOrdersServlet.performTask
(TruckloadOrdersServlet.java:212)
 at com.hermanmiller.les.servlet.ApplicationServlet.performSuperTask
(ApplicationServlet.java:2202)
 at com.hermanmiller.les.servlet.ApplicationServlet.doPost
(ApplicationServlet.java:426)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService
(StrictServletInstance.java:110)
 at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:174)
 at com.ibm.ws.webcontainer.servlet.ServicingServletState.service
(StrictLifecycleServlet.java:333)
 at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:116)
 at com.ibm.ws.webcontainer.servlet.ServletInstance.service
(ServletInstance.java:283)
 at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch
(ValidServletReferenceState.java:42)
 at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch
(ServletInstanceReference.java:40)
 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:1030)
 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:566)
 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:198)
 at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80)
 at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:214)
 at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:71)
 at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke
(CacheableInvocationContext.java:116)
 at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:186)
 at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service
(OSEListener.java:334)
 at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest
(HttpConnection.java:56)
 at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
com.actuate.ereport.eapi.exception.OutputException: Unable to generate Pdf 
output...
 at 
com.hermanmiller.les.command.AbstractNewReportCommand.generatePDFReportFileWithR
etry(AbstractNewReportCommand.java:427)
 at com.hermanmiller.les.command.AbstractNewReportCommand.directPrintUnix
(AbstractNewReportCommand.java:254)
 at com.hermanmiller.les.command.AbstractNewReportCommand.createReport
(AbstractNewReportCommand.java:217)
 at com.hermanmiller.les.command.AbstractNewReportCommand.printReport
(AbstractNewReportCommand.java:135)
 at com.hermanmiller.les.command.AbstractPackListReportCommand.execute
(AbstractPackListReportCommand.java:51)
 at com.hermanmiller.les.command.PrintPackListCommand.execute
(PrintPackListCommand.java:113)
 at 
com.hermanmiller.les.servlet.AbstractPrintPickAndPackListsServlet.printPackList
(AbstractPrintPickAndPackListsServlet.java:70)
 at 
com.hermanmiller.les.servlet.AbstractPrintPickAndPackListsServlet.printPackList
(AbstractPrintPickAndPackListsServlet.java:29)
 at com.hermanmiller.les.servlet.TruckloadOrdersServlet.performTask
(TruckloadOrdersServlet.java:212)
 at com.hermanmiller.les.servlet.ApplicationServlet.performSuperTask
(ApplicationServlet.java:2202)
 at com.hermanmiller.les.servlet.ApplicationServlet.doPost
(ApplicationServlet.java:426)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService
(StrictServletInstance.java:110)
 at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:174)
 at com.ibm.ws.webcontainer.servlet.ServicingServletState.service
(StrictLifecycleServlet.java:333)
 at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:116)
 at com.ibm.ws.webcontainer.servlet.ServletInstance.service
(ServletInstance.java:283)
 at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch
(ValidServletReferenceState.java:42)
 at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch
(ServletInstanceReference.java:40)
 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:1030)
 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:566)
 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:198)
 at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80)
 at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:214)
 at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:71)
 at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke
(CacheableInvocationContext.java:116)
 at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:186)
 at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service
(OSEListener.java:334)
 at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest
(HttpConnection.java:56)
 at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
com.actuate.ereport.eapi.exception.OutputException: Unable to generate Pdf 
output...
 at 
com.hermanmiller.les.command.AbstractNewReportCommand.generatePDFReportFileWithR
etry(AbstractNewReportCommand.java:427)
 at com.hermanmiller.les.command.AbstractNewReportCommand.directPrintUnix
(AbstractNewReportCommand.java:254)
 at com.hermanmiller.les.command.AbstractNewReportCommand.createReport
(AbstractNewReportCommand.java:217)
 at com.hermanmiller.les.command.AbstractNewReportCommand.printReport
(AbstractNewReportCommand.java:135)
 at com.hermanmiller.les.command.AbstractPackListReportCommand.execute
(AbstractPackListReportCommand.java:51)
 at com.hermanmiller.les.command.PrintPackListCommand.execute
(PrintPackListCommand.java:113)
 at 
com.hermanmiller.les.servlet.AbstractPrintPickAndPackListsServlet.printPackList
(AbstractPrintPickAndPackListsServlet.java:70)
 at 
com.hermanmiller.les.servlet.AbstractPrintPickAndPackListsServlet.printPackList
(AbstractPrintPickAndPackListsServlet.java:29)
 at com.hermanmiller.les.servlet.TruckloadOrdersServlet.performTask
(TruckloadOrdersServlet.java:212)
 at com.hermanmiller.les.servlet.ApplicationServlet.performSuperTask
(ApplicationServlet.java:2202)
 at com.hermanmiller.les.servlet.ApplicationServlet.doPost
(ApplicationServlet.java:426)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService
(StrictServletInstance.java:110)
 at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:174)
 at com.ibm.ws.webcontainer.servlet.ServicingServletState.service
(StrictLifecycleServlet.java:333)
 at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:116)
 at com.ibm.ws.webcontainer.servlet.ServletInstance.service
(ServletInstance.java:283)
 at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch
(ValidServletReferenceState.java:42)
 at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch
(ServletInstanceReference.java:40)
 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:1030)
 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:566)
 at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:198)
 at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80)
 at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:214)
 at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:71)
 at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke
(CacheableInvocationContext.java:116)
 at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:186)
 at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service
(OSEListener.java:334)
 at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest
(HttpConnection.java:56)
 at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:615)
 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

 





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to