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

Simon Steiner commented on FOP-3043:
------------------------------------

You need to have 1 fopfactory per thread

> NPE
> ---
>
>                 Key: FOP-3043
>                 URL: https://issues.apache.org/jira/browse/FOP-3043
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: 2.6
>            Reporter: Gianluca Lenti
>            Priority: Blocker
>         Attachments: 20sm2019render_fop.xml, 20sm2019render_fop.xsl, NPE.txt, 
> pommsa-render-testfop.zip
>
>
> In a Spring Boot application,  we get a lot of NPE, with only four REST 
> clients asking to produce pdf continuosly. In attachment example spring boot 
> app, stacktrace and input files (issue is indipendent from this test files).
> example call to endpoint:
> curl -X POST "http://localhost:8080/pom/render/fopUncompressed"; -H  "accept: 
> application/pdf" -H  "Content-Type: multipart/form-data" -F 
> "xsl=@20sm2019render_fop.xsl;type=text/xml" -F 
> "xml=@20sm2019render_fop.xml;type=text/xml" 
> on windows dev pc, using jmeter, I can reproduce the issue occasionally, last 
> test with 30 concurrent threads producing 3000 pdf files shows only 2 NPE.
> In the openshift production enviroment with less concurrent clients, the 
> issue is disruptive.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to