Apply Reader Extension on Interactive Document | Community
Skip to main content
Level 2
January 18, 2021
Solved

Apply Reader Extension on Interactive Document

  • January 18, 2021
  • 18 replies
  • 4262 views

While using reader extension service in Adaptive form, i have set up keystore already and wrote java code to apply usage write but getting exception like below:

com.adobe.fd.docassurance.client.api.impl.DocAssuranceServiceImpl Exception while applying usage rights in DocAssuranceService
com.adobe.fd.readerextensions.client.ProcessingException: AEM-REX-001-008: Unable to apply the requested usage rights to the given document.
at com.adobe.fd.readerextensions.service.impl.ReaderExtensionsServiceImpl.applyUsageRights(ReaderExtensionsServiceImpl.java:215) [com.adobe.aemfd.adobe-aemfd-readerextensions:6.0.26]
at com.adobe.fd.docassurance.client.api.impl.DocAssuranceServiceImpl.addReaderExtensions(DocAssuranceServiceImpl.java:887) [adobe-aemfd-docassurance:6.0.50]
at com.adobe.fd.docassurance.client.api.impl.DocAssuranceServiceImpl.secureDocument(DocAssuranceServiceImpl.java:242) [adobe-aemfd-docassurance:6.0.50]

 

Can anyone help what may be missing here.

 

Thanks and regards,

Ashish Saxena

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 Mayank_Gandhi

@sashish That should not make difference ideally. Make sure you are using a supported version of Linux.

18 replies

Level 8
January 18, 2021

I think you need to add the certificate to forms and document service user

 

 

sashishAuthor
Level 2
January 18, 2021
Hi Girish,I Already add certificate to document service user(fd-service) and setup keystore .
Level 8
January 18, 2021
Level 8
January 18, 2021

Is it happening to all the documents?

sashishAuthor
Level 2
January 18, 2021
I tried for interactive document generated through formsService.renderPDFForm
Mayank_Gandhi
Adobe Employee
Adobe Employee
January 19, 2021

@sashish  I assume it's an OSGi instance? Hope you have added bouncy castle in sling properties.

Level 8
January 19, 2021

Are all the bundles in active state

sashishAuthor
Level 2
January 19, 2021

@mayank_gandhi Hi Mayank, Its an osgi instance and i have already added bouncy castle.

I see this might be the issue:

com.adobe.fd.readerextensions.service.impl.ReaderExtensionsServiceImpl AEM-REX-001-008: Unable to apply the requested usage rights to the given document.
com.adobe.granite.keystore.KeyStoreNotInitialisedException: Uninitialised key store for user data

 

How to initialized key store.

 

 

Mayank_Gandhi
Adobe Employee
Adobe Employee
January 19, 2021
@sashish try adding the pfx at admin user level
sashishAuthor
Level 2
January 19, 2021

@girishbedekar Hi Girish

Yes all bundles are in active state. 

sashishAuthor
Level 2
January 19, 2021

Hi @mayank_gandhi ,

 

I am doing this in local author so using admin cred only.

Level 8
January 19, 2021
sashishAuthor
Level 2
January 19, 2021

hi @girishbedekar ,

 

Trust store setup is also needed here?

Level 8
January 19, 2021
Yes