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

Alessio Soldano updated CXF-1513:
---------------------------------

          Description: 
[ales...@inuyasha trunk]$ mvn -Ptestsuite,jboss423 -Dtest=jbws1694/**/*TestCase 
test
...
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.618 sec <<< 
FAILURE!
testInheritanceRpc(org.jboss.test.ws.jaxws.jbws1694.JBWS1694TestCase)  Time 
elapsed: 5.054 sec  <<< ERROR!
java.lang.NullPointerException
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeClassInfo(ReflectionServiceFactoryBean.java:617)
        at 
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation(JaxWsServiceFactoryBean.java:218)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOperations(ReflectionServiceFactoryBean.java:537)
        at 
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperations(JaxWsServiceFactoryBean.java:253)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:329)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:421)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:191)
        at 
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
        at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:408)
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:292)
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:287)
        at javax.xml.ws.Service.getPort(Service.java:44)
        at 
org.jboss.test.ws.jaxws.jbws1694.JBWS1694TestCase.testInheritanceRpc(JBWS1694TestCase.java:50)



  was:
[tdies...@tddell trunk]$ ant -Dtest=jaxws/handlerscope test

tests-run-internal:
    [junit] Running org.jboss.test.ws.jaxws.handlerscope.HandlerScopeTestCase
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 5.689 sec
    [junit] Test org.jboss.test.ws.jaxws.handlerscope.HandlerScopeTestCase 
FAILED

java.lang.NullPointerException
        at 
org.apache.cxf.jaxws.support.JaxWsServiceConfiguration.getInParameterName(JaxWsServiceConfiguration.java:208)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.getInParameterName(ReflectionServiceFactoryBean.java:1719)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.getInPartName(ReflectionServiceFactoryBean.java:1699)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeParameter(ReflectionServiceFactoryBean.java:592)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeClassInfo(ReflectionServiceFactoryBean.java:569)
        at 
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation(JaxWsServiceFactoryBean.java:173)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOperations(ReflectionServiceFactoryBean.java:482)
        at 
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperations(JaxWsServiceFactoryBean.java:182)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:280)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:366)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:162)
        at 
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:97)
        at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:353)
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:265)
        at javax.xml.ws.Service.getPort(Service.java:120)
        at 
org.jboss.test.ws.jaxws.handlerscope.HandlerScopeTestCase.testClientAccess(HandlerScopeTestCase.java:54)


    Affects Version/s:     (was: 2.0.5)
                       2.1.4

I'm updating the description as it was outdated.
We get this error when doing the following:

      URL wsdlURL = new URL("http://"; + getServerHost() + 
":8080/jbws1694/JBWS1694Endpoint?wsdl");
      QName serviceName = new QName("http://jbws1694.jaxws.ws.test.jboss.org/";, 
"JBWS1694EndpointService");
      Service service = Service.create(wsdlURL, serviceName);

      JBWS1694EndpointSEI port = service.getPort(JBWS1694EndpointSEI .class);


with JBWS1694EndpointSEI being


@WebService
@Remote
public interface JBWS1694EndpointSEI
{
   @WebMethod(operationName = "SubmitBasket")
    @WebResult(name = "receipt", targetNamespace = "http://www.m-bar-go.com";, 
partName = "response")
    public Receipt submitBasket(

           @WebParam(name = "inout", targetNamespace = 
"http://www.m-bar-go.com";, header = true,
               mode = WebParam.Mode.INOUT)
               Holder<Header> header,

            @WebParam(name = "basket", targetNamespace = 
"http://www.m-bar-go.com";, partName = "request")
               Basket request) 
      throws Exception;
}


Please note that explicitely setting ParameterStyle.BARE solves the issue; 
looking at the jaxws spec it seems to me wrapper style should not be allowed 
here, as the header param forces the request message for submitBasket to have 
more than 1 part. If that's true, should cxf raise an exception? otherwise, 
should this work?
The NPE is currently caused by the unwrappedOperation being null in the 
OperationInfo metadata. Idea/opinions?

> NPE in JaxWsServiceConfiguration
> --------------------------------
>
>                 Key: CXF-1513
>                 URL: https://issues.apache.org/jira/browse/CXF-1513
>             Project: CXF
>          Issue Type: Sub-task
>    Affects Versions: 2.1.4
>            Reporter: Thomas Diesler
>
> [ales...@inuyasha trunk]$ mvn -Ptestsuite,jboss423 
> -Dtest=jbws1694/**/*TestCase test
> ...
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.618 sec <<< 
> FAILURE!
> testInheritanceRpc(org.jboss.test.ws.jaxws.jbws1694.JBWS1694TestCase)  Time 
> elapsed: 5.054 sec  <<< ERROR!
> java.lang.NullPointerException
>         at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeClassInfo(ReflectionServiceFactoryBean.java:617)
>         at 
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation(JaxWsServiceFactoryBean.java:218)
>         at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOperations(ReflectionServiceFactoryBean.java:537)
>         at 
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperations(JaxWsServiceFactoryBean.java:253)
>         at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:329)
>         at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:421)
>         at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:191)
>         at 
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
>         at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:408)
>         at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:292)
>         at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:287)
>         at javax.xml.ws.Service.getPort(Service.java:44)
>         at 
> org.jboss.test.ws.jaxws.jbws1694.JBWS1694TestCase.testInheritanceRpc(JBWS1694TestCase.java:50)

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

Reply via email to