You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "maomaode (JIRA)" <ji...@apache.org> on 2006/10/24 05:50:42 UTC

[jira] Updated: (CXF-158) ClassCastException in JaxWsServiceFactoryBean.initalizeClassInfo

     [ http://issues.apache.org/jira/browse/CXF-158?page=all ]

maomaode updated CXF-158:
-------------------------

        Fix Version/s: 2.0-M1
    Affects Version/s: 2.0-M1
             Assignee: willem Jiang

> ClassCastException in JaxWsServiceFactoryBean.initalizeClassInfo
> ----------------------------------------------------------------
>
>                 Key: CXF-158
>                 URL: http://issues.apache.org/jira/browse/CXF-158
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 2.0-M1
>            Reporter: Mike Ramnarine
>         Assigned To: willem Jiang
>             Fix For: 2.0-M1
>
>
> Get the following exception:
>     java.lang.ClassCastException: java.lang.Class
>         at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initalizeClassInfo(JaxWsServiceFactoryBean.java:238)
>         at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation(JaxWsServiceFactoryBean.java:127)
>         at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOperations(ReflectionServiceFactoryBean.java:218)
>         at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:166)
>         at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:104)
>         at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:246)
>         at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:206)
>         at javax.xml.ws.Service.getPort(Service.java:94)
>         ...
> ... when processing the following portion of the Artix Locator WSDL, when creating a proxy that uses that service:
>             <xs:element name="listEndpointsResponse">
>                 <xs:annotation>
>                     <xs:documentation>Output message element for &quot;listEndpoints&quot; operation.</xs:documentation>
>                 </xs:annotation>
>                 <xs:complexType>
>                     <xs:sequence>
>                         <xs:element maxOccurs="unbounded" minOccurs="0" name="endpoint">
>                             <xs:complexType>
>                                 <xs:sequence>
>                                     <xs:element name="endpoint_id" 
>                                         type="tns:EndpointIdentity"/>
>                                     <xs:element name="endpoint_reference" 
>                                         type="wsa:EndpointReferenceType"/>
>                                 </xs:sequence>
>                             </xs:complexType>
>                         </xs:element>
>                     </xs:sequence>
>                 </xs:complexType>
>             </xs:element>
> Feel free to contact me if you need the complete WSDL
> Here's the line of code that gets the ClassCastException:
>     ParameterizedType paramType = (ParameterizedType) paraType[inPartCount + outIdx];
> -- Here's some debugging output, right before the exception occurs --
> paraType.length: 2
> inPartCount: 1
> outIdx: 0
> paraType[inPartCount + outIdx]:  class org.apache.cxf.ws.addressing.EndpointReferenceType 
> selected: public abstract void com.iona.ws._2005._11.locator.LocatorService.registerEndpoint(com.iona.ws._2005._11.locator.types.EndpointIdentity,org.apache.cxf.ws.addressing.EndpointReferenceType)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira