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

NPE is thrown at http conduit's authorization setting in Blueprint

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.10, 2.7.7, 2.7.8, 2.6.11
    • Fix Version/s: 2.6.12, 2.7.9, 3.0.0-milestone2
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      A blueprint based configuration that sets the authorization element for the http conduit, a NPE will be thrown. This issue exists only from 2.7.7 including the current 2.7.8 for blueprint based configuration.
      This issue seems to be an regression error from CXF-5148.

      Caused by: org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize bean #recipe-130
      at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:714)
      at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)
      at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)
      at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106)
      at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:933)
      at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:907)
      at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:888)
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.injectBeanInstance(BlueprintContainerImpl.java:927)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.cxf.bus.blueprint.ConfigurerImpl.configureBean(ConfigurerImpl.java:128)
      at org.apache.cxf.bus.blueprint.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:188)
      at org.apache.cxf.bus.blueprint.ConfigurerImpl.configureBean(ConfigurerImpl.java:111)
      at org.apache.cxf.bus.blueprint.ConfigurerImpl.configureBean(ConfigurerImpl.java:100)
      at org.apache.cxf.transport.http.HTTPTransportFactory.configure(HTTPTransportFactory.java:189)
      at org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(HTTPTransportFactory.java:270)
      at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:238)
      at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:110)
      at org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:63)
      at org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:886)
      at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:560)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330)
      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
      ... 26 more
      Caused by: java.lang.RuntimeException: Could not process configuration.
      at org.apache.cxf.transport.http.blueprint.AuthorizationPolicyHolder.init(AuthorizationPolicyHolder.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)
      at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)
      at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)
      ... 53 more
      Caused by: java.lang.NullPointerException
      at org.apache.cxf.transport.http.blueprint.AuthorizationPolicyHolder.init(AuthorizationPolicyHolder.java:54)
      ... 60 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ay Akitoshi Yoshida
                Reporter:
                ay Akitoshi Yoshida
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: