Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Workflow models are not shown in the workflow console

Avatar

Level 3

Workflow models are not shown in the workflow console. under etc/workfloe/model/ i tried to open the workflow .and getting the bellow error fro the workflow.Please suggest what can be done here.

Error during include of component '/libs/cq/workflow/components/pages/model'

Error Message:

org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script head.jsp

Servlet=/libs/foundation/components/primary/cq/Page/Page.jsp

0 (2015-08-26 04:02:24) LOG Applying Requestfilters 0 (2015-08-26 04:02:24) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter 0 (2015-08-26 04:02:24) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter 0 (2015-08-26 04:02:24) TIMER_START{/libs/foundation/components/primary/cq/Page/Page.jsp#0} 15 (2015-08-26 04:02:24) LOG Including resource , type=cq/workflow/components/pages/model, path=/etc/workflow/models/Publish_Content/jcr:content, resource=[JcrNodeResource, type=cq/workflow/components/pages/model, superType=null, path=/etc/workflow/models/Publish_Content/jcr:content] (SlingRequestPathInfo: path='/etc/workflow/models/Publish_Content/jcr:content', selectorString='null', extension='html', suffix='null') 15 (2015-08-26 04:02:24) TIMER_START{resolveServlet(, type=cq/workflow/components/pages/model, path=/etc/workflow/models/Publish_Content/jcr:content, resource=[JcrNodeResource, type=cq/workflow/components/pages/model, superType=null, path=/etc/workflow/models/Publish_Content/jcr:content])} 15 (2015-08-26 04:02:24) TIMER_END{0,resolveServlet(, type=cq/workflow/components/pages/model, path=/etc/workflow/models/Publish_Content/jcr:content, resource=[JcrNodeResource, type=cq/workflow/components/pages/model, superType=null, path=/etc/workflow/models/Publish_Content/jcr:content])} Using servlet /libs/foundation/components/page/page.jsp 15 (2015-08-26 04:02:24) LOG Applying Includefilters 15 (2015-08-26 04:02:24) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter 15 (2015-08-26 04:02:24) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter 15 (2015-08-26 04:02:24) TIMER_START{/libs/foundation/components/page/page.jsp#1} 15 (2015-08-26 04:02:24) LOG Including script head.jsp for path=/etc/workflow/models/Publish_Content/jcr:content, type=cq/workflow/components/pages/model: /libs/cq/flow/components/pages/flow/head.jsp 15 (2015-08-26 04:02:24) TIMER_START{/libs/cq/flow/components/pages/flow/head.jsp} 15 (2015-08-26 04:02:24) LOG Including script init.jsp for path=/etc/workflow/models/Publish_Content/jcr:content, type=cq/workflow/components/pages/model: /libs/cq/flow/components/pages/flow/init.jsp 15 (2015-08-26 04:02:24) TIMER_START{/libs/cq/flow/components/pages/flow/init.jsp} 15 (2015-08-26 04:02:24) TIMER_END{0,/libs/cq/flow/components/pages/flow/init.jsp} 15 (2015-08-26 04:02:24) LOG Including script custom_includes.jsp for path=/etc/workflow/models/Publish_Content/jcr:content, type=cq/workflow/components/pages/model: /libs/cq/workflow/components/pages/model/custom_includes.jsp 15 (2015-08-26 04:02:24) TIMER_START{/libs/cq/workflow/components/pages/model/custom_includes.jsp} 15 (2015-08-26 04:02:24) LOG SCRIPT ERROR: 15 (2015-08-26 04:02:24) LOG SCRIPT ERROR: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script custom_includes.jsp 15 (2015-08-26 04:02:24) LOG SCRIPT ERROR: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script head.jsp 15 (2015-08-26 04:02:24) TIMER_END{0,/libs/foundation/components/page/page.jsp#1} 15 (2015-08-26 04:02:24) LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html],order=-1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=mobile, config=org.apache.sling.jcr.resource.JcrPropertyMap@53121d2e), Config(type=mobiledebug, config=org.apache.sling.jcr.resource.JcrPropertyMap@4a39e19d), Config(type=contentsync, config=org.apache.sling.jcr.resource.JcrPropertyMap@1e0b307d), serializer=Config(type=htmlwriter, config={}))} 15 (2015-08-26 04:02:24) TIMER_END{15,Request Processing} Dumping SlingRequestProgressTracker Entries

Full Exception:

org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script head.jsp at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388) 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.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47) at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39) at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.java:250) at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:321) at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:340) at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:383) at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:360) at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:644) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script head.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) ... 104 more Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script custom_includes.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) :167) at com.day.cq.wcm.tags.IncludeTag.doEndTag(IncludeTag.java:87) at org.apache.jsp.libs.foundation.components.page.page_jsp._jspx_meth_cq_005finclude_005f0(page_jsp.java:188) at org.apache.jsp.libs.foundation.components.page.page_jsp._jspService(page_jsp.java:158) at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502) ... 109 more Caused by: org.apache.sling.api.SlingException: 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 com.day.cq.wcm.tags.IncludeTag.doEndTag(IncludeTag.java:87) at org.apache.jsp.libs.cq.flow.components.pages.flow.head_jsp._jspx_meth_cq_005finclude_005f1(head_jsp.java:243) at org.apache.jsp.libs.cq.flow.components.pages.flow.head_jsp._jspService(head_jsp.java:176) at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502) ... 123 more Caused by: java.lang.NullPointerException at org.apache.jsp.libs.cq.workflow.components.pages.model.custom_005fincludes_jsp._jspService(custom_005fincludes_jsp.java:176) at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502) ... 137 more

 

 

Thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Level 10

yes !! that might have corrupted the tar files and may be the issue. If you want to really debug this issue, please raise the support ticket and they should help you in looking at it as it needs lot of time to figure out.

else, start a fresh instance and deploy all your code and packages and it should work fine again.

View solution in original post

4 Replies

Avatar

Level 10

Have you added any custom workflow model ? If so try removing that and see if the OOB workflow models comes up

Avatar

Level 3

Thanks for the reply...

We have many custom workflow model and workflow console shows empty list.

[img]wf-console.PNG[/img]

if I open the workflow model from etc/workflow/model getting the error (please see the attachment.)

all the workflows were working fine and those were listed even in the sidekick. our author instance was down and we had remove index.tar files and gave read and write access to data.tar files.

is that cause any issue. please suggest

Avatar

Correct answer by
Level 10

yes !! that might have corrupted the tar files and may be the issue. If you want to really debug this issue, please raise the support ticket and they should help you in looking at it as it needs lot of time to figure out.

else, start a fresh instance and deploy all your code and packages and it should work fine again.