Skip to main content
manu-gupta
Level 4
October 27, 2021
해결됨

Servlet is cross referencing variable values to generate Filled PDF

  • October 27, 2021
  • 2 답변들
  • 726 조회

Hi Folks

we have created a Maven Project to define a Servlet, which is calling FormService.importData method to prefill a PDF with AEMFD Data Document.

 

Issue is when multiple requests are sent and any time when 1 request is yet to complete and in concurrent another request is received by Servlet then AEMFD Data Document of Request 1 is overwritten by Request 2 and we are getting 2 PDFs with same data prefilled. 

This is causing lot of issues to customers who are being exposed to another customer data.

 

We are using SlingAllMethodsServlet extended in Servlet and no internal methods are static.

 

 

Any guidance

 

Manu

이 주제는 답변이 닫혔습니다.
최고의 답변: manu-gupta

Hi

Issue is fixed, it was scope issue with variables and now working.

2 답변

Mayank_Tiwari
Adobe Employee
Adobe Employee
October 27, 2021

@manu-gupta Are you getting any errors in the AEM error.log when the issue happens? What is the version of AEM and the Service pack you have applied?

manu-gupta
manu-gupta작성자답변
Level 4
October 27, 2021

Hi

Issue is fixed, it was scope issue with variables and now working.