ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Error initializing cipher factory during startup of new installed system agent

book

Article ID: 200721

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent CA Workload Automation AE

Issue/Introduction

Startup of new system agent fails. 
Following messages are noticed in the nohup.stderr file:

Exception in thread "MainThread" cybermation.agent.CybAgentDriver$CybAgentInstantiationError: Error initializing cipher factory
        at cybermation.agent.CybAgentDriver.runApplication(CybAgentDriver.java:211)
        at cybermation.agent.CybAgentDriver.main(CybAgentDriver.java:464)
Caused by: cybermation.library.services.CybInitializationException: Error initializing cipher factory
        at cybermation.library.security.CybCipherFactory.getInstance(CybCipherFactory.java:332)
        at cybermation.library.security.CybCipherFactory.init(CybCipherFactory.java:224)
        at cybermation.agent.CybAgentDriver.runApplication(CybAgentDriver.java:207)
        ... 1 more

In defaultlog_agent.log contains following messages: 

Log Started 09/29/2020 07:40:29.989-0400 with level 5, Message-Length:Unlimited
-------------------------------------------------------------------------------
09/29/2020 07:40:29.989-0400 2 main.MainThread.CybAgentDriver.runApplication[:204] - CA Workload Automation Agent 11.5, Build 2545, Service Pack 00, Maintenance Level 0 starting
09/29/2020 07:40:30.093-0400 1 main.MainThread.CybCipherFactory$CybCipherFactorySingleton.<clinit>[:353] - cybermation.library.services.CybInitializationException: Bouncy Castle should be the only security provider
at cybermation.library.security.CybCipherFactory.<init>(CybCipherFactory.java:1145)
at cybermation.library.security.CybCipherFactory.<init>(CybCipherFactory.java:54)
at cybermation.library.security.CybCipherFactory$CybCipherFactorySingleton.<clinit>(CybCipherFactory.java:351)
at cybermation.library.security.CybCipherFactory.getInstance(CybCipherFactory.java:331)
at cybermation.library.security.CybCipherFactory.init(CybCipherFactory.java:224)
at cybermation.agent.CybAgentDriver.runApplication(CybAgentDriver.java:207)
at cybermation.agent.CybAgentDriver.main(CybAgentDriver.java:464)

 

Environment

Release : 11.5

Component : CA Workload Automation System Agent

Resolution

Older system agent wasn't cleaned up correctly.
When the new agent with the softlink for the jre location was deployed, it was still looking for the old local Java.

A complete clean reinstall fixed the issue.