コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Servlet is cross referencing variable values to generate Filled PDF

Avatar

Level 4

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

1 受け入れられたソリューション

Avatar

正解者
Level 4

Hi

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

元の投稿で解決策を見る

2 返信

Avatar

Employee

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

Avatar

正解者
Level 4

Hi

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