I have developed a custom advanced workflow using Activiti. I am using Alfresco 4.0 Share.
When I try to start a workflow, it is giving me the error - java.lang.NullPointerException : null in a pop-up. Admin user can start the workflow but no other user are able to start the workflow.
When I tried to analyze I found that formprocessor webscript when trying to submit the workflow form is returning 500 error. But as admin user is able to start the workflow, i assume that there is not a data issue.
Strange thing is that - on one alfresco instance it is working absolutely fine i.e. any user can start the workflow and it works fine. However, on other instance, it is not working, i.e. only admin user is able to start the workflow, no other users are able to start the workflow and are getting the nullpointer exception mentioned above in the popup.
It would be great if you could help me on this and give some pointers on this.
I've encountered simliar bugs while developing custom workflows, the symptoms are the same: Share will say it's a null pointer, but Alfresco has a full stacktrace.
Have a look and post it, along with the version you're using then I can probably point you in the right direction
In alfresco logs it was not mentioning anything except of the nullpointer exception.
However, I found what was going wrong.
This is fixed now for me. Actually, I had added few additional properties to OOTB user model through aspect in which one property was having type as d:text able to hold multiple values. It was not allowing to proceed me further and was giving me the null pointer error. For the specific user I was trying to start the workflow this property value was not required hence I made its value as blank (previously I was setting some value to this property) and it started allowing me to start the workflow.
It looks like that if any property having multiple as true is present on the user metadata, it does not allow to start/assign the workflow to such user in this case.