Support Article
Caught unhandled exception: java.lang.ClassCastException
SA-94439
Summary
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
- Upgrade Pega Platform 7.1.9 to Pega Platform 8.3.
- 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.
Resolution
Perform either of the following local-changes:
Update the pxInvokeRestConnect activity to the out-of-the-box Pega 8.3 activity.
Or
- Modify the Invoke activity since it is present in the Available status.
- Update the activity since it was in the Pega 7 Platform code.
- Save the activity in the custom ruleset.
Published November 28, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.