My Oracle Support Banner

oracle.wsm.common.sdk.XMLMessageContext Cannot Be Cast To oracle.wsm.common.sdk.RESTHttpMessageContext (Doc ID 2940944.1)

Last updated on APRIL 10, 2023

Applies to:

Oracle Web Services Manager - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

Seeing a ClassCastException in the code of an OWSM custom assertion.

The error being see is as follows:


Caused by: java.lang.ClassCastException: oracle.wsm.common.sdk.XMLMessageContext cannot be cast to oracle.wsm.common.sdk.RESTHttpMessageContext
at <PACKAGE>.<CUSTOMASSERTION>.execute(<CUSTOMASSERTION>.java:###)
...

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.