Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Caught unhandled exception: java.lang.ClassCastException



Post upgrade to Pega Platform 8.3, ClassCastException occurs on invoking the Connect-Rest method.

Error Messages

Caught unhandled exception: java.lang.ClassCastException: java.util.ArrayList incompatible with java.util.Map

Steps to Reproduce

  1. Upgrade Pega Platform 7.1.9 to Pega Platform 8.3.
  2. Execute an activity with the Connect-REST method. 

Root Cause

The pxInvokeRestConnect activity code was customized and did not point to the correct pxInvokeRestConnect ruleset.


Perform either of the following local-changes:

Update the pxInvokeRestConnect activity to the out-of-the-box Pega 8.3 activity.

  1. Modify the Invoke activity since it is present in the Available status.
  2. Update the activity since it was in the Pega 7 Platform code.
  3. Save the activity in the custom ruleset.

Published November 28, 2019 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us