Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

unable to Invoke AEM work flows

Avatar

Level 3

Hello

I am working on an helpx.adobe article about CQ5 work flows . I am posting the link for your reference.

https://helpx.adobe.com/experience-manager/using/invoking-experience-manager-workflows-using.html

The problem is I am not getting any mails to adminstrator to complete the work flow. Even I have tried different workflow excersice with mail sending task but getting the same error I am pasting lines from my log file. Kindly look into this and provide me with the fix.

06.04.2015 21:19:30.917 *ERROR* [127.0.0.1 [1428335370884] GET /libs/cq/workflow/content/inbox/list.json HTTP/1.1] org.apache.jsp.libs.foundation.components.primary.cq.Page.wfsummary_json_jsp resource has no content. path=/libs/cq/workflow/content/inbox/list.json referrer=null
06.04.2015 21:19:30.945 *ERROR* [127.0.0.1 [1428335370884] GET /libs/cq/workflow/content/inbox/list.json HTTP/1.1] libs.cq.workflow.components.inbox.list.json$jsp Unable to process inboxitem: /etc/workflow/instances/2015-04-06/model_24084709164621/workItems/node1_etc_workflow_instances_2015-04-06_model_24084709164621 org.apache.sling.commons.json.JSONException: A JSONObject text must begin with '{' at character 0 of
    at org.apache.sling.commons.json.JSONTokener.syntaxError(JSONTokener.java:448)
    at org.apache.sling.commons.json.JSONObject.<init>(JSONObject.java:180)
    at org.apache.sling.commons.json.JSONObject.<init>(JSONObject.java:278)
    at org.apache.jsp.libs.cq.workflow.components.inbox.list.json_jsp._jspService(json_jsp.java:1183)
    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)
    at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449)
    at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:265)
    at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:87)
    at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:465)
    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:146)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:356)
    at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:168)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java:96)
    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.AuthoringUIModeServiceImpl.doFilter(AuthoringUIModeServiceImpl.java:301)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    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 org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:64)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:221)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:74)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.mycompany.testproject.impl.filters.LoggingFilter.doFilter(LoggingFilter.java:40)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.mycompany.myproject.impl.filters.LoggingFilter.doFilter(LoggingFilter.java:40)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.adobe.cq.history.impl.HistoryRequestFilter.doFilter(HistoryRequestFilter.java:107)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter.doFilter(CanvasPageDeleteRequestFilter.java:88)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServletStarterFilter.java:135)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcessorImpl.java:151)
    at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:206)
    at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
    at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
    at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
    at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
    at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)
    at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
    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.HttpFilterChain.doFilter(HttpFilterChain.java:33)
    at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:263)
    at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
    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.HttpFilterChain.doFilter(HttpFilterChain.java:33)
    at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:55)
06.04.2015 21:19:30.951 *ERROR* [127.0.0.1 [1428335370884] GET /libs/cq/workflow/content/inbox/list.json HTTP/1.1] org.apache.jsp.libs.foundation.components.primary.cq.Page.wfsummary_json_jsp resource has no content. path=/libs/cq/workflow/content/inbox/list.json referrer=null

1 Accepted Solution

Avatar

Correct answer by
Level 10

I have gone through the article - it works - I also tested on AEM 6

Here is the page that invokes the Workflow:

[img]WOrkflowAPI1.png[/img]

Once it invokes the workflow via  the WOrkflow API - the message is in the admin queue - as shown here:

[img]WOrkflowAPI2.png[/img]

Ensure that you are referencing the correct workflow model name in the example JSP - check the path here:

/etc/workflow/models

Here is the name of the workflow model:

[img]Workflow3.png[/img]

View solution in original post

3 Replies

Avatar

Level 10

The issue is AEM cannot find the content at /libs/cq/workflow/content/inbox/list.json:

06.04.2015 21:19:30.917 *ERROR* [127.0.0.1 [1428335370884] GET /libs/cq/workflow/content/inbox/list.json HTTP/1.1] org.apache.jsp.libs.foundation.components.primary.cq.Page.wfsummary_json_jsp resource has no content. path=/libs/cq/workflow/content/inbox/list.json referrer=null

I will take a look here and see if I can reproduce your issue. 

Avatar

Correct answer by
Level 10

I have gone through the article - it works - I also tested on AEM 6

Here is the page that invokes the Workflow:

[img]WOrkflowAPI1.png[/img]

Once it invokes the workflow via  the WOrkflow API - the message is in the admin queue - as shown here:

[img]WOrkflowAPI2.png[/img]

Ensure that you are referencing the correct workflow model name in the example JSP - check the path here:

/etc/workflow/models

Here is the name of the workflow model:

[img]Workflow3.png[/img]

Avatar

Level 3

@Scott

 

I have tried more examples on workflow models which contains participant step. But I am getting the same error when clicking on admin inbox.

06.04.2015 21:19:30.917 *ERROR* [127.0.0.1 [1428335370884] GET /libs/cq/workflow/content/inbox/list.json HTTP/1.1] org.apache.jsp.libs.foundation.components.primary.cq.Page.wfsummary_json_jsp resource has no content. path=/libs/cq/workflow/content/inbox/list.json referrer=null

 

Please take a look and help me on this. Thanks alot for your support