Error System.ArgumentException: The path is not of a legal form.
search cancel

Error System.ArgumentException: The path is not of a legal form.

book

Article ID: 262038

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

After upgrading to Applications Manager version 9.4.4, Windows Agent SQL Jobs may Abort with the following error:

Error  System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NewNormalizePath(String path, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
   at ntspawn_v4.NTParser.hasFullPath(String token)
   at ntspawn_v4.NTParser.IsFileNameFinished(String token)
   at ntspawn_v4.NTParser.Parse(String line)
   at ntspawn_v4.Program.ParseArgs(String[] args)
   at ntspawn_v4.Program.Run(String[] args)
Error  System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NewNormalizePath(String path, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
   at ntspawn_v4.NTParser.hasFullPath(String token)
   at ntspawn_v4.NTParser.IsFileNameFinished(String token)
   at ntspawn_v4.NTParser.Parse(String line)
   at ntspawn_v4.Program.ParseArgs(String[] args)
   at ntspawn_v4.Program.Run(String[] args)
ntspawn exiting with exitCode 0

 

 

Environment

Release : 9.4.3

Cause

This is caused by ntspawn.exe located in the %AW_HOME%\c directory

Resolution

As of 03/15/2022, this issue is under investigation for root cause and permanent fix. This article will be updated once more information or resolution available.

Workaround:
Replace the Windows Agent ntspawn.exe with Applications Manager version 9.3.0's ntspawn.exe attached to this article (need to rename) or if a backup of the %AW_HOME% directory was taken before upgrade, 
replace the ntspawn.exe with the ntspawn.exe from the backup:

1. Rename current %AW_HOME%\c\ntspawn.exe to %AW_HOME%\c\ntspawn.944
2. Move a copy of the ntspawn.930 from this article or ntspawn.exe from backup to the %AW_HOME%\c directory and if needed, rename from ntspawn.930 to ntspawn.exe

The above steps can be done without stopping the Windows Agent.

Attachments

1678906346063__ntspawn.930 get_app