[ 
https://issues.apache.org/jira/browse/PDFBOX-5259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr closed PDFBOX-5259.
-----------------------------------
    Resolution: Cannot Reproduce

closing, no further feedback. You can still comment and/or reopen.

> Process hangs with PdfBox 2.0.24
> --------------------------------
>
>                 Key: PDFBOX-5259
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5259
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.24
>         Environment: openjdk 11.0.11 2021-04-20
> OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04)
> OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, 
> sharing)
>            Reporter: Jordan Daigle
>            Priority: Major
>         Attachments: jstack.out
>
>
> I have a java process that got stuck randomly while setting values into a pdf 
> form with PDFBOX 2.0.24
> the "strace" command return :
> {code:java}
> root@appname:/tmp# strace -p 26734
> strace: Process 26734 attached
> futex(0x7f97791589d0, FUTEX_WAIT, 26735, NULL 
> root@appname:/tmp# strace -p 26735
> strace: Process 26735 attached
> write(2, "Aug 13, 2021 11:12:13 AM org.apa"..., 232{code}
> I added the jstack output of the process in the jstack.out attachment
>  Seem to happen completely randomly.
> I don't have any issue if I rerun manually the same command.
> java.lang.Thread.State: RUNNABLE at 
> java.io.FileOutputStream.writeBytes([email protected]/Native Method) at 
> java.io.FileOutputStream.write([email protected]/FileOutputStream.java:354) 
> at 
> java.io.BufferedOutputStream.write([email protected]/BufferedOutputStream.java:123)
>  - locked <0x00000000c246e910> (a java.io.BufferedOutputStream) at 
> java.io.PrintStream.write([email protected]/PrintStream.java:559) - locked 
> <0x00000000c246e8e8> (a java.io.PrintStream) at 
> sun.nio.cs.StreamEncoder.writeBytes([email protected]/StreamEncoder.java:233) 
> at 
> sun.nio.cs.StreamEncoder.implFlushBuffer([email protected]/StreamEncoder.java:312)
>  at 
> sun.nio.cs.StreamEncoder.implFlush([email protected]/StreamEncoder.java:316) 
> at sun.nio.cs.StreamEncoder.flush([email protected]/StreamEncoder.java:153) - 
> locked <0x00000000c363d1c8> (a java.io.OutputStreamWriter) at 
> java.io.OutputStreamWriter.flush([email protected]/OutputStreamWriter.java:251)
>  at 
> java.util.logging.StreamHandler.flush([email protected]/StreamHandler.java:247)
>  - locked <0x00000000c363d178> (a java.util.logging.ConsoleHandler) at 
> java.util.logging.ConsoleHandler.publish([email protected]/ConsoleHandler.java:96)
>  at java.util.logging.Logger.log([email protected]/Logger.java:979) at 
> java.util.logging.Logger.doLog([email protected]/Logger.java:1006) at 
> java.util.logging.Logger.logp([email protected]/Logger.java:1172) at 
> org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:87) at 
> org.apache.commons.logging.impl.Jdk14Logger.info(Jdk14Logger.java:176) at 
> org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.getFormattedValue(AppearanceGeneratorHelper.java:255)
>  at 
> org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceValue(AppearanceGeneratorHelper.java:172)
>  at 
> org.apache.pdfbox.pdmodel.interactive.form.PDTextField.constructAppearances(PDTextField.java:264)
>  at 
> org.apache.pdfbox.pdmodel.interactive.form.PDTerminalField.applyChange(PDTerminalField.java:228)
>  at 
> org.apache.pdfbox.pdmodel.interactive.form.PDTextField.setValue(PDTextField.java:219)
>  at pdf.XFDFMerger.trySetValue(XFDFMerger.java:396) at 
> pdf.XFDFMerger.importFDFField(XFDFMerger.java:219) at 
> pdf.XFDFMerger.importFDFDocument(XFDFMerger.java:187) at 
> pdf.XFDFMerger.mergeFields(XFDFMerger.java:107) at 
> pdf.XFDFMerger.mergeXFDF(XFDFMerger.java:59) at 
> commands.MergeXFDFCommand.run(MergeXFDFCommand.java:33) at 
> picocli.CommandLine.executeUserObject(CommandLine.java:1919) at 
> picocli.CommandLine.access$1100(CommandLine.java:145) at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
>  at picocli.CommandLine$RunLast.handle(CommandLine.java:2326) at 
> picocli.CommandLine$RunLast.handle(CommandLine.java:2291) at 
> picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:2152)
>  at picocli.CommandLine.parseWithHandlers(CommandLine.java:2530) at 
> picocli.CommandLine.run(CommandLine.java:2988) at 
> picocli.CommandLine.run(CommandLine.java:2925) at pdfbox.main(pdfbox.java:15)



--
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