Apply Reader Extension on Interactive Document | Community
Skip to main content
Level 2
Jan 18, 2021 5:11 AM UTC
Solved

Apply Reader Extension on Interactive Document

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.
Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
Feb 3, 2021 2:39 PM UTC

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

24 replies

sashishAuthor
Level 2
Jan 19, 2021 4:20 AM UTC

Hi @mayank_gandhi ,

 

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

Translate
sashishAuthor
Level 2
Jan 19, 2021 4:16 AM UTC

@girishbedekar Hi Girish

Yes all bundles are in active state. 

Translate
sashishAuthor
Level 2
Jan 19, 2021 4:15 AM UTC

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

 

 

Translate
Mayank_Gandhi
Employee
Jan 19, 2021 4:18 AM UTC
@sashish try adding the pfx at admin user level
Translate
Level 8
Jan 19, 2021 3:43 AM UTC

Are all the bundles in active state

Translate
Mayank_Gandhi
Employee
Jan 19, 2021 3:41 AM UTC

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

Translate
Level 8
Jan 18, 2021 5:52 AM UTC

Is it happening to all the documents?

Translate
sashishAuthor
Level 2
Jan 18, 2021 6:57 AM UTC
I tried for interactive document generated through formsService.renderPDFForm
Translate
Level 8
Jan 18, 2021 5:37 AM UTC
Level 8
Jan 18, 2021 5:34 AM UTC

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

 

 

Translate
sashishAuthor
Level 2
Jan 18, 2021 5:39 AM UTC
Hi Girish,I Already add certificate to document service user(fd-service) and setup keystore .
Translate