Cannot publish process with NullPointerException

Document ID : KB000077055
Last Modified Date : 11/04/2018
Show Technical Document Details
Issue:
Updated an action as shared component and tried to publish a process with the updated action. And then, following error was shown.
Unexpected error on server [null]. Please refer to server logs with timestamp [YYYY-MM-DD hh:mm:ss]
In nolio_dm_all.log on Management Server, NullPointerException was recorded in checkIfProcessIsInEditMode function.
YYYY-MM-DD hh:mm:ss,sss [http-nio-8080-exec-242] ERROR (com.nolio.releasecenter.designer.controllers.EditController:122) - Controller method error occurred.
java.lang.NullPointerException
at com.nolio.platform.server.dataservices.services.model.ProcessesDaoImpl.checkIfProcessIsInEditMode(ProcessesDaoImpl.java:394)

However, other processes can be published at that time.
 
Environment:
This problem was reported on Release Automation 6.5.
Cause:
checkIfProcessIsInEditMode function checks if the process is Edit Mode or not. If Edit Mode, the function determines the user to edit the process.
So, the function needs Process ID and User ID. When one or both of IDs are not determined, it is possible that NullPointerException is occurred.
Resolution:
In this case, following steps could resolve this problem.
  1. Check if any deployments are not running.
  2. Stop RA service / daemon on Management Server (NAC).
  3. Remove LevelDB folder under <RA Installation>/activemq-data/nac.
  4. Start RA service / daemon on NAC.
  5. Check if problematic process can be published.