Hi,
I really don't understand what's wrong with my FillPDF.
It was used to work untill the end of the previous week, but now it's broken !
I use a webform with FillPDF connected to the remote iText servlet, a few days ago it worked, but now when I have submitted my webform I try to access to the PDF, then I'm redirected to the home page with the following error message :
[[o:Exception]:"java.lang.Exception: CreateInstance failed: new com.ocdevel.FillpdfService((o:String)[o:String], (o:String)[o:String]). Cause: com.itextpdf.text.exceptions.InvalidPdfException: PDF header signature not found. VM: 1.6.0_0@http://java.sun.com/" at: #-32 com.itextpdf.text.pdf.PRTokeniser.checkPdfHeader(PRTokeniser.java:205) #-31 com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:487) #-30 com.itextpdf.text.pdf.PdfReader.(PdfReader.java:181) #-29 co[...]m/modules/fillpdf_support/fillpdf_support.module(93): Java->Java('com.ocdevel.Fil...', '', 'bytes') #6 [internal function]: fillpdf_support_merge_pdf('', Array, '98f13708210194c...') #7 /var/www/ocdevel/drupal6/includes/xmlrpcs.inc(212): call_user_func_array('fillpdf_support...', Array) #8 /var/www/ocdevel/drupal6/includes/xmlrpcs.inc(71): xmlrpc_server_call(Object(stdClass), 'merge_pdf', Array) #9 /var/www/ocdevel/drupal6/xmlrpc.php(14): xmlrpc_server(Array) #10 {main}]
Since it refers to Java errors with path that don't exists on my server, I guess this error message comes from the iText server, I wrote them to ask if they were experiencing problems but they didn't respond to me.
Does anyone knows if their server is broken or something ?
I'm under pressure to make it work, and I really need some help please !
Thank you,

Hervé

Comments

lefnire’s picture

I'm running the itext service on my VPS, so you've come to the right place asking me. See #764936: PDF header signature not found (file missing) and make sure that your PDF file that you uploaded last week still exists in /files/filpdf (it was a terrible bug that deletes uploaded PDFs, but as long as you can scp/ftp the original back into that directory you're ok).

Hervé Saladin’s picture

Damn, you're right !!!
My PDF file was missing, hopefully I had a backup, I restored it and now it works ...
That was so simple to fix, I can't believe I wasted almost three days trying to track the bug, then to (unsuccessfully) deploy the servlet !
Thank you lenfire, it was making me crazy ... now I feel stupid for that waste of time, but at least it works :)
Thank you again, and sorry for not having found myself the message you mentionned (I looked in the "issues" but didn't realised that one could be the same as mine).

lefnire’s picture

Status: Active » Fixed

No way, I should be the one apologizing -- I didn't have an error-check on "file still exists" (in -dev now), leaving you to fend for yourself :( Anyway, glad you got it working.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.