WSSamServiceCmd fails with ClassCastException or BadPaddingException in SOI 4.3
search cancel

WSSamServiceCmd fails with ClassCastException or BadPaddingException in SOI 4.3

book

Article ID: 448208

calendar_today

Updated On:

Products

CA Service Operations Insight (SOI)

Issue/Introduction

When using the WSSamServiceCmd.bat utility in SOI 4.3 to import escalation policies or actions, the utility fails with one of the following errors depending on the command environment:

  • In Windows Command Prompt (CMD): class org.apache.xerces.dom.ElementNSImpl cannot be cast to class com.sun.org.apache.xerces.internal.dom.ElementNSImpl
  • In PowerShell: javax.crypto.BadPaddingException: Error closing stream or Given final block not properly padded

Environment

  • CA Service Operations Insight (SOI) 4.3 (Policy migration from 4.2 to 4.3 version)
  • OpenJDK 11 / Java 11
  • Windows Server

Resolution

We have updated WSSamServiceCmd.bat file for 4.3 CU3.

Follow the steps below :

1. Take a backup of existing WSSamServiceCmd.bat file from the following location:
   CA\SOI\tomcat\bin\WSSamServiceCmd.bat
   
2. Download the new WSSamServiceCmd.bat from this article and replace with the old one  


3. Retry the WSSamServiceCmd.bat for import

WSSamServiceCmd.bat -hhttps://localhost:7493 -usamuser -p"<password>" -aImport -s* -fD:/sources/export_esc_pol_action.xml

Attachments

wsamServices.zip get_app