| Java Exception: java.lang.ClassCastException: class com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl cannot be cast to class java.lang.String (com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl is in unnamed module of loader com.pega.pegarules.bootstrap.loader.PRAppLoader @f1a45f8; java.lang.String is in module java.base of loader ‘bootstrap’) |
|---|
@PawanN16720617 please log a support ticket via the MSP and provide the INC id here.
The ClassCastException is a common issue when trying to cast an object of a class into another class of which it’s not an instance. In your case, it seems like you’re trying to cast a ClipboardPageImpl object to a String, which is not possible. You might need to adjust your implementation to avoid this type of casting. In a similar issue, a ClassCastException was resolved by adding a new step before page-set-message and defining the step page as TOP.TempItem, the function as @(Pega-RULES:Default).getMessagesAll(myStepPage), the result of the function is set to parameter and parameter is used for page-set-messages. However, without more specific information about your implementation, it’s hard to provide a more precise solution.
This is a GenAI-powered tool. All generated answers require validation against the provided references.