• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iText: java.io.IOException when using PdfStamper

 
Maduka Jayawardana
Greenhorn
Posts: 1
Hibernate Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a program for generating a pdf. When I try to add a bookmark to existing pdf using a map I got an error. I set the Max heap to 1024mb but it didn’t work.

this is my code





this is the error.




How to solve this problem?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

I set the Max heap to 1024mb but it didn’t work.

I don't see anything about the error message that indicates memory problem, so I wouldn't have expected this to make a difference.

at com.km.coreirm.client.reportNew.ReportFunctionFrm.getVisualCertificate(ReportFunctionFrm.java:2614).

There's a class with more than 2600 lines of code? It seems some serious refactoring is in order.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming that you didn't post the entire stack trace, you may be running into this. Try the advice from Paulo Soares.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic