Error: No enum constant RepositoryType.Nexus3 during artifact distribution - Release Automation
search cancel

Error: No enum constant RepositoryType.Nexus3 during artifact distribution - Release Automation

book

Article ID: 451197

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio)

Issue/Introduction

When attempting to use Nexus 3 as an artifact repository in Release Automation, communication with target host agents fails with a java.lang.IllegalArgumentException.

Symptoms The following error is observed in the nimi.log on the target server agent:

Caused by: java.lang.IllegalArgumentException: No enum constant com.nolio.platform.shared.communication.services.artifacts.RepositoryType.Nexus3 at java.lang.Enum.valueOf(Enum.java:249) at java.io.ObjectInputStream.readEnum(ObjectInputStream.java:2370)
The connection between the management server and the agent is closed immediately after this error.

Environment

A Release Automation (Nolio)
Nexus 3 Repository configured in the Release Operations Center (ROC)
Target Host Agents at versions prior to 6.6

Cause

The error occurs because the target agent is running an older version that does not recognize the Nexus3 repository type enum constant introduced in newer versions of the management server (NAC/NES).

Resolution

Upgrade the target host agent to a version that supports Nexus 3 (Release Automation 6.6 or higher).

Identify all agents running versions older than 6.6.
Follow the standard upgrade procedure as documented in Upgrade All Agents online documentation.
Restart the Nolio Agent service on the target host.
Verify connectivity in the ROC.