Bug 1312501 - [GSS](6.4.z) CXF-6799 - java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable
Summary: [GSS](6.4.z) CXF-6799 - java.lang.ClassCastException: sun.reflect.generics.re...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web Services
Version: 6.4.7
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: CR1
: EAP 6.4.9
Assignee: Chao Wang
QA Contact: Peter Mackay
URL:
Whiteboard:
Depends On:
Blocks: 1312499 1312503 eap649-payload
TreeView+ depends on / blocked
 
Reported: 2016-02-26 22:38 UTC by Brad Maxwell
Modified: 2019-10-10 11:21 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 12:57:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA CXF-6799 0 None None None 2016-02-26 22:39:30 UTC
Red Hat Issue Tracker JBEAP-3711 0 Major Verified [GSS](7.0.z) CXF-6799 - java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl canno... 2016-11-08 08:16:35 UTC
Red Hat Knowledge Base (Solution) 2190491 0 None None None 2016-06-28 17:31:16 UTC

Description Brad Maxwell 2016-02-26 22:38:47 UTC
Description of problem:

Deploying test web service gives on JBoss startup:
Caused by: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable
at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:251)
Generated web service class has the following element which has issues with the JAXB binding:
@XmlElementRefs(
{ @XmlElementRef(name = "Salutation", namespace = "http://ws.gss.redhat.com/", type = JAXBElement. @XmlElementRef(name = "Name", namespace = "http://ws.gss.redhat.com/", type = JAXBElement.class) }
)
protected JAXBElement<String> [] salutationAndName;
Web service was generated from WSDL with <jaxb:globalBindings collectionType="indexed" /> and the following schema:
<xs:complexType name="Greetings">
<xs:sequence maxOccurs="unbounded">
<xs:element name="Salutation" type="xsd:string"/>
<xs:element name="Name" type="xsd:string"/>
</xs:sequence>
</xs:complexType>

Comment 6 JBoss JIRA Server 2016-03-15 00:11:35 UTC
Chao Wang <chaowan> updated the status of jira JBEAP-3800 to Closed

Comment 9 JBoss JIRA Server 2016-05-27 01:35:27 UTC
Chao Wang <chaowan> updated the status of jira JBEAP-3711 to Resolved

Comment 10 Peter Mackay 2016-06-29 09:16:08 UTC
Verified with EAP 6.4.9.CP.CR2

Comment 11 Petr Penicka 2017-01-17 12:57:54 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.

Comment 12 Petr Penicka 2017-01-17 12:58:25 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.


Note You need to log in before you can comment on or make changes to this bug.