Hi,
we are using iText V2.1.7.PDF generations is working fine after
deployment.But sometimes randomly we are getting below exception when we
try to generate PDF:
*Stack Trace* java.lang.IllegalAccessError:
com/lowagie/text/pdf/PdfIndirectReference.(II)V at
com.lowagie.text.pdf.PdfWriter$PdfBody.getPdfIndirectReference(Unknown
Source) at com.lowagie.text.pdf.PdfWriter.getPdfIndirectReference(Unknown
Source) at com.lowagie.text.pdf.PdfTemplate.(Unknown Source) at
com.lowagie.text.pdf.PdfContentByte.createTemplate(Unknown Source) at
com.lowagie.text.pdf.PdfContentByte.createTemplate(Unknown Source) at
com.aramark.cps.recipe.binder.PDFRecipeBinder.onEndPage(PDFRecipeBinder.java:495)
at com.lowagie.text.pdf.PdfDocument.newPage(Unknown Source) at
com.lowagie.text.pdf.PdfDocument.close(Unknown Source) at
com.lowagie.text.Document.close(Unknown Source) at
com.aramark.cps.recipe.binder.PDFRecipeBinder.bindRecipes(PDFRecipeBinder.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618) at
com.bowstreet.webapp.engine.actions.MethodAction.callAction(MethodAction.java:90)
at
com.bowstreet.webapp.engine.WebAppAccessImpl.callMethod(WebAppAccessImpl.java:405)
at
genjava.cps.recipebinder._RecipeBinderPortlet.prntFacilityBndrAL(_RecipeBinderPortlet.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618) at
com.bowstreet.webapp.engine.actions.MethodAction.callAction(MethodAction.java:90)
at
com.bowstreet.webapp.engine.WebAppAccessImpl.callMethod(WebAppAccessImpl.java:405)
at
com.bowstreet.webapp.engine.WebAppAccessImpl.processAction(WebAppAccessImpl.java:1063)
at
com.bowstreet.webapp.engine.WebAppAccessImpl.processAction(WebAppAccessImpl.java:1163)
at
genjava.cps.recipebinder._RecipeBinderPortlet.printSelectedAL(_RecipeBinderPortlet.java:16782)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618) at
com.bowstreet.webapp.engine.actions.MethodAction.callAction(MethodAction.java:90)
at
com.bowstreet.webapp.engine.WebAppAccessImpl.callMethod(WebAppAccessImpl.java:405)
at
com.bowstreet.webapp.engine.WebAppAccessImpl.processAction(WebAppAccessImpl.java:1063)
at
com.bowstreet.webapp.engine.WebAppAccessImpl.processAction(WebAppAccessImpl.java:1163)
at
com.bowstreet.webapp.engine.WebAppRequestRunner.doRequest(WebAppRequestRunner.java:364)
at
com.bowstreet.webapp.engine.WebAppRunner.doActualRequest(WebAppRunner.java:923)
at
com.bowstreet.webapp.engine.WebAppRunner.doRequest(WebAppRunner.java:535)
at
com.bowstreet.webapp.engine.WebAppRunner.doRequest(WebAppRunner.java:300)
at
com.bowstreet.webapp.engine.WebAppRunner.doRequest(WebAppRunner.java:237)
at
com.bowstreet.webapp.util.StandaloneURLMapper.doRequest(StandaloneURLMapper.java:149)
at com.bowstreet.servlet.AjaxServlet.doRequest(AjaxServlet.java:53) at
com.bowstreet.servlet.AjaxServlet.doPost(AjaxServlet.java:39) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1154)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:848)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:691)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:654)
at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3574) at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269) at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at
com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196) at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881) at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
*Any guess on what's the problem or anyone has come across this type of
exception Please reply me.*
Thanks in Advance.
Regards
Prashanth.
--
If at first you don't succeed, call it version 1.0
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php