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

If javax.jws.Oneway annotation is specified for a SOAP interface method a NPE occurs

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Novice

      Description

      If javax.jws.Oneway annotation is specified for a SOAP interface method a NPE occurs. The passed OperationInfo "faults" member is left to null and thus causes a NPE by calling:
      faultInfo.addExtensionAttribute(JAXWSAConstants.WSAW_ACTION_QNAME, faultAction.value());

      If javax.jws.Oneway annotation is removed the endpoint gets registered without problems.

      java.lang.NullPointerException
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildWSAActions(JaxWsServiceFactoryBean.java:578)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createOperation(JaxWsServiceFactoryBean.java:625)
      at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createInterface(ReflectionServiceFactoryBean.java:955)
      at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:465)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:685)
      at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)
      at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
      at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
      at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
      at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)
      at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:442)
      at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:329)
      ... 42 more

        Attachments

        1. reseller.wsdl.txt
          54 kB
          Thorben Betten

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              th0rb3n Thorben Betten
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: