You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Grégory Le Bonniec (JIRA)" <ji...@apache.org> on 2010/03/04 16:58:27 UTC

[jira] Updated: (CXF-2692) NPE when calling a web service with header

     [ https://issues.apache.org/jira/browse/CXF-2692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grégory Le Bonniec updated CXF-2692:
------------------------------------

    Attachment: Bug_Header.zip

> NPE when calling a web service with header
> ------------------------------------------
>
>                 Key: CXF-2692
>                 URL: https://issues.apache.org/jira/browse/CXF-2692
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.2.5, 2.2.6
>            Reporter: Grégory Le Bonniec
>         Attachments: Bug_Header.zip
>
>
> When Web Service which has a simple input header parameter is called from a Java consumer, a NullPointerException is thrown.
> When It is called from an external SOAP Client, there is no problem
> SEI : 
> {quote}
> @WebService
> public interface BugService {
> 	@WebResult(name = "return")
> 	public String print(
> 			@WebParam(name = "name", header = true) String name);
> }
> {quote}
> Consumer : 
> {quote}
> Service service = Service.create(wsdlURL, serviceName);
> BugService client = service.getPort(BugService.class);
> System.out.println(client.print("header"));
> {quote}
> Exception : 
> {quote}
> java.lang.NullPointerException
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeClassInfo(ReflectionServiceFactoryBean.java:754)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation(JaxWsServiceFactoryBean.java:222)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOperations(ReflectionServiceFactoryBean.java:674)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperations(JaxWsServiceFactoryBean.java:258)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:424)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:528)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:278)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:178)
> 	at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:411)
> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:296)
> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:291)
> 	at javax.xml.ws.Service.getPort(Service.java:161)
> 	at com.header.ws.ConsumerBug.main(ConsumerBug.java:17)
> {quote}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.