Error in in importing Xfa Json caused while creating adaptive form from xdp template | Community
Skip to main content
Level 4
March 19, 2026
Question

Error in in importing Xfa Json caused while creating adaptive form from xdp template

  • March 19, 2026
  • 1 reply
  • 11 views

hi,

I am trying to create an adaptive form using form template (xdp) (foundation components) on aem 6.5.

The issue is after creating adaptive form using xdp, the data source is not populating 

 

Even though an XDP is referenced in this form, it shows blank and the error.log as following errors:

19.03.2026 13:56:52.576 *ERROR* [10.238.22.152 [1773924978316] GET /content/forms/af/FOFO/adaptive-forms/A123-abc/jcr:content/guideContainer.xfajson HTTP/1.1] com.adobe.aemds.guide.xfa.XFAJSONTransformer Error in transforming xfa json:null
java.lang.NullPointerException: null
19.03.2026 13:56:52.577 *ERROR* [10.238.22.152 [1773924978316] GET /content/forms/af/FOFO/adaptive-forms/A123-abc/jcr:content/guideContainer.xfajson HTTP/1.1] com.adobe.aemds.guide.service.impl.GuideModelImporterImpl Error in importing Xfa Json
com.adobe.aemds.guide.service.GuideException: null
at com.adobe.aemds.guide.xfa.XFAJSONTransformer.transform(XFAJSONTransformer.java:104) [com.adobe.aemds.guide.aemds-guide-core:6.0.688]
at com.adobe.aemds.guide.service.impl.GuideModelImporterImpl.importFromXFA(GuideModelImporterImpl.java:1140) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.688]
at com.adobe.aemds.guide.service.impl.GuideModelImporterImpl.importFromXFA(GuideModelImporterImpl.java:1095) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.688]
at org.apache.jsp.libs.fd.af.components.guideContainer.xfajson__002e__jsp._jspService(xfajson__002e__jsp.java:334)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [org.apache.sling.scripting.jsp:2.6.0]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) [org.apache.felix.http.servlet-api:1.2.0]
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:521) [org.apache.sling.scripting.jsp:2.6.0]
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:464) [org.apache.sling.scripting.jsp:2.6.0]
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.callJsp(JspScriptEngineFactory.java:500) [org.apache.sling.scripting.jsp:2.6.0]
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:582) [org.apache.sling.scripting.jsp:2.6.0]
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:395) [org.apache.sling.scripting.core:2.4.8]
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:191) [org.apache.sling.scripting.core:2.4.8]
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:500) [org.apache.sling.scripting.core:2.4.8]
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:545) [org.apache.sling.engine:2.15.10]
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45) [org.apache.sling.engine:2.15.10]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:88) [org.apache.sling.engine:2.15.10]
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:192) [com.day.cq.wcm.cq-wcm-core:5.12.260]
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) [org.apache.felix.http.jetty:4.2.26]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) [org.apache.felix.http.jetty:4.2.26]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) [org.apache.felix.http.jetty:4.2.26]
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: com.adobe.aemds.guide.service.GuideException: Error in in importing Xfa Json
at com.adobe.aemds.guide.service.impl.GuideModelImporterImpl.importFromXFA(GuideModelImporterImpl.java:1145) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.688]
at com.adobe.aemds.guide.service.impl.GuideModelImporterImpl.importFromXFA(GuideModelImporterImpl.java:1095) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.688]
at org.apache.jsp.libs.fd.af.components.guideContainer.xfajson__002e__jsp._jspService(xfajson__002e__jsp.java:334)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [org.apache.sling.scripting.jsp:2.6.0]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) [org.apache.felix.http.servlet-api:1.2.0]
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:521) [org.apache.sling.scripting.jsp:2.6.0]
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:464) [org.apache.sling.scripting.jsp:2.6.0]
... 156 common frames omitted
Caused by: com.adobe.aemds.guide.service.GuideException: null
at com.adobe.aemds.guide.xfa.XFAJSONTransformer.transform(XFAJSONTransformer.java:104) [com.adobe.aemds.guide.aemds-guide-core:6.0.688]
at com.adobe.aemds.guide.service.impl.GuideModelImporterImpl.importFromXFA(GuideModelImporterImpl.java:1140) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.688]
... 162 common frames omitted
Caused by: java.lang.NullPointerException: null
19.03.2026 13:56:52.822 *ERROR* [10.238.22.152 [1773924978316] GET /content/forms/af/FOFO/adaptive-forms/A123-abc/jcr:content/guideContainer.xfajson HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Exception: An exception occurred processing JSP page /libs/fd/af/components/guideContainer/xfajson.jsp at line 27 : Error in in importing Xfa Json

Has anyone faced this before? thanks

1 reply

AmitVishwakarma
Community Advisor
Community Advisor
March 19, 2026

Hi ​@SmrithiGo 

This specific XFAJSONTransformer NPE when hitting guideContainer.xfajson is almost always bad XDP binding or a broken environment.

1.Verify Forms is correctly installed

  • Check AEM 6.5 SP and Forms add‑on match (e.g. 6.5.21 + Forms 6.5.21) from Tools > Deployment > Product Info.
  • In /system/console/bundles ensure these bundles are Active (not Installed/Resolved):
    • com.adobe.aemds.guide.aemds-guide-core
    • com.adobe.aemds.guide.aemds-guide-core-impl
    • com.adobe.aemds.guide.aemds-guide-addon

2. Prove your XDP is good and the model binding works

  • Upload a tiny test XDP (1–2 fields, created in Designer) into DAM: /content/dam/formsanddocuments/test/sample-form.xdp.
  • Create a new Adaptive Form (Foundation):
    • Form Model: Form Template
    • Template: sample-form.xdp
  • Open it and check the Data Model Objects tab:
    • If the fields appear, the environment is fine; your original XDP or its fragments are the problem.
    • If even this fails with the same error, fix step 1 (versions/add‑on) again until this sample works.

3.Fix the broken form by rebasing on a clean XDP

  • Open your failing form's Properties > Form Model:
    • Ensure Select From = Form Template.
    • Point it to a freshly uploaded, validated XDP (open in Designer > run consistency check > save > upload again).
    • Do not fight the existing AF. Instead:
      • Create a brand‑new Adaptive Form using that fixed XDP (Form Model = Form Template).
      • Confirm the Data Model Objects tab now shows fields (no xfajson error).
      • Copy any custom layout/rules from the old form into the new one and delete/retire the broken AF.

In practice, once a sample XDP works and you recreate the Adaptive Form from a clean, validated XDP, this error disappears unless you hit a very rare product bug.

Amit Vishwakarma - Adobe Commerce Champion 2025 | 16x Adobe certified | 4x Adobe SME