cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grégory Le Bonniec (JIRA) <j...@apache.org>
Subject [jira] Created: (CXF-2692) NPE when calling a web service with header
Date Thu, 04 Mar 2010 15:56:27 GMT
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.6, 2.2.5
            Reporter: Grégory Le Bonniec


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.


Mime
View raw message