Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A406518A61 for ; Wed, 2 Mar 2016 16:34:18 +0000 (UTC) Received: (qmail 141 invoked by uid 500); 2 Mar 2016 16:34:18 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 99997 invoked by uid 500); 2 Mar 2016 16:34:18 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 99958 invoked by uid 99); 2 Mar 2016 16:34:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2016 16:34:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5B7FC2C1F5C for ; Wed, 2 Mar 2016 16:34:18 +0000 (UTC) Date: Wed, 2 Mar 2016 16:34:18 +0000 (UTC) From: "Alessio Soldano (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CXF-6799) java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alessio Soldano resolved CXF-6799. ---------------------------------- Resolution: Fixed > java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable > ------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CXF-6799 > URL: https://issues.apache.org/jira/browse/CXF-6799 > Project: CXF > Issue Type: Bug > Components: JAXB Databinding > Affects Versions: 2.7.17 > Environment: EAP 6.4.5; jdk1.7.0_75 > Reporter: Chris Dolphy > Assignee: Alessio Soldano > Fix For: 3.2.0, 3.1.6, 3.0.9 > > Attachments: array-of-parameterizedtype-reproducer.zip > > > 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 [] salutationAndName; > Web service was generated from WSDL with and the following schema: > > > > > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)