Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5341

NPE in org.apache.cxf.jaxws.support.JaxWsEndpointImpl.checkRespectBindingFeature

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Unknown

      Description

      I'm getting a NPE when using a contract-first WS endpoint whose wsdl contains:

      <wsp:PolicyReference URI="#ForceMTOM" wsdl:required="true" />

      Caused by: java.lang.NullPointerException
      at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.checkRespectBindingFeature(JaxWsEndpointImpl.java:267)
      at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.extractWsdlExtensibilities(JaxWsEndpointImpl.java:227)
      at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.<init>(JaxWsEndpointImpl.java:205)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint(JaxWsServiceFactoryBean.java:237)
      at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createEndpoints(ReflectionServiceFactoryBean.java:351)
      at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:283)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:204)
      at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
      at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
      at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
      at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
      at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
      ... 13 more

      This looks related to the changes in CXF-4876.

        Attachments

        1. cxf-5341.patch
          2 kB
          Rebecca Searls

          Activity

            People

            • Assignee:
              asoldano Alessio Soldano
              Reporter:
              asoldano Alessio Soldano
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: