« Return to Thread: FDF header signature not found

Re: FDF header signature not found

by mkl :: Rate this Message:

Reply to Author | View in Thread

Hubert,

Hubert Felber wrote:
With submitting PDF forms from a web browser, I sporadically have the following error:

Caused by: java.io.IOException: FDF header signature not found.

[...]

It is difficult to reproduce, sometime (most time) it works, but sometimes it fails. In the browser, the form looks fine, the fields can be edited. Something must happen on the post.  If it fails, I can press the back button and submit again —--- and then it works.
 
[...]
 
        try {
            wf.submitPDFForm(wfId, sid, baos.toByteArray());
           ....
Have you considered dumping baos.toByteArray() to an unique file whenever that exception occurs and inspect what actually has been submitted to your web application?

Regards,   Michael.

 « Return to Thread: FDF header signature not found