Expand my Community achievements bar.

Trying to render the from in HTML5 and getting the below error

Avatar

Level 2

javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script html.jsp

Cannot serve request to /lc/content/xfaforms/profiles/default.html in /libs/xfaforms/render/POST.jsp

Exception:

org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script html.jsp at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:691) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:608) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:525) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:241) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:86) at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:441) at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:361) at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:171) at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:463) at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:508) at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64) at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:148) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:333) at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:160) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:254) at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64) at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:290) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.adobe.livecycle.content.appcontext.impl.AppContextFilter.doFilter(AppContextFilter.java:58) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.adobe.livecycle.content.sling.impl.ResourceResolverFilter.doFilter(ResourceResolverFilter.java:34) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.adobe.livecycle.crx.security.SpringSecurityBridgeFilter.doFilter(SpringSecurityBridgeFilter.java:65) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.adobe.livecycle.process.reporting.servlet.filter.ProcessReportingResourceResolverFilter.doFilter(ProcessReportingResourceResolverFilter.java:70) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.adobe.livecycle.lccomponent.util.LcComponentResourceResolverFilter.doFilter(LcComponentResourceResolverFilter.java:54) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.adobe.livecycle.dsc.clientsdk.internal.ResourceResolverHolderFilter.doFilter(ResourceResolverHolderFilter.java:37) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.adobe.livecycle.formsmanagement.servlets.filter.FormsManagerResourceResolverFilter.doFilter(FormsManagerResourceResolverFilter.java:54) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:59) at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60) at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:220)
15 Replies

Avatar

Level 8

Is this occurring with all forms or one specific one?

Avatar

Level 8

I am facing the same problem too.

Based on my research, this happens when the number of elements and the forms complexity increases beyond a certain limit.

Find below several snapshots for the error I got when I preview using HTML5 tab.

Any help would be greatly appreciated.

921732_pastedImage_0.png

921733_pastedImage_1.png


					
				
			
			
				
			
			
				
			
			
			
			
			
			
		

Avatar

Level 8

Can you provide the form so I can look at it please?

Avatar

Level 8

Thank you TundraSteve

Try this file shared on Google Drive since I was unable to attached it here:

Test HTML form crash.pdf - Google Drive

Try to preview using HTML5 and this will cause form to crash. Remove the last subform or keep on removing fields and try to preview in HTML5 and you will see that it will work when the number of elements is much less than before.

Tarek

Avatar

Level 8

What version of the server software are you using?  I just rendered the form you supplied with AEM Forms JEE 6.1 FP1

Avatar

Level 8

Upgraded the LC Server to ES4 with SP 1 on a test virtual machine. See snapshot below.

I tried the same on the new server, and the preview using HTML5 will crash and I see the error below.

Appreciate your help.

---

javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script html.jsp

Cannot serve request to /lc/content/xfaforms/profiles/default.html in /libs/xfaforms/render/POST.jsp

Exception:

org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script html.jsp at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:672) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:608) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:525) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:241) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:86) at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:441) at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:361) at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:171)

939274_pastedImage_0.png

Avatar

Level 8

Just to provide additional information. Based on several tests I performed, the crash will occur for any combination of the following factors:

1. When the number of objects exceeds certain limit

2. The higher the depth (parent/child subforms) the more likely it will crash with much less number of objects.

3. The more script, the more likely it will crash with same number of objects/depth

The point I want to make here, is that we are now struggling with such limitation. We would like to get assurance from Adobe that this is a limitation, so that we don’t have to struggle for no good reason.

Tarek

Avatar

Level 8

There is a sling setting that you need to set you remove this issue.  I don't have the setting at my fingertips but will update the thread as soon as I locate it.

Avatar

Level 8

Thank you TundraSteve !

We have complex forms to be converted to HTML5 and facing great challenges due to such issues.

We are actually considering breaking the form into smaller parts and use the Wizard/Guide approach (smaller form sections with Previous and Next buttons) and I am not sure how effective this approach is.

Tarek

Avatar

Level 8

You may also want to consider moving to AEM Forms JEE and using formsets, This utilizes lazy loading to provide improved performance and memory footprint AEM 6.2 Forms Help | Form set in AEM Forms

Avatar

Level 8

Thank you again. Would you be able to point me to a video with a demo explaining how to develop and use formsets?

Thanks !

Avatar

Level 1

Hi TundraSteve,

What was the sling setting that needed to be modified?  I have the same issue with a mobile form that I am troubleshooting.  I have form that starts on https, but when the user clicks the submit button, the next page is rendered on port 80.  The developer who is working this form is taking a form that was strictly ran on HTTP and trying to convert it over to SSL.  We have verified all of our certificates and the server.xml configuration.  My guess is that there is something hardcoded that either with a default port 8080 in a URL coupled with relative URL's, or something else that I'm overlooking.  Hopefully, this sling setting will be the fix.

Mike Archer

Avatar

Level 1

Any chance you still have the info about the sling server settings?