


Hey folks,
I am facing an issue in one of the environment, my AAF form is throwing 500 in publish instance when I add rules to the field and publish it.
here is the logs
com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl Could not emit JSON with context
java.lang.NullPointerException: null
at com.adobe.aem.dermis.core.service.slingmodel.FormDataModelManager.getAllRules(FormDataModelManager.java:1035) [aem-dermis-core:3.0.128]
at com.adobe.aem.dermis.core.service.slingmodel.FormDataModelManager.getRules(FormDataModelManager.java:1063) [aem-dermis-core:3.0.128]
at com.adobe.aemds.guide.addon.service.impl.FormDataModelServiceImpl.getFDMEntityRule(FormDataModelServiceImpl.java:161) [com.adobe.aemds.guide.aemds-guide-addon-impl:6.0.198]
at com.adobe.aemds.guide.internal.impl.utils.RulesCompiler.mergeFDMRulesWithAFRules(RulesCompiler.java:107) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.198]
at com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl.create(JsonObjectCreatorImpl.java:581) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.198]
at
Views
Replies
Sign in to like this content
Total Likes
As per the logs shared, seems that you're using dataIntegrationUtils API to prefill this field (?). Could you please elaborate on the use case?
com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl Could not emit JSON with context
java.lang.NullPointerException: null
....
at com.adobe.aemds.guide.internal.impl.utils.RulesCompiler.mergeFDMRulesWithAFRules(RulesCompiler.java:107) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.198]
Please be informed that for adaptive forms using FDM schema, you need to use the prefill JSON compliant with the FDM schema. More details here.
Hey Jain,
Thats right, I am using FDM and mapped the fields with the data model(swagger json), but the issue is that when I add the Rule to a field, something like showing a Lastname field when Firstname field is filled in.
Views
Replies
Sign in to like this content
Total Likes
Please make sure that the JSON schema is correct. I think this is an issue with JSON format so you can validate the swagger in swagger.io for a valid definition there.
For a quick test, I just created a data source based on RESTful service (using Petstore swagger- https://petstore.swagger.io/ ) on my in-house latest 6.5 set-up and able to populate FirstName/LastName in Adaptive form using GET /user service. You may quickly test this one at your end.
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes
Hey Jain,
Still same issue persist, As I said the issue comes with adding the RULES.
Views
Replies
Sign in to like this content
Total Likes
@kamalakannank62 have you published the fdm?