Configuration issue custom database storage for adaptive form drafts and submissions

Abhilash1289 11-01-2020

@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

Mark Solution

Are these answers useful?
Help other community members by marking useful answers as accepted.

Accepted Solutions (0)