Error: java.lang.IllegalArgumentException
search cancel

Error: java.lang.IllegalArgumentException

book

Article ID: 448871

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

A Linux Agent fails to initialize or hangs when configured with an invalid agent name containing special characters (e.g., &) or escaped sequences (e.g., \\0). The agent proceeds to certificate handling before validating the name, leading to inconsistent behavior.

 

Symptoms The agent log shows the following sequence:

  1. Detection of invalid name: U00011649 Invalid host name: 'NAME', valid characters: A-Z 0-9 _.$@-#
  2. Unexpected certificate request: U02000297 Agent doesn't have valid certificate, requesting new one from server.
  3. Failure or hang: 

    U00045014 Exception 'java.lang.IllegalArgumentException: "improperly specified input name: CN=NAME\0NULL, OU=TEST, C=US"' at 'javax.security.auth.x500.X500Principal.()'.
    U00045015 The previous error was caused by 'java.io.IOException: "escaped hex value must include two valid digits"'

     

Environment

  • Automic Automation
  • Linux Agent 24.x
  • Automation Engine (JCP enabled)

Cause

The agent-side validation currently only checks for name length. Detailed character validation is performed by the JCP after the connection and certificate request sequence has already initiated.

Resolution

Ensure the agent name in the .ini file adheres to the documented naming rules (A-Z, 0-9, _.$@-#) and does not exceed 32 characters.

Handling invalid agent names consistently is currently under review by Engineering (DE209459).