Web service is throwing ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6
- a web service client or provider using CXF (i.e. default JAX-WS implementation in EAP 6)
Issue
- Getting
java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable - Application is experiencing same error as described in CXF-6799 or CXF-5994
- web service using indexed collectionTypes with generic types (i.e. JAXBElement
[] example) throw a ClassCastException
Resolution
Planned to be resolved in This content is not included.future EAP 6.4 release.
SBR
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.