JCP error - java.io.FileNotFoundException: ... (No such file or directory)
search cancel

JCP error - java.io.FileNotFoundException: ... (No such file or directory)

book

Article ID: 387815

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation

Issue/Introduction

When attempting to start the JCPs, either with a new keystore/certificate or updated keystore/certificate after a renewal, the JCP throws the following error message:

U00045014 Exception 'com.automic.agents.impl.TlsKeystoreReader$InvalidKeystoreException: "java.io.FileNotFoundException: [full path to JCP keystore]/[keystore file] (No such file or directory)"' at 'com.automic.agents.impl.TlsKeystoreReader.tryToLoadKey():91'.
U00045015 The previous error was caused by 'java.io.FileNotFoundException: "[full path to JCP keystore]/[keystore file] (No such file or directory)"' at 'java.io.FileInputStream.open0()'.

The file could be a .p12 file.  

In some versions this can also have this error:

U00045014 Exception 'com.automic.agents.impl.TlsKeystoreReader$InvalidKeystoreException: "java.io.FileNotFoundException: [full path to JCP keystore]/[keystore file] (The system cannot find the file specified)"' at 'com.automic.agents.impl.TlsKeystoreReader.tryToLoadKey():95'.
20250208/155347.501 - 36     U00045015 The previous error was caused by 'java.io.FileNotFoundException: "[full path to JCP keystore]/[keystore file] (The system cannot find the file specified)"' at 'java.io.FileInputStream.open0()'.

Environment

AutomationEngine: 21.0 and 24.X

Cause

The keystore file is not in the directory specified in the ini file

Resolution

 Check the ucsrv.ini file for the directory shown in the keystore= setting.  It may look something like this:

keystore=C:\automic\automationengine\bin\jcp_keystore.p12

Open the directory, in the example above, C:\automic\automationengine\bin.  Place the correct keystore file into this directory, in the example above, jcp_keystore.p12. 

It may also be that the keystore= setting should be updated fully to point somewhere else.  Point this setting to where the keystore file exists.