[ 
https://issues.apache.org/jira/browse/PDFBOX-5214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17370205#comment-17370205
 ] 

Andreas Lehmkühler commented on PDFBOX-5214:
--------------------------------------------

I ran into some other strange things and I'm not sure if those are maybe 
somehow connected. {{PDAcroFormFlattenTest}} fails in about 3 times out of 4 
whenever I run it separately within eclipse. If I run the test using {{mvn 
test}} everything is fine. It looks like it is an concurrency issue. If I 
switch from {{@Execution(ExecutionMode.CONCURRENT)}} to 
{{@Execution(ExecutionMode.SAME_THREAD)}} everything is fine. I dug deeper into 
it and it seems related to the logging. If I remove the logging from 
{{TestPDFToImage}} everything works fine even independent of the execution 
mode. I've no idea how the logging can interfere with the generation of the 
pdfs but it is somehow connected.
The same happens with {{TestCreateSignature}} but it fails not that often.

> File generated differently depending on test call
> -------------------------------------------------
>
>                 Key: PDFBOX-5214
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5214
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Tilman Hausherr
>            Priority: Major
>             Fix For: 3.0.0 PDFBox
>
>         Attachments: EmptySignatureForm_FullPackageTest.pdf, 
> EmptySignatureForm_SingleClassTest.pdf
>
>
> Something weird is happening in {{TestCreateSignature.testPDFBox3978}}. The 
> file {{EmptySignatureForm.pdf}} that is generated has different object 
> streams depending on whether it is generated within a full test of the 
> examples package, or if the {{TestCreateSignature}} class is tested. The two 
> files should be identical except for the ID.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to