That's probably a currupt PDF. You can send me the PDF for inspection.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Nalluri, Nageswara (ELS)
> Sent: Thursday, September 22, 2005 2:07 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Error while reading bad PDF
> 
> Hi,
> 
>  
> 
> In our application we are generating individual PDF's and we 
> are combining all individuals to single, while combining all 
> individuals it is trying to read all the objects in the PDF 
> dictionary. If the any of one of the individual PDF is 
> corrupted or bad we are getting exception in our application. 
> We got following exception in our logs. Is there any fix in 
> the new release?  Please suggest us on this.
> 
>  
> 
> If we see in the exception we are getting an out of bounds 
> array exception. We are feel this exception was generated by 
> iText software
> 
>  
> 
> Please suggest us on this
> 
>  
> 
> [9/20/05 13:38:27:621 BST]  16239d4 ExceptionUtil E 
> CNTR0020E: Non-application exception occurred while 
> processing method "haveAllPDFsBeenCreated" on bean 
> "BeanId(JEST#JESTAssetSubmissionBusiness.jar#AssetSubmission, 
> null)". Exception data: java.lang.ArrayIndexOutOfBoundsException: -1
> 
>       at com.lowagie.text.pdf.PdfReader.readPRObject(Unknown Source)
> 
>       at com.lowagie.text.pdf.PdfReader.readDictionary(Unknown Source)
> 
>       at com.lowagie.text.pdf.PdfReader.readPRObject(Unknown Source)
> 
>       at com.lowagie.text.pdf.PdfReader.readDictionary(Unknown Source)
> 
>       at com.lowagie.text.pdf.PdfReader.readPRObject(Unknown Source)
> 
>       at com.lowagie.text.pdf.PdfReader.readDictionary(Unknown Source)
> 
>       at com.lowagie.text.pdf.PdfReader.readPRObject(Unknown Source)
> 
>       at com.lowagie.text.pdf.PdfReader.readDocObj(Unknown Source)
> 
>       at com.lowagie.text.pdf.PdfReader.readPdf(Unknown Source)
> 
>       at com.lowagie.text.pdf.PdfReader.<init>(Unknown Source)
> 
>       at com.lowagie.text.pdf.PdfReader.<init>(Unknown Source)
> 
>       at 
> com.elsevier.jest.common.utilities.PDFUtilities.appendFiles(PD
> FUtilities.java:200)
> 
>       at 
> com.elsevier.jest.common.utilities.PDFUtilities.concatenatePDF
> sNonLatex(PDFUtilities.java:77)
> 
>       at 
> com.elsevier.jest.common.utilities.PDFUtilities.concatenatePDF
> s(PDFUtilities.java:56)
> 
>       at 
> com.elsevier.jest.assetsubmission.business.agent.AssetSubmissi
> onAgent.createConcatenatedPDFAssetContent(AssetSubmissionAgent
> .java:1322)
> 
>       at 
> com.elsevier.jest.assetsubmission.business.agent.AssetSubmissi
> onAgent.haveAllPDFsBeenCreated(AssetSubmissionAgent.java:1870)
> 
>       at 
> com.elsevier.jest.assetsubmission.business.facade.AssetSubmiss
> ionBean.haveAllPDFsBeenCreated(AssetSubmissionBean.java:515)
> 
>       at 
> com.elsevier.jest.assetsubmission.business.facade.EJSRemoteSta
> telessAssetSubmission_46d97dc7.haveAllPDFsBeenCreated(Unknown Source)
> 
>       at 
> com.elsevier.jest.assetsubmission.business.facade._AssetSubmis
sion_Stub.haveAllPDFsBeenCreated(_AssetSubmission_Stub.java:1657)
> 
>       at 
> com.elsevier.jest.assetsubmission.business.command.HaveAllPDFs
> BeenCreatedCommand.performExecute(HaveAllPDFsBeenCreatedComman
> d.java:32)
> 
>       at 
> com.elsevier.jest.framework.command.CommandDefaultImpl.execute
> (CommandDefaultImpl.java:28)
> 
>       at 
> com.elsevier.jest.web.author.submission.approvepdf.ApproveOrWa
> itAction.performExecute(ApproveOrWaitAction.java:107)
> 
>       at 
> com.elsevier.jest.web.IdentificationVerifiedAction.prePerformE
> xecute(IdentificationVerifiedAction.java:56)
> 
>       at 
> com.elsevier.jest.framework.web.BaseAction.execute(BaseAction.java:30)
> 
>       at 
> org.apache.struts.action.RequestProcessor.processActionPerform
> (RequestProcessor.java:484)
> 
>       at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:274)
> 
>       at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1482)
> 
>       at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 
>       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.doServic
> e(StrictServletInstance.java:110)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._servic
e(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(Servle
> tInstance.java:283)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dis
> patch(ValidServletReferenceState.java:42)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispa
> tch(ServletInstanceReference.java:40)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleW
> ebAppDispatch(WebAppRequestDispatcher.java:983)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatc
> h(WebAppRequestDispatcher.java:564)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
> (WebAppRequestDispatcher.java:200)
> 
>       at 
> org.apache.struts.action.RequestProcessor.doForward(RequestPro
> cessor.java:1069)
> 
>       at 
> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesR
> equestProcessor.java:274)
> 
>       at 
> org.apache.struts.action.RequestProcessor.processForwardConfig
> (RequestProcessor.java:455)
> 
>       at 
> org.apache.struts.tiles.TilesRequestProcessor.processForwardCo
> nfig(TilesRequestProcessor.java:320)
> 
>       at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:279)
> 
>       at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1482)
> 
>       at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 
>       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.doServic
> e(StrictServletInstance.java:110)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._servic
e(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(Servle
> tInstance.java:283)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dis
> patch(ValidServletReferenceState.java:42)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispa
> tch(ServletInstanceReference.java:40)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleW
> ebAppDispatch(WebAppRequestDispatcher.java:983)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatc
> h(WebAppRequestDispatcher.java:564)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
> (WebAppRequestDispatcher.java:200)
> 
>       at 
> org.apache.struts.action.RequestProcessor.doForward(RequestPro
> cessor.java:1069)
> 
>       at 
> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesR
> equestProcessor.java:274)
> 
>       at 
> org.apache.struts.action.RequestProcessor.processForwardConfig
> (RequestProcessor.java:455)
> 
>       at 
> org.apache.struts.tiles.TilesRequestProcessor.processForwardCo
> nfig(TilesRequestProcessor.java:320)
> 
>       at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:279)
> 
>       at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1482)
> 
>       at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 
>       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.doServic
> e(StrictServletInstance.java:110)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._servic
e(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(Servle
> tInstance.java:283)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dis
> patch(ValidServletReferenceState.java:42)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispa
> tch(ServletInstanceReference.java:40)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleW
> ebAppDispatch(WebAppRequestDispatcher.java:983)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatc
> h(WebAppRequestDispatcher.java:564)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
> (WebAppRequestDispatcher.java:200)
> 
>       at 
> org.apache.struts.action.RequestProcessor.doForward(RequestPro
> cessor.java:1069)
> 
>       at 
> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesR
> equestProcessor.java:274)
> 
>       at 
> org.apache.struts.action.RequestProcessor.processForwardConfig
> (RequestProcessor.java:455)
> 
>       at 
> org.apache.struts.tiles.TilesRequestProcessor.processForwardCo
> nfig(TilesRequestProcessor.java:320)
> 
>       at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:279)
> 
>       at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1482)
> 
>       at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 
>       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.doServic
> e(StrictServletInstance.java:110)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._servic
e(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(Servle
> tInstance.java:283)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dis
> patch(ValidServletReferenceState.java:42)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispa
> tch(ServletInstanceReference.java:40)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleW
> ebAppDispatch(WebAppRequestDispatcher.java:983)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatc
> h(WebAppRequestDispatcher.java:564)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
> (WebAppRequestDispatcher.java:200)
> 
>       at 
> org.apache.struts.action.RequestProcessor.doForward(RequestPro
> cessor.java:1069)
> 
>       at 
> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesR
> equestProcessor.java:274)
> 
>       at 
> org.apache.struts.action.RequestProcessor.internalModuleRelati
> veForward(RequestProcessor.java:1012)
> 
>       at 
> org.apache.struts.tiles.TilesRequestProcessor.internalModuleRe
> lativeForward(TilesRequestProcessor.java:345)
> 
>       at 
> org.apache.struts.action.RequestProcessor.processForward(Reque
> stProcessor.java:582)
> 
>       at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:260)
> 
>       at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1482)
> 
>       at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 
>       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.doServic
> e(StrictServletInstance.java:110)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._servic
e(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(Servle
> tInstance.java:283)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dis
> patch(ValidServletReferenceState.java:42)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispa
> tch(ServletInstanceReference.java:40)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleW
> ebAppDispatch(WebAppRequestDispatcher.java:983)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatc
> h(WebAppRequestDispatcher.java:564)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
> (WebAppRequestDispatcher.java:200)
> 
>       at 
> org.apache.struts.action.RequestProcessor.doForward(RequestPro
> cessor.java:1069)
> 
>       at 
> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesR
> equestProcessor.java:274)
> 
>       at 
> org.apache.struts.action.RequestProcessor.processForwardConfig
> (RequestProcessor.java:455)
> 
>       at 
> org.apache.struts.tiles.TilesRequestProcessor.processForwardCo
> nfig(TilesRequestProcessor.java:320)
> 
>       at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:279)
> 
>       at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1482)
> 
>       at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 
>       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.doServic
> e(StrictServletInstance.java:110)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._servic
e(StrictLifecycleServlet.java:174)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.IdleServletState.service(Stric
> tLifecycleServlet.java:313)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service
> (StrictLifecycleServlet.java:116)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ServletInstance.service(Servle
> tInstance.java:283)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dis
> patch(ValidServletReferenceState.java:42)
> 
>       at 
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispa
> tch(ServletInstanceReference.java:40)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleW
> ebAppDispatch(WebAppRequestDispatcher.java:983)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatc
> h(WebAppRequestDispatcher.java:564)
> 
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
> (WebAppRequestDispatcher.java:200)
> 
>       at 
> com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvo
> ker.java:119)
> 
>       at 
> com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook
> (WebAppInvoker.java:276)
> 
>       at 
> com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.hand
> leInvocation(CachedInvocation.java:71)
> 
>       at 
> com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationCo
> ntext.invoke(CacheableInvocationContext.java:116)
> 
>       at 
> com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchBy
> URI(ServletRequestProcessor.java:186)
> 
>       at 
> com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.serv
> ice(OSEListener.java:334)
> 
>       at 
> com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Http
> Connection.java:56)
> 
>       at 
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnec
> tion.java:618)
> 
>       at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
> 
>       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
> 
>  
> 
>  
> 
> Regards,
> 
> Nagesh
> 
>  
> 
>  
> 
>  
> 
> 


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to