Article - CS373359
ODATA request for XML output fails with ClassCaseException when returning a collection of complex types on WRS 2.3
Modified: 15-Mar-2024
Applies To
- Windchill PDMLink 12.0 to 12.1
Description
- ODATA request fails with ClassCaseException when returning a collection of complex types
java.lang.ClassCastException: class org.apache.olingo.server.core.serializer.xml.ODataXmlSerializer cannot be cast to class org.apache.olingo.server.core.serializer.json.LocalODataJsonSerializer (org.apache.olingo.server.core.serializer.xml.ODataXmlSerializer and org.apache.olingo.server.core.serializer.json.LocalODataJsonSerializer are in unnamed module of loader 'app') at com.ptc.odata.core.entity.processor.ProviderProcessor.serializePropertyResult(ProviderProcessor.java:462) at com.ptc.odata.core.entity.processor.PrimitiveComplexProviderProcessor.readProperty(PrimitiveComplexProviderProcessor.java:287) at com.ptc.odata.core.entity.processor.PrimitiveComplexProviderProcessor.readComplexCollection(PrimitiveComplexProviderProcessor.java:92) at org.apache.olingo.server.core.ODataDispatcher.handleComplexDispatching(ODataDispatcher.java:410) at org.apache.olingo.server.core.ODataDispatcher.handleFunctionDispatching(ODataDispatcher.java:206) at org.apache.olingo.server.core.ODataDispatcher.handleResourceDispatching(ODataDispatcher.java:147)
This is a printer-friendly version of Article 373359 and may be out of date. For the latest version click CS373359