IBM Support

RAFW application deployments cause wsadmin to fail with a ClassCastException using the split properties format

Troubleshooting


Problem

When attempting to install an application to an application server by using the Rational Automation Framework for WebSphere (RAFW) action was_common_deploy_install_app and using the split properties format, wsadmin fails with the following message: WASX7017E: Exception received while running file "/product/actions/deploy/was/common/scripts/installApp.py"; exception information: java.lang.ClassCastException: java.lang.ClassCastException: java.lang.String incompatible with java.util.List.

Symptom

The application installation fails and wsadmin throws a java.lang.ClassCastException: java.lang.String incompatible with java.util.List.

Cause

The cause of this problem is an option in the split properties file that should have been specified using the "options.multi." format but used the singular "options." format. The result is the option should have been passed to wsadmin as a single element list, but it is passed as a string.

Environment

WebSphere Application Server

Rational Automation Framework for WebSphere

Diagnosing The Problem

Check the failed step log for the following message exception information: java.lang.ClassCastException: java.lang.ClassCastException: java.lang.String incompatible with java.util.List.

Resolving The Problem

Examine the application's split-properties file and ensure that all appropriate options are using the "options.multi." format. Ensure the options string passed to wsadmin wraps the single element list in an outer set of brackets [ ].

For example (application's split-properties file):

Incorrect: options.MapRolesToUsers=["SampAdmin" No No wasadmin wasadmin]

Correct: options.multi.1.MapRolesToUsers=["SampAdmin" No No wasadmin wasadmin]

For example (OPTIONS reported by wsadmin) :

Incorrect: -MapRolesToUsers ["SampAdmin" No No wasadmin wasadmin]

Correct: -MapRolesToUsers [["SampAdmin" No No wasadmin wasadmin]]

[{"Product":{"code":"SSYPT4","label":"Rational Automation Framework for WebSphere"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"7.1.1.2;7.1.1.3;7.1.1.4","Edition":"All Editions","Line of Business":{"code":"","label":""}}]

Document Information

More support for:
Rational Automation Framework for WebSphere

Software version:
7.1.1.2, 7.1.1.3, 7.1.1.4

Operating system(s):
AIX, HP-UX, Linux, Solaris, Windows, z/OS

Document number:
405437

Modified date:
20 April 2020

UID

swg21428721