Hi, Paulo:
I already bumped memory to -Xms32m -Xmx256m -Xss8m. It dosn't seem to help. I actully have another file that is bigger than this one but reads OK. So it should be something else. Can you tell me what teh removeUnusedNode is try to do? Is any way I can change any formats of my file to avoid the problem?
Thanks,
Jean.
Exception in thread "main" java.lang.StackOverflowError
at java.util.ArrayList.get(Unknown Source)
at com.lowagie.text.pdf.PdfReader.getPdfObject(PdfReader.java:732)
at com.lowagie.text.pdf.PdfReader.getPdfObject(PdfReader.java:643)
at com.lowagie.text.pdf.PdfReader.getPdfObjectRelease(PdfReader.java:622)
at com.lowagie.text.pdf.PdfReader.removeUnusedNode(PdfReader.java :2575)
Exception in thread "main" java.lang.StackOverflowError
at java.util.ArrayList.get(Unknown Source)
at com.lowagie.text.pdf.PdfReader.getPdfObject(PdfReader.java:732)
at com.lowagie.text.pdf.PdfReader.getPdfObject(PdfReader.java:643)
at com.lowagie.text.pdf.PdfReader.getPdfObjectRelease(PdfReader.java:622)
at com.lowagie.text.pdf.PdfReader.removeUnusedNode(PdfReader.java :2575)
On 10/20/06, Paulo Soares <[EMAIL PROTECTED]> wrote:
Throw more memory at it, there's no other solution.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] ] On
> Behalf Of Tony He
> Sent: Friday, October 20, 2006 2:39 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] out of memory problem with PdfReader
>
> Hi, I got an out of memroy (outofstack) exception when
> creating a new PdfReader(filename).
> The exceptions come from PdfReader.removeUnusedNodes() method.
> My pdf file has hundreds of bookmarks.
>
> Can anybody tell me how to get around this problem?
>
> Thanks,
> Jean
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions