CQ 5.6.1 getWorkflowSession cause Uncaught Throwable java.lang.NullPointerException

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 02:01:53

I was facing a similar situation.There is nothing wrong with the model node that you are passing.

Getting new workflowSession from workflowService was giving nullpointer so I had to get the workflowService inside my Activator using the getServiceReference way and have it assigned to a static variable in a utility class.Still I got: and following was getting logged:-

Cannot read workflow model from node: /etc/workflow/models/deletecontent/jcr:content/model

And there was one more "session already closed" issue. For that I again made the resolverFactory a part of my utility class using which I could get administrativeResourceResolver in my servlet.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!