session - CQ 5.6.1 getWorkflowSession cause Uncaught Throwable java.lang.NullPointerException -


at com.cuso.mao.doget(mao.java:97) @ org.apache.sling.api.servlets.slingsafemethodsservlet.mayservice(slingsafemethodsservlet.java:268) @ org.apache.sling.api.servlets.slingsafemethodsservlet.service(slingsafemethodsservlet.java:344) @ org.apache.sling.api.servlets.slingsafemethodsservlet.service(slingsafemethodsservlet.java:375) @ org.apache.sling.engine.impl.request.requestdata.service(requestdata.java:508) @ org.apache.sling.engine.impl.filter.slingcomponentfilterchain.render(slingcomponentfilterchain.java:45) @ org.apache.sling.engine.impl.filter.abstractslingfilterchain.dofilter(abstractslingfilterchain.java:64) @ com.day.cq.wcm.core.impl.wcmdebugfilter.dofilter(wcmdebugfilter.java:146) @ org.apache.sling.engine.impl.filter.abstractslingfilterchain.dofilter(abstractslingfilterchain.java:60) @ com.day.cq.wcm.core.impl.wcmcomponentfilter.filterrootinclude(wcmcomponentfilter.java:356) @ com.day.cq.wcm.core.impl.wcmcomponentfilter.dofilter(wcmcomponentfilter.java:168) @ org.apache.sling.engine.impl.filter.abstractslingfilterchain.dofilter(abstractslingfilterchain.java:60) @ com.day.cq.personalization.impl.targetcomponentfilter.dofilter(targetcomponentfilter.java:96) @ org.apache.sling.engine.impl.filter.abstractslingfilterchain.dofilter(abstractslingfilterchain.java:60) @ org.apache.sling.engine.impl.slingrequestprocessorimpl.processcomponent(slingrequestprocessorimpl.java:254)

line 97 calling workflowsession wf = workflowserviceobject.getworkflowsession(jcrsessionobject); should use jackrabbit session instead of jcrsession? 1 right?

i facing similar situation.there nothing wrong model node passing.

getting new workflowsession workflowservice giving nullpointer had workflowservice inside activator using getservicereference way , have assigned static variable in utility class.still got: , following getting logged:-

cannot read workflow model node: /etc/workflow/models/deletecontent/jcr:content/model

and there 1 more "session closed" issue. again made resolverfactory part of utility class using administrativeresourceresolver in servlet.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -