Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Configuration issue custom database storage for adaptive form drafts and submissions

Abhilash1289
Level 2
Level 2

@Mayank_Gandhi  

I am working on customizing drafts and submission component to save data in SQL Server. I followed the steps given in below community article and kept 

FormsPortalSampleDataServiceImpl,FormsPortalSampleMetadataServiceImpl implementation in my project code base and updated Portal drafts and submissions services Osgi configuration to look up these implementation classes to when saving the form.  

https://docs.adobe.com/content/help/en/experience-manager-65/forms/publish-process-aem-forms/configu...

 

After configuring everything save event on my form is always throwing an error and and below is the part of stack trace I am seeing in error.log.  The save event is not calling the implementation in my project code base and its always looking for remote server implementation class (DraftMetadataServiceRemoteImpl) . Customizing the storage is crucial feature in my project and any suggestions to fix this issue would be really helpful.

 

com.adobe.fd.fp.exception.FormsPortalException: ALC-FMP-001-037: Unable to get property attachmentList in draft with id JRLMCE2AXNMUSQOQSQBFI4MJ6A_af
at com.adobe.fd.fpaddon.service.impl.DraftMetadataServiceRemoteImpl.getProperty(DraftMetadataServiceRemoteImpl.java:223) [com.adobe.aem.formsportal-addon-bundle:8.0.54]
at com.adobe.fd.fp.servlets.FormsPortalDraftsandSubmissionServlet.saveDraft(FormsPortalDraftsandSubmissionServlet.java:415) [com.adobe.livecycle.formsportal-bundle:8.0.54]
at com.adobe.fd.fp.servlets.FormsPortalDraftsandSubmissionServlet.postRequestHandler(FormsPortalDraftsandSubmissionServlet.java:194) [com.adobe.livecycle.formsportal-bundle:8.0.54]

 

Caused by: java.lang.IllegalArgumentException: Username may not be null
at org.apache.commons.httpclient.UsernamePasswordCredentials.<init>(UsernamePasswordCredentials.java:90) [com.day.commons.osgi.wrapper.commons-httpclient:3.1.0.018]
at com.adobe.fd.fpaddon.util.FPRemoteOperations.getHttpClient(FPRemoteOperations.java:71) [com.adobe.aem.formsportal-addon-bundle:8.0.54]
at com.adobe.fd.fpaddon.util.FPRemoteOperations.getJsonString(FPRemoteOperations.java:174) [com.adobe.aem.formsportal-addon-bundle:8.0.54]
at com.adobe.fd.fpaddon.service.impl.DraftMetadataServiceRemoteImpl.getProperty(DraftMetadataServiceRemoteImpl.java:207) [com.adobe.aem.formsportal-addon-bundle:8.0.54]
... 140 common frames omitted

AEM Forms
1 Accepted Solution
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

can you check your implementation vs the sample code published here https://docs.adobe.com/content/help/en/experience-manager-65/forms/publish-process-aem-forms/integra...

 

Or, you can use the source of the sample from https://docs.adobe.com/content/help/en/experience-manager-65/forms/publish-process-aem-forms/assets/... and override the existing implementation and see if that's working. 

View solution in original post

1 Reply
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

can you check your implementation vs the sample code published here https://docs.adobe.com/content/help/en/experience-manager-65/forms/publish-process-aem-forms/integra...

 

Or, you can use the source of the sample from https://docs.adobe.com/content/help/en/experience-manager-65/forms/publish-process-aem-forms/assets/... and override the existing implementation and see if that's working. 

View solution in original post