Servlet is cross referencing variable values to generate Filled PDF | Community
Skip to main content
manu-gupta
New Participant
October 27, 2021
Solved

Servlet is cross referencing variable values to generate Filled PDF

  • October 27, 2021
  • 2 replies
  • 703 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by manu-gupta

Hi

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

2 replies

manu-gupta
manu-guptaAuthorAccepted solution
New Participant
October 27, 2021

Hi

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

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