You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2006/11/02 10:58:19 UTC

[jira] Closed: (CXF-206) NPE in JaxWsServiceFactoryBean

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

Freeman Fang closed CXF-206.
----------------------------


> NPE in JaxWsServiceFactoryBean
> ------------------------------
>
>                 Key: CXF-206
>                 URL: http://issues.apache.org/jira/browse/CXF-206
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-M1
>            Reporter: Freeman Fang
>         Assigned To: Freeman Fang
>             Fix For: 2.0-M1
>
>
> After picking up the changes from Sunday might, I'm seeing a similar NPE
> in JaxWsServiceFactoryBean:
> java.lang.NullPointerException
>         at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeParameter
> (JaxWsServiceFactoryBean.java:248)
>         at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeParameter
> (JaxWsServiceFactoryBean.java:226)
>         at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initalizeClassInfo(
> JaxWsServiceFactoryBean.java:207)
>         at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOpera
> tion(JaxWsServiceFactoryBean.java:122)
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWS
> DLOperations(ReflectionServiceFactoryBean.java:237)
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeSe
> rviceModel(ReflectionServiceFactoryBean.java:177)
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Refle
> ctionServiceFactoryBean.java:115)
>         at
> org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:239)
>         at
> org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:199)
>         at javax.xml.ws.Service.getPort(Service.java:94)
> The relevant WSDL and Service class are attached.  
> Roughly, here's what the code that fails is doing (the NPE occurs in
> getPort):
>   private static final QName LOCATOR_SERVICE_NAME = 
>      new QName("http://ws.iona.com/2005/11/locator", "LocatorService");
>   private static final QName LOCATOR_PORT_NAME = 
>      new QName("http://ws.iona.com/2005/11/locator",
> "LocatorServicePort");
>   ...
>   String contractLocation = 
>      "http://my_server:43000/services/LocatorService";        
>   URL locatorContractURL = new URL(contractLocation);
>   Service service = Service.create(locatorContractURL,
> LOCATOR_SERVICE_NAME);
>   locatorProxy = (LocatorService) service.getPort(LOCATOR_PORT_NAME,
> LocatorService.class);
> Any ideas?
> -Mike

-- 
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