[jira] [Commented] (FOP-3043) NPE
[ https://issues.apache.org/jira/browse/FOP-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17464742#comment-17464742 ] Gianluca Lenti commented on FOP-3043: - It seems that a FopFactory per thread/request is not enough. You can't share configuration. > 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)
[jira] [Commented] (FOP-3043) NPE
[ https://issues.apache.org/jira/browse/FOP-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17464698#comment-17464698 ] Gianluca Lenti commented on FOP-3043: - Thanks for the quick response, reading info around, it seemed to me that FopFactory should be threadsafe and FOUserAgent is not. So we tried to optimize performance using a single FopFactory . We'll go to fix this in our code > 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)
[jira] [Commented] (FOP-3043) NPE
[ https://issues.apache.org/jira/browse/FOP-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)
[jira] [Commented] (FOP-3043) NPE
[ https://issues.apache.org/jira/browse/FOP-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17464586#comment-17464586 ] Gianluca Lenti commented on FOP-3043: - I have attached as much as possible to reproduce the issue > 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)
[jira] [Commented] (FOP-3043) NPE
[ https://issues.apache.org/jira/browse/FOP-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17464169#comment-17464169 ] J Frank commented on FOP-3043: -- minimal project with one endpoint( failing endpoint) without any sensitive data, along with config, fo files or required files will be helpful to recreate the issue. > 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: FOP.java, NPE.txt, fop.xconf, pom.xml > > > In a Spring Boot application, we get a lot of NPE, with only four REST > clients asking to produce pdf continuosly. -- This message was sent by Atlassian Jira (v8.20.1#820001)