Bad Padding Error in the Workload Automation Agent
search cancel

Bad Padding Error in the Workload Automation Agent

book

Article ID: 45740

calendar_today

Updated On:

Products

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

Issue/Introduction

Issue:

We were able to install the Autosys Agent successfully however, we are unable to autoping the agent and see the following error in the Agent's transmitter.log file:

======================================

cybermation.library.communications.CybConversationException: Bad padding

at cybermation.library.communications.protocol.CybCommunicationProtocolRevisionTwo.receiveData(CybCommunicationProtocolRevisionTwo.java:622)

at cybermation.library.communications.protocol.CybCommunicationProtocolRevisionTwo.receiveMessage(CybCommunicationProtocolRevisionTwo.java:315)

at cybermation.library.communications.CybConversation.receiveMessage(CybConversation.java:429)

at cybermation.commplugins.tcpip.receiver.CybReceiverChannel.receive(CybReceiverChannel.java:173)

at cybermation.commplugins.tcpip.receiver.CybReceiverChannel.call(CybReceiverChannel.java:138)

at cybermation.commplugins.tcpip.receiver.CybReceiverChannel.call(CybReceiverChannel.java:50)

at cybermation.commplugins.tcpip.receiver.CybReceiverScheduler$CallableWrapper.call(CybReceiverScheduler$CallableWrapper.java:352)

at cybermation.commplugins.tcpip.receiver.CybReceiverScheduler$CallableWrapper.call(CybReceiverScheduler$CallableWrapper.java:316)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 ======================================

 

Environment

Release:
Component: SYSAGT

Cause

The "bad padding" message appears when the encryption between the agent and scheduler do not match.

Resolution

  1. Backup the cryptkey.txt in the Agent's installation directory
  2. Copy the cryptkey.txt file from the Scheduler (located in the $AUTOUSER directory) into the agent installation directory
  3. Restart the agent