If you Google "SIGBUS (0x7) at pc" you'll find that other folks are also
running into similar problems with this rev of the JVM running on Linux. 

---mr. bean

>>> re >>>


Maurizio Marra wrote:
> 
> Hi,
> 
> I'm using iText (version 2.0.1) with Tomcat 6 to add a timestamp to the
> first page of uploaded pdf file.
> Today the jvm crushed.
> 
> Here is a part of the error report:
> 
> #
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> #  SIGBUS (0x7) at pc=0xb373fba9, pid=13444, tid=1693485984
> #
> # Java VM: Java HotSpot(TM) Server VM (1.5.0_12-b04 mixed mode)
> # Problematic frame:
> # J  com.lowagie.text.pdf.RandomAccessFileOrArray.read()I
> #
> 
> Here is my code:
> 
> PdfReader reader= new PdfReader(new
> RandomAccessFileOrArray(srcFile),null);
> PdfStamper stamp= new PdfStamper(reader,new FileOutputStream(targetFile));
> 
> BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.WINANSI,
> BaseFont.NOT_EMBEDDED);
> 
> PdfContentByte over = stamp.getOverContent(1);
> over.beginText();
> over.setFontAndSize(bf, 30);
> over.setColorFill(new Color(0,0,255));
> over.showTextAligned(Element.ALIGN_LEFT, theTime, 100, 200, 90);
> over.endText();
> 
> After the crush, I've tested again with the same file and everything was
> correct.
> 
> Thank you in advance
> 
> Maurizio
> 
> 
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jvm-crush-tf4641597.html#a13259686
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to