Cannot publish process with NullPointerException

book

Article ID: 77055

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio)

Issue/Introduction

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.
 

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.

Environment

This problem was reported on Release Automation 6.5.

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.